@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:get-fsr-communities a grlc:grlc-query; dct:description "For a FAIR Supporting Resource (FSR), lists the FAIR Implementation Communities whose FIP declarations refer to it -- one row per community, showing the community name as a link and nothing else. The earlier version put the declaration details (type, questions, FAIR principles, kind of use, declaration count) in the same table, which made it hard to read off simply who uses the resource. Community names are taken from the current community nanopublication, falling back to a label from any earlier version and finally to the identifier fragment, so that a community whose description nanopublication has been superseded still shows a name rather than a bare URI; four of the seventy-four communities of the DOI resource were affected. Ordered by name, case-insensitively. The community column is projected as community_noheader so that the table renders the names without a column header, the panel title alone saying what the list is. A community whose newest nanopublication a GO FAIR Foundation curator has disapproved of (npx:disapprovesOf, signed with a curator's key and not invalidated) is left out, as in the FAIR Communities list. 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 "Get the communities using an FSR"; 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 as ?community_noheader) (coalesce(min(?preferred_label), min(?any_label), min(?fallback_label)) as ?community_label) (min(?cnp) as ?np) (\"^\" as ?np_label) where { graph npa:graph { ?dnp npx:hasNanopubType fip:FIP-Declaration ; np:hasAssertion ?da ; npa:hasValidSignatureForPublicKey ?dpk . filter not exists { ?dx npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKey ?dpk . } } graph ?da { ?decl a fip:FIP-Declaration ; fip:declared-by ?community . { ?decl fip:declares-current-use-of ?_fsr_iri } union { ?decl fip:declares-planned-use-of ?_fsr_iri } union { ?decl fip:declares-planned-replacement-of ?_fsr_iri } union { ?decl fip:declares-replacement-from ?_fsr_iri } union { ?decl fip:declares-replacement-to ?_fsr_iri } } # Left out when the newest nanopublication of the community is curator-disapproved, as in the FAIR Communities list. minus { { select distinct ?community 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 ?dac { ?disapproverc npx:disapprovesOf ?ndc . } graph npa:graph { ?dnpc np:hasAssertion ?dac ; npa:hasValidSignatureForPublicKeyHash ?dpkc . filter not exists { ?dxc npx:invalidates ?dnpc ; npa:hasValidSignatureForPublicKeyHash ?dpkc . } } filter(contains(?curator_pkhs, concat(\" \", ?dpkc, \" \"))) graph npa:graph { ?ndc npx:hasNanopubType fip:FAIR-Implementation-Community ; npx:introduces ?community ; npa:hasValidSignatureForPublicKey ?ndpkc ; dct:created ?nddc . filter not exists { ?ndxc npx:invalidates ?ndc ; npa:hasValidSignatureForPublicKey ?ndpkc . } filter not exists { ?ndc npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?nnc npx:hasNanopubType fip:FAIR-Implementation-Community ; npx:introduces ?community ; npa:hasValidSignatureForPublicKey ?nnpkc ; dct:created ?nndc . filter(?nndc > ?nddc) filter not exists { ?nnxc npx:invalidates ?nnc ; npa:hasValidSignatureForPublicKey ?nnpkc . } filter not exists { ?nnc npx:hasNanopubType npx:ExampleNanopub . } } } } } } bind(replace(replace(str(?community), \"^.*[/#]\", \"\"), \"-\", \" \") as ?fallback_label) # Preferred: the label from a current (non-invalidated) community nanopublication. optional { graph npa:graph { ?cnp npx:hasNanopubType fip:FAIR-Implementation-Community ; npx:introduces|npx:describes ?community ; np:hasAssertion ?ca ; npa:hasValidSignatureForPublicKey ?cpk . filter not exists { ?cx npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKey ?cpk . } } graph ?ca { ?community rdfs:label ?preferred_label } } # Fallback: a label from any community nanopublication, so that communities whose # description nanopublication has been superseded still show a name, not a bare URI. optional { graph npa:graph { ?anp npx:introduces|npx:describes ?community ; np:hasAssertion ?aa . } graph ?aa { ?community rdfs:label ?any_label } } } group by ?community order by lcase(str(coalesce(min(?preferred_label), min(?any_label), min(?fallback_label)))) """ . } 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:19:55Z"^^xsd:dateTime; dct:creator ; dct:license ; npx:embeds sub:get-fsr-communities; npx:supersedes ; rdfs:label "Get the communities using an FSR"; 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 "DbrELozgZCrcShjcWRaIahldtz8SvEwyBXdYXxwWBSUuH4A1XTc1d9VCDjcWS78rp19Hz9Y9c6qLS8We6q3SFjHa1+V9MV88CyopZ+WneWkJbm1wJwVjORuOZbz9dIRxg3T9RqNyb5shJQi0fICJVQ9JP7pnGsp+yxPrTGYHZgfS+WZC0L7ATcLr800pCKLWX46ixWHKW04HriryEgcoMI++P6HBY2juZ1dOKvt1Bro9bq0Mc/UbwaRU+8i2m6QRFNgNWukYqcQNOmNwgXXzZsqswxF8KJz21Himz3OMleggvXOVHF4UE02iw0X7FFn3I2eW56y8CiAgY+khPJyNpw=="; npx:hasSignatureTarget this:; npx:signedBy . }