Nanopublication

< Home

ID

https://w3id.org/np/RANbwBqEdy8JCJlM7t1FnwR_A9-S2CW3F6lkb7tQE2d6U

Formats

.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt

Content

@prefix this: <https://w3id.org/np/RANbwBqEdy8JCJlM7t1FnwR_A9-S2CW3F6lkb7tQE2d6U> .
@prefix sub: <https://w3id.org/np/RANbwBqEdy8JCJlM7t1FnwR_A9-S2CW3F6lkb7tQE2d6U/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

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 <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get the most used FSRs of a type";
    grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
    grlc:sparql """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix dct: <http://purl.org/dc/terms/>
prefix fip: <https://w3id.org/fair/fip/terms/>

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 <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:get-most-used-fsrs-of-type;
    rdfs:label "Get the most used FSRs of a type";
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
      <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAYvkQOT9-zrcql5lzMW9OpiPjA9UvSh-RezaVwYmWvns> .
  
  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 .
}