@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: np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo; a np:Nanopublication . } sub:assertion { sub:get-newer-versions-of-np dct:description "This query returns all newer versions of a given nanopublication, including those that since have been superseded or retracted."; dct:license ; a ; rdfs:label "Get all newer versions of this nanopublication"; ; """prefix np: prefix npa: prefix npx: prefix dct: select ?newerVersion ?date ?retractedBy ?supersededBy where { graph npa:graph { ?_np_iri npa:hasValidSignatureForPublicKey ?pubkey . } graph npa:networkGraph { ?newerVersion (npx:supersedes)* ?_np_iri . } graph npa:graph { filter exists { ?newerVersion npa:hasValidSignatureForPublicKey ?pubkey . } } optional { graph npa:graph { ?newerVersion dct:created ?date . } } optional { graph npa:graph { ?retractedBy npx:retracts ?newerVersion ; npa:hasValidSignatureForPublicKey ?pubkey . } } optional { graph npa:graph { ?supersededBy npx:supersedes ?newerVersion ; npa:hasValidSignatureForPublicKey ?pubkey . } } } order by desc(?date) ?newerVersion""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0001-8492-0354 . } sub:pubinfo { orcid:0000-0001-8492-0354 foaf:name "Ashley Caselli" . this: dct:created "2025-09-01T16:23:00.405Z"^^xsd:dateTime; dct:creator orcid:0000-0001-8492-0354; dct:license ; npx:embeds sub:get-newer-versions-of-np; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCaQXE2B2hJ6QdWxaWerU4F/XOtCQdj2OkdrIYd1kpMY9hIUh8boxaO3uOBeqvvqKLf5HjpRF4DT1eghOSsa2Dhd5HRTM/XIamvwWkHpN4oB3Ml19pAAzjTqczYmFLfgG67mGL5+vSA8VEdHtKQCrvP4SpTibMBP1qaxt3k1tqD6wIDAQAB"; npx:hasSignature "XA6Bf3eHby1w1ha8/wEgVrzzso41FINWCe+sr6AMl0C9jjzFGMmSDxK9mlfrQdP7+EYzKrqdSQr/P771sPAcGQ9ececkY14l6j52+AOUoMbXk2TIzSd6DqpSaQRb05btVlF+X6ffokXMgEaKnDzccoQ6S7+dk4NGiizA48lu2JA="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0001-8492-0354 . }