@prefix this: . @prefix sub: . @prefix np: . @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-all-templates a ; dct:description "Returns all assertion templates with their label, tag, creator and date, ordered by descending date"; dct:license ; rdfs:label "Get all templates"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix nt: 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: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-04-13T14:37:17Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-all-templates; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "fzHAe6bXgrwfUv/20Il8LdU7COWY07917S2VpFNNQjHAmwtrPtEtqufpjsE+BegX+xRjdgjtma9MIXAtKx1C0KLwiOkx6GlHZY75do1a2tLzoCbsAFZthk5MmI51UPJkvlEpePR+QNpUh4U7zJH8t9O4qZ45xOpK4dnmUJv5uAw="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }