@prefix this: <https://w3id.org/np/RA7HCpPKDuU9MlnakZE7QHomIFsj-Nk5GwnConWniI2js> .
@prefix sub: <https://w3id.org/np/RA7HCpPKDuU9MlnakZE7QHomIFsj-Nk5GwnConWniI2js/> .
@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/> .

<https://w3id.org/np/RA7HCpPKDuU9MlnakZE7QHomIFsj-Nk5GwnConWniI2js> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dct:created "2026-04-13T14:37:17Z"^^xsd:dateTime;
  dct:creator orcid:0000-0002-1267-0234;
  dct:license <https://creativecommons.org/licenses/by/4.0/>;
  npx:introduces sub:get-all-templates;
  nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM>;
  nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RAA2MfqdBCzmz9yVWjKLXNbyfBNcwsMmOqcNUxkk1maIM>,
    <https://w3id.org/np/RAh1gm83JiG5M6kDxXhaYT1l49nCzyrckMvTzcPn-iv90>, <https://w3id.org/np/RAjpBMlw3owYhJUBo3DtsuDlXsNAJ8cnGeWAutDVjuAuI>;
  nt:wasCreatedFromTemplate <https://w3id.org/np/RAYvkQOT9-zrcql5lzMW9OpiPjA9UvSh-RezaVwYmWvns> .

sub:get-all-templates a <https://w3id.org/kpxl/grlc/grlc-query>;
  dct:description "Returns all assertion templates with their label, tag, creator and date, ordered by descending date";
  dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
  rdfs:label "Get all templates";
  <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/type/79342356d3a68063a627e83ac34b376479e438abb8a4c4b27d49f845f537dc8d>;
  <https://w3id.org/kpxl/grlc/sparql> """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix nt: <https://w3id.org/np/o/ntemplate/>

select ?template_iri ?template_iri_label ?tag ?creator ?date where {
  graph npa:graph {
    ?template_iri npa:hasValidSignatureForPublicKey ?pubkey .
    filter not exists { ?npx npx:invalidates ?template_iri ; npa:hasValidSignatureForPublicKey ?pubkey . }
    ?template_iri npx:hasNanopubType nt:AssertionTemplate .
    ?template_iri dct:created ?date .
    ?template_iri np:hasAssertion ?a .
    optional { ?template_iri npx:signedBy ?creator . }
  }
  optional { graph ?a { ?a rdfs:label ?template_iri_label } }
  optional { graph ?a { ?a nt:hasTag ?tag . } }
  filter not exists { graph ?a { ?a a nt:UnlistedTemplate } }
} order by desc(?date)""" .

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

orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
  npx:hasSignature "fzHAe6bXgrwfUv/20Il8LdU7COWY07917S2VpFNNQjHAmwtrPtEtqufpjsE+BegX+xRjdgjtma9MIXAtKx1C0KLwiOkx6GlHZY75do1a2tLzoCbsAFZthk5MmI51UPJkvlEpePR+QNpUh4U7zJH8t9O4qZ45xOpK4dnmUJv5uAw=";
  npx:hasSignatureTarget <https://w3id.org/np/RA7HCpPKDuU9MlnakZE7QHomIFsj-Nk5GwnConWniI2js>;
  npx:signedBy orcid:0000-0002-1267-0234 .

