@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:fair-community-search-by-domain a grlc:grlc-query; dct:description "Full-text search over FAIR Implementation Communities restricted to a research domain: like the FAIR community search, but only communities whose research domain is the given domain or one of its sub-domains (resolved through the Research domains (SRAO) resource of the FAIR Implementation Space) are returned. Pass the domain IRI as it appears in SRAO (e.g. http://purl.obolibrary.org/obo/OMIT_0011790 for Natural Science). Community nanopublications that a GO FAIR Foundation curator has disapproved of (npx:disapprovesOf, signed with a curator's key and not invalidated) are left out before the top results are cut, as in the FAIR Communities list, and the FIP count follows that list: FIPs introduced by a FIP nanopublication, without reference FIPs and curator-disapproved ones. Curators are the holders of the FAIR Implementation Space's Curator role, read live from the space state (the trust-approved keys of their accounts, nanopub-query repo/spaces); the FIP Wizard applies the same rules with the keys of the curators list https://w3id.org/np/RA27Uhopq4MHZziL2lKXX-wTb1jz4KVLbHaupxyAcCt9Y instead, which is maintained separately."; dct:license ; rdfs:label "FAIR community search by domain"; grlc:endpoint ; grlc:sparql """prefix rdf: prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: prefix owl: prefix foaf: prefix prov: prefix skos: prefix schema: prefix gen: prefix fip: prefix tpff: prefix search: select ?community (min(?community_label) as ?community_label) (group_concat(distinct str(?ctype); separator=\" \") as ?type_multi_iri) (group_concat(distinct ?ctype_label; separator=\"\\n\") as ?type_label_multi) (group_concat(distinct str(?top); separator=\" \") as ?domains_multi_iri) (group_concat(distinct ?top_label; separator=\"\\n\") as ?domains_label_multi) (count(distinct ?domain) as ?subdomains) (coalesce(min(?fips_x), 0) as ?fips) (max(?curated_x) as ?curated) (max(?score) as ?score) (min(?np) as ?np) (\"^\" as ?np_label) where { { select distinct ?subdomain where { service { graph npa:graph { ?srao_np npx:describes ; npa:hasValidSignatureForPublicKeyHash \"9069576dbf1967483c9a3095fb8a7c38b4770974a1733c681d5969e14e455e2b\" ; np:hasAssertion ?srao_a . filter not exists { ?srao_x npx:invalidates ?srao_np ; npa:hasValidSignatureForPublicKeyHash \"9069576dbf1967483c9a3095fb8a7c38b4770974a1733c681d5969e14e455e2b\" . } } graph ?srao_a { ?subdomain rdfs:subClassOf* ?_domain_iri . } } } } { select ?np ?community_label ?date (max(?score_x) as ?score) where { graph npa:graph { ?np npx:hasNanopubType fip:FAIR-Implementation-Community ; rdfs:label ?community_label ; npa:hasValidSignatureForPublicKey ?pk ; dct:created ?date . filter(str(?date) > \"2022\") filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?x npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pk . } } ?np search:matches [ search:query ?_query ; search:property npa:hasFilterLiteral ; search:score ?score_x ] . # Curator disapprovals, from the npx:disapprovesOf type repo (repo/text has no assertion graphs), before the top-50 cut. minus { service { select distinct ?np where { { select (concat(\" \", group_concat(distinct ?cur_pkh; separator=\" \"), \" \") as ?curator_pkhs) where { service { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?cur_g . } graph ?cur_g { ?cur_ri a gen:RoleInstantiation ; npa:forSpace ; gen:hasRole ; npa:forAgent ?cur_agent . ?cur_acct a npa:AccountState ; npa:agent ?cur_agent ; npa:pubkey ?cur_pkh . } } } } graph ?da { ?disapprover npx:disapprovesOf ?np . } graph npa:graph { ?dnp np:hasAssertion ?da ; npa:hasValidSignatureForPublicKeyHash ?dpk . filter not exists { ?dx npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKeyHash ?dpk . } } filter(contains(?curator_pkhs, concat(\" \", ?dpk, \" \"))) } } } } group by ?np ?community_label ?date order by desc(?score) limit 200 } service { graph npa:graph { ?np np:hasAssertion ?a ; npx:introduces ?community . } graph ?a { ?community fip:has-research-domain ?subdomain ; fip:has-research-domain ?domain . optional { ?community a ?ctype . filter(?ctype != fip:FAIR-Implementation-Community && strstarts(str(?ctype), \"https://w3id.org/fair/fip/terms/\")) } } } bind(replace(replace(str(?ctype), \"^.*/\", \"\"), \"-\", \" \") as ?ctype_label) optional { service { graph npa:graph { ?srao_np npx:describes ; npa:hasValidSignatureForPublicKeyHash \"9069576dbf1967483c9a3095fb8a7c38b4770974a1733c681d5969e14e455e2b\" ; np:hasAssertion ?srao_a . filter not exists { ?srao_x npx:invalidates ?srao_np ; npa:hasValidSignatureForPublicKeyHash \"9069576dbf1967483c9a3095fb8a7c38b4770974a1733c681d5969e14e455e2b\" . } } graph ?srao_a { ?domain rdfs:subClassOf* ?top . filter not exists { ?top rdfs:subClassOf ?tp . } ?top rdfs:label ?top_label . } } } # FIPs counted as in the FAIR Communities list: introduced FIPs, no rFIPs, none curator-disapproved. optional { { select ?community (count(distinct ?fip) as ?fips_x) where { service { graph npa:graph { ?fipnp npx:hasNanopubType fip:FAIR-Implementation-Profile ; npx:introduces ?fip ; np:hasAssertion ?fa ; npa:hasValidSignatureForPublicKey ?fpk . filter not exists { ?fipnp npx:hasNanopubType fip:Reference-FAIR-Implementation-Profile . } filter not exists { ?fipnp npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?fx npx:invalidates ?fipnp ; npa:hasValidSignatureForPublicKey ?fpk . } } graph ?fa { ?fip a fip:FAIR-Implementation-Profile ; rdfs:label ?fip_label ; fip:declared-by ?community . } } minus { service { select distinct ?fipnp where { { select (concat(\" \", group_concat(distinct ?cur_pkh; separator=\" \"), \" \") as ?curator_pkhs) where { service { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?cur_g . } graph ?cur_g { ?cur_ri a gen:RoleInstantiation ; npa:forSpace ; gen:hasRole ; npa:forAgent ?cur_agent . ?cur_acct a npa:AccountState ; npa:agent ?cur_agent ; npa:pubkey ?cur_pkh . } } } } graph ?da_fipnp { ?disapprover_fipnp npx:disapprovesOf ?fipnp . } graph npa:graph { ?dnp_fipnp np:hasAssertion ?da_fipnp ; npa:hasValidSignatureForPublicKeyHash ?dpk_fipnp . filter not exists { ?dx_fipnp npx:invalidates ?dnp_fipnp ; npa:hasValidSignatureForPublicKeyHash ?dpk_fipnp . } } filter(contains(?curator_pkhs, concat(\" \", ?dpk_fipnp, \" \"))) } } } } group by ?community } } optional { { select distinct ?qpk where { service { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?cur_g . } graph ?cur_g { ?cur_ri a gen:RoleInstantiation ; npa:forSpace ; gen:hasRole ; npa:forAgent ?cur_agent . ?cur_acct a npa:AccountState ; npa:agent ?cur_agent ; npa:pubkey ?qpk . } } } } service { graph npa:graph { ?qnp np:hasAssertion ?qa ; npa:hasValidSignatureForPublicKeyHash ?qpk . filter not exists { ?qx npx:invalidates ?qnp ; npa:hasValidSignatureForPublicKeyHash ?qpk . } } graph ?qa { ?qualifier npx:qualifies ?np . } values ?qualifier { } } } bind(if(bound(?qnp), \"✓\", \"\") as ?curated_x) } group by ?community order by desc(?score) """ . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-11-23T15:14:17Z"^^xsd:dateTime; dct:creator ; dct:license ; npx:embeds sub:fair-community-search-by-domain; npx:supersedes ; rdfs:label "FAIR community search by domain"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzZAkv4Mu1YSUxQMriBnhYunqosX5wpuQ3FjUyzW8wTC51wjCmhsChyhS+mCx7Od+2MTDpdhxDWA+pH1r9AX508X2rIY/sbpMS+pd56e0qKPQ0t4folln1TgamPN9iOlY/yLc2x27AdipWIGXUdtL2iAcb+P/Y5dQS2AkHMS3lP2e5JBL5/bD/10qvTLKvdsqIKts8qjuLpxr9CFbsS2gLjMkXL5D2IsJ0cL5sgmIfS1inLVxIfXrS/OgqYNFqeNznUYCVWfo0g7DKjnjiICz3omeQeJFLYwlJ6PhUhYDQS6O318DGwUCwhnuXbBbwL9evZa2I/0Pwu5xpZdNLYJ5UwIDAQAB"; npx:hasSignature "vgo/FAqqYpeLd+d6lrYv8QnSLiu5CT/Uai9MsSQt4lorxh9ZSR1zjsHbdpsoC4xR2fDRoO3RjNeQNp9xkVMujRIz8QUePoSIn8jAQuGqGKUWzItnK+HZqrYHHGctc74a4s5KqiQbtlEr68tcANUb6rDwV9utIsR4MN/y4ho/YRWSb75rKbfXmiPLStI6kLfePMaarKK18c6fvrZqc4V04F30N+ClfkmR6dPup3n+6mD60I/VBjfraFfquqegkZc09AbxyF77FrFPWCIygC61wYKMwFGwAfDaCeU7kd/B2jineWKlbDnoIc9nwgWvDxx4KzMLExv8j+S4bE4FOp08cg=="; npx:hasSignatureTarget this:; npx:signedBy . }