@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-most-used-fsrs-of-type a grlc:grlc-query; dct:description "For a kind of FAIR Supporting Resource, such as Registry, lists the resources of that kind ranked by how many FAIR Implementation Communities refer to them in their FIP declarations. The per-type counterpart of the most-used listing that domain pages already have. Each resource is taken from its latest valid, non-example nanopublication of that type; the five declaration predicates are matched in a single scan through a VALUES block rather than as a five-way UNION. Nanopublications that a GO FAIR Foundation curator has disapproved of (npx:disapprovesOf, signed with a curator's key and not invalidated) are left out, as in the space-level FSR lists. 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 most used FSRs of a type"; 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 ?fsr (min(?fsr_label_x) as ?fsr_label) (group_concat(distinct ?qcode; separator=\", \") as ?questions) (count(distinct ?community) as ?number_of_communities) (min(?fsrnp) as ?np) (\"^\" as ?np_label) where { # The resource, from its latest valid nanopublication of the requested type. graph npa:graph { ?fsrnp npx:hasNanopubType ?_type_iri ; npx:introduces|npx:describes ?fsr ; rdfs:label ?fsr_label_x ; npa:hasValidSignatureForPublicKey ?pk ; dct:created ?date . filter not exists { ?fsrnp npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?fx npx:invalidates ?fsrnp ; npa:hasValidSignatureForPublicKey ?pk . } filter not exists { ?fsrnp2 npx:hasNanopubType ?_type_iri ; npx:introduces|npx:describes ?fsr ; npa:hasValidSignatureForPublicKey ?pk2 ; dct:created ?date2 . filter not exists { ?fsrnp2 npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?fx2 npx:invalidates ?fsrnp2 ; npa:hasValidSignatureForPublicKey ?pk2 . } filter(?date2 > ?date) } } { 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 . } } } } filter not exists { graph ?daf { ?disapproverf npx:disapprovesOf ?fsrnp . } graph npa:graph { ?dnpf np:hasAssertion ?daf ; npa:hasValidSignatureForPublicKeyHash ?dpkf . filter not exists { ?dxf npx:invalidates ?dnpf ; npa:hasValidSignatureForPublicKeyHash ?dpkf . } } filter(contains(?curator_pkhs, concat(\" \", ?dpkf, \" \"))) } # FIP declarations referring to it. One scan over the five declaration predicates. values ?useProp { fip:declares-current-use-of fip:declares-planned-use-of fip:declares-planned-replacement-of fip:declares-replacement-from fip:declares-replacement-to } 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:refers-to-question ?question ; fip:declared-by ?community ; ?useProp ?fsr . } bind(replace(str(?question), \"^.*FIP-Question-\", \"\") as ?qcode) } group by ?fsr order by desc(?number_of_communities) """ . } 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:22:48Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-most-used-fsrs-of-type; npx:supersedes ; rdfs:label "Get the most used FSRs of a type"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "o5feJZ0Z64G8EdvO7ycdhAiCSM/6KMcuju6k9Nddg+ogkueV3aaz2Vi9FqQQZHMxrt5roBhZumzYOD/uLVACgxl+dg03+upl4WQ9WlS47L0HPsdnFdBGAt0h4cpBZCbhIRGP0z3rgosuWjSX99MgEoym37xSl4SGXglf4DVQfzA="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }