@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."; dct:license ; rdfs:label "Get the most used FSRs of a type"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix np: prefix npa: prefix npx: prefix dct: prefix fip: 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) } } # 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-09-18T08:17:05Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-most-used-fsrs-of-type; 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 "Ne/BtfBtZXWyjBK0oz6wxYiBdeOTK2mNU8dLL7I3cEoo/D1YFKHuNiKw87rcAweO4qdJZXNXx1k1nIF72qlS1bcSragOLsBPjF0l0lisj2o6hLVtfCbH9c7HKSJR5VTHSIk5dMV6cmxIxDjT8IXSgXiBVwAyLQJPvGZyjVDdRcc="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }