Nanopublication

< Home

ID

https://w3id.org/np/RAJuVRbqaSK-Bbwpi-3RcKWvBJBggKSywpvUNVMM9ZwfA

Formats

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

Content

@prefix this: <https://w3id.org/np/RAJuVRbqaSK-Bbwpi-3RcKWvBJBggKSywpvUNVMM9ZwfA> .
@prefix sub: <https://w3id.org/np/RAJuVRbqaSK-Bbwpi-3RcKWvBJBggKSywpvUNVMM9ZwfA/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@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-popular-fsrs-for-domain-and-question a <https://w3id.org/kpxl/grlc/grlc-query>;
    dct:description "This query returns the most popular FAIR Supporting Resources (FSRs) for a given research domain, based on the current FIP declarations of the FAIR Implementation Communities in that domain (including its subdomains). It allows a search for specific FIP Questions (e.g. F1-D, I3-MD). For each FSR it shows the declaring communities (by the short name of their identifier), the FIP questions it was declared under, the matched (sub)domains, and the number of distinct declaring communities. This query is based on the query used for the 'Most used FSRs' resource view shown on domain part pages of the fair connect space.";
    dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get popular FSRs for domain and FIP-Question";
    <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
    <https://w3id.org/kpxl/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 str(?community); separator=\" \") as ?communities_multi_iri)
       (group_concat(distinct replace(str(?community), \"^.*[#/]\", \"\"); separator=\"\\n\") as ?communities_label_multi)
       (group_concat(distinct ?qcode; separator=\", \") as ?questions)
       (group_concat(distinct str(?subdomain); separator=\" \") as ?subdomains_multi_iri)
       (group_concat(distinct replace(str(?subdomain), \"^.*[#/]\", \"\"); separator=\"\\n\") as ?subdomains_label_multi)
       (count(distinct ?community) as ?count)
       (min(?fsrnp_x) as ?np) (min(\"^\") as ?np_label)
where {
  { select distinct ?community ?subdomain where {
    graph npa:graph {
      ?cnp npa:hasValidSignatureForPublicKey ?cpubkey ;
        npx:hasNanopubType fip:FAIR-Implementation-Community ;
        np:hasAssertion ?ca .
      ?cnp npx:introduces|npx:describes ?community .
      filter not exists { ?cnp npx:hasNanopubType npx:ExampleNanopub . }
      filter not exists { ?cnpx npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKey ?cpubkey . }
    }
    graph ?ca {
      ?community a fip:FAIR-Implementation-Community ;
        fip:has-research-domain ?subdomain .
    }
    graph <http://purl.org/np/RArRAOwj4QOppEPCR8WVvOBmrX7oRKOrPi-asX-7AY66I#assertion> {
      ?subdomain rdfs:subClassOf* ?_domain_iri .
    }
  } }
  graph ?fa {
    ?fip fip:declared-by ?community ;
      fip:has-declaration-index ?index .
  }
  graph npa:graph {
    ?fipnp np:hasAssertion ?fa ;
      npx:hasNanopubType fip:FAIR-Implementation-Profile ;
      npa:hasValidSignatureForPublicKey ?fippubkey .
    filter not exists { ?fipnp npx:hasNanopubType npx:ExampleNanopub . }
    filter not exists { ?fipnpx npx:invalidates ?fipnp ; npa:hasValidSignatureForPublicKey ?fippubkey . }
    ?index npa:hasValidSignatureForPublicKey ?ipubkey .
    filter not exists { ?indexx npx:invalidates ?index ; npa:hasValidSignatureForPublicKey ?ipubkey . }
  }
  graph npa:networkGraph {
    ?index npx:includesElement ?dnp .
  }
  graph npa:graph {
    ?dnp npx:hasNanopubType fip:FIP-Declaration ;
      np:hasAssertion ?da .
  }
  graph ?da {
    ?decl fip:declared-by ?community ;
      fip:refers-to-question ?question ;
      (fip:declares-current-use-of|fip:declares-planned-use-of) ?fsr .
  }
  
  # Extract the short question code (e.g., F1, R1.1)
  bind(replace(str(?question), \"^.*-([^-MD]+(-[MD]+)?)$\", \"$1\") as ?qcode)
  
  # MULTI-SELECT FILTER
  # If ?_question_codes is left empty, it ignores the filter. 
  # Otherwise, it checks if the string contains the extracted ?qcode.
  filter(!bound(?_question_codes) || ?_question_codes = \"\" || contains(?_question_codes, ?qcode))
  
  optional {
    graph npa:graph {
      ?fsrnp_x npx:introduces|npx:describes ?fsr ;
        rdfs:label ?fsr_label_x ;
        npa:hasValidSignatureForPublicKey ?fpubkey .
      filter not exists { ?fsrnp_x npx:hasNanopubType npx:ExampleNanopub . }
      filter not exists { ?fsrnpx npx:invalidates ?fsrnp_x ; npa:hasValidSignatureForPublicKey ?fpubkey . }
    }
  }
  filter( bound(?fsrnp_x) || not exists { graph npa:graph { ?onp npx:introduces|npx:describes ?fsr . } } )
}
group by ?fsr
order by desc(?count)""" .
}

sub:provenance {
  sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}

sub:pubinfo {
  orcid:0000-0002-0319-6542 foaf:name "Dario Bijker" .
  
  orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
  
  this: dct:created "2026-08-20T13:16:52.276Z"^^xsd:dateTime;
    dct:creator orcid:0000-0002-0319-6542, orcid:0000-0002-1267-0234;
    dct:license <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:get-popular-fsrs-for-domain-and-question;
    npx:wasCreatedAt <https://nanodash.knowledgepixels.com/>;
    prov:wasDerivedFrom <https://w3id.org/np/RA-DEv4tdQj_FxVDNuoxPEelSDupUVXk8G2r9HrY-qq8o>;
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
      <https://w3id.org/np/RAMEgudZsQ1bh1fZhfYnkthqH6YSXpghSE_DEN1I-6eAI>, <https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ>,
      <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
  
  sub:sig npx:hasAlgorithm "RSA";
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfUo0FLu1y2EeueL40lqkVdm9fTJa6WhF6MhyjhKAagbuaWe1wwyk453ot8KAQ3aHtL3B8Ze/aLf+wHrBhS0nz4wS6urc8ksIzlLCoa9KIfa0JuQunBLFptV0U9fTR8kDlPoB+klNrUfzeCXmkdgnnUiiwBoN+j1eN87XMSHKI3wIDAQAB";
    npx:hasSignature "WeYtynkikrUOYtALKPwjhXPxrqsPgdyRgN1U6owSvQe9l1oARvBukLqAwG++6Oh1nf/GTMrfRdRk4cHlNBQ+oOMH3kT7mw6cwoxiv9fFmilM2wtfRPwXt/EoGJZ1R59WYYnEmqQgqhnEdLWo70LOx/NLEzQol/jvJ7Du6+MGDU8=";
    npx:hasSignatureTarget this:;
    npx:signedBy orcid:0000-0002-0319-6542 .
}