@prefix this: <https://w3id.org/np/RAMAM6qbOGM1_mm1Hhie3X4VzHd-vMfBBIHyyw50hZtz8> .
@prefix sub: <https://w3id.org/np/RAMAM6qbOGM1_mm1Hhie3X4VzHd-vMfBBIHyyw50hZtz8/> .
@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: np:hasAssertion sub:assertion ;
    np:hasProvenance sub:provenance ;
    np:hasPublicationInfo sub:pubinfo ;
    a np:Nanopublication .
}
sub:assertion {
  sub:get-pre-registrations dct:description "This query returns all pre-registrations" ;
    dct:license <http://www.apache.org/licenses/LICENSE-2.0> ;
    a <https://w3id.org/kpxl/grlc/grlc-query> ;
    rdfs:label "Get pre-registrations" ;
    <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 xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX prov: <http://www.w3.org/ns/prov#>

SELECT ?n1 ?label ?thing ?date where {
GRAPH npa:graph {
  ?n1 npx:introduces ?thing .
    ?n1 npx:hasNanopubType <https://w3id.org/fair/ff/terms/Pre-Registration> .
    ?n1 npa:hasValidSignatureForPublicKey ?pubkey .
    filter not exists {
      ?np2 npx:invalidates ?n1 ;
            npa:hasValidSignatureForPublicKey ?pubkey .
    }
    ?n1 dct:created ?date .
    ?n1 rdfs:label ?label .
    filter(contains(lcase(?label), lcase(?_searchterm)) )
  }
}""" .
}
sub:provenance {
  sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}
sub:pubinfo {
  orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
  orcid:0000-0003-2195-3997 foaf:name "Barbara Magagna" .
  this: dct:created "2025-07-11T07:33:40.880Z"^^xsd:dateTime ;
    dct:creator orcid:0000-0002-1267-0234 , orcid:0000-0003-2195-3997 ;
    dct:license <https://creativecommons.org/licenses/by/4.0/> ;
    npx:embeds sub:get-pre-registrations ;
    npx:supersedes <https://w3id.org/np/RA9UEk8FnU69OdpFN_jJTrtPd8Z81D0YTL5RgCgxt39xg> ;
    npx:wasCreatedAt <https://nanodash.knowledgepixels.com/> ;
    prov:wasDerivedFrom <https://w3id.org/np/RAGIS_dBT0qNpZr2s0wISRQ_2I7WPCCQJIWNEPZ-9nc78> , <https://w3id.org/np/RAl3JpMvvvuzw2SfDXT4m8fW_yFQG_0Cko-WpOvqy2NVw> ;
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU> ;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw> , <https://w3id.org/np/RAMEgudZsQ1bh1fZhfYnkthqH6YSXpghSE_DEN1I-6eAI> , <https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ> , <https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw> , <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI> ;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
  sub:sig npx:hasAlgorithm "RSA" ;
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCM0tu3I/KK6A/qPha/6pfngQZ4LBQpLnKAcIUuZLnSEb0epJ2IoY3zh/4N42us/6LpCHgZZZtSOTm5/KVo+OTDIqo294PpEZAO70u5DcMcGMC5OufzxGKs3Dwdo6XqPiDHxXuiaKCTO7/ABWAi7CtFoMrqJAHfeyqe82dAiH2IiwIDAQAB" ;
    npx:hasSignature "Lh+dDzrIB77kutHyT63UVWaG54w3e/PwE6fAo56jOR0OXwXOA75AK2HcAoXzVbCl7yc2ki7neormNqOFoY855b3LwofUZpo3TMV7a32AS+SVeCawsbHRmELyZfHy1TuoZ1KNCN6Jfq5gQ9rEG4LpO0yh4d/X0YjTJwIhjeAaTVk=" ;
    npx:hasSignatureTarget this: ;
    npx:signedBy orcid:0000-0003-2195-3997 .
}