@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-templates-by-user a ; dct:description "Returns the assertion templates created by the given user."; dct:license ; rdfs:label "Get templates by given user"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix nt: select ?label ?tag ?date ?np (\"^\" as ?np_label) where { graph npa:graph { ?np npx:signedBy ?_user_iri . ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np npx:hasNanopubType nt:AssertionTemplate . ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?rawlabel . optional { ?a nt:hasTag ?tag . } filter not exists { ?a a nt:UnlistedTemplate } } bind(concat(\"\", ?rawlabel, \"\") as ?label) } 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-21T06:14:07Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-templates-by-user; npx:supersedes ; rdfs:label "Get templates by given user"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "L5fRFs3q0QUyC6RSmTHXA33okTt0uy8EBQSl+Wi99/3VwqKwmGt2IqDcuzNlhgDu2wCl32fRLeTVXXMh2EetcwcW1qRUH6GXji7VvdQ/dcWKB6mz50Lfh78yZMqKwLRGSFAW2HeiQXEuoGhNAwo/KTef/lOs1vF41e5R9fKb0c4="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }