@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix kgrlc: . @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-nanopubs-by-user a kgrlc:grlc-query; dct:description "Returns the latest nanopublications signed by or created by a given user (signed via npx:signedBy, or created via dct:creator if no npx:signedBy is present)."; dct:license ; rdfs:label "Get latest nanopublications by user"; kgrlc:endpoint ; kgrlc:sparql """prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: select ?np ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:created ?date . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } filter not exists { ?np npx:hasNanopubType npx:retracts . } } { graph npa:graph { ?np npx:signedBy ?_userid_iri . } } union { filter not exists { graph npa:graph { ?np npx:signedBy ?anyuser . } } graph npa:graph { ?np dct:creator ?_userid_iri . } } } order by desc(?date) limit 100""" . } 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-13T10:45:00Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-nanopubs-by-user; npx:supersedes ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "PjRy/bicdLFIbGAQ4m740Tz8zOXbd1OL5ZazBQdocm37ABV7TDObcOnPZEqzMKX+YFieIXz3ejREH33AkQcTiECl9PHoTpEBeyNQfh3VF82/NFvowACqV4fIFMovcPa4LpY02xC2RuKBkd2WJmxBYdAAFrx2GZmDFdwjhodfti4="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }