@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @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-assertion-templates a grlc:grlc-query; dct:description "Returns the basic info of all assertion templates. Supports both template identity shapes (docs/template-identity-and-governance.md in the nanodash repo): the label, tag, and unlisted flag are read off the node typed nt:AssertionTemplate in the assertion -- the assertion graph URI for legacy templates, the embedded template node for templates with embedded identity -- falling back to the assertion graph URI if no typed node is found. Derived from (not superseding) the previous version, which is signed by a different key; consumers pin query IDs explicitly, so both versions stay usable."; dct:license ; rdfs:label "Get assertion templates"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix nt: select ?np ?pubkey ?pubkeyhash ?date ?label ?tag ?unlisted ?creator where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np npa:hasValidSignatureForPublicKeyHash ?pubkeyhash . ?np npx:hasNanopubType nt:AssertionTemplate . ?np dct:created ?date . ?np np:hasAssertion ?a . optional { ?np npx:signedBy ?creator . } } optional { graph ?a { ?tnode a nt:AssertionTemplate } } bind(coalesce(?tnode, ?a) as ?t) optional { graph ?a { ?t rdfs:label ?label } } optional { graph ?a { ?t nt:hasTag ?tag . } } bind(exists { graph ?a { ?t a nt:UnlistedTemplate } } as ?unlisted) } order by desc(?date)""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234; prov:wasDerivedFrom . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-07-08T13:46:21Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-assertion-templates; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "H8DoAHj56Ot9YPeJcvs3LavElt9E3ExhHy0eo5zlnnOq04Y7+s/rBKyAzcb8Ej9UA5oVzaIZUP5hRfQk8uD3wcI6r4k/YkbuyhpRCdeuuVGXsgeAG07wrZbHYCGlfS/dKiVAz3cIJie59WZzlyX92V7mYPF6KZW18g3kwkbH4n0="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }