@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-statements a ; dct:description "Returns all nanopublished things of type schema:Statement, with their text, the argumentative relations they declare (supports, disputes, qualifies, inReplyTo, ...), their author and their date. Retracted and superseded nanopublications are left out; example nanopublications are included."; dct:license ; rdfs:label "Get all statements"; ; """prefix rdf: prefix dct: prefix np: prefix npa: prefix npx: prefix foaf: prefix schema: select ?statement ?statement_label ?relations_multi ?author ?author_label ?date ?np (\"^\" as ?np_label) where { { select ?np ?a ?pi ?created ?statement ?text (group_concat(distinct ?rel; separator=\"\\n\") as ?relations_multi) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey ; np:hasAssertion ?a ; np:hasPublicationInfo ?pi ; dct:created ?created . filter not exists { ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?statement a schema:Statement . } optional { graph ?a { ?statement rdf:value ?value . } } optional { graph ?a { ?statement schema:text ?schemaText . } } bind(coalesce(?value, ?schemaText) as ?text) optional { graph ?a { ?statement ?relPred ?relObj . filter(isIRI(?relObj) && ?relPred != rdf:type) } bind(concat(replace(str(?relPred), \"^.*[/#]\", \"\"), \" → \", replace(str(?relObj), \"^.*[/#]\", \"\")) as ?rel) } } group by ?np ?a ?pi ?created ?statement ?text } optional { graph ?pi { ?np dct:creator ?author . } } optional { graph ?pi { ?author foaf:name ?author_label . } } bind(coalesce(?text, replace(str(?statement), \"^.*[/#]\", \"\")) as ?statement_label) bind(substr(str(?created), 1, 10) as ?date) } order by desc(?created)""" . } 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 "2026-08-24T14:21:36.238Z"^^xsd:dateTime; dct:creator orcid:0000-0001-8492-0354; dct:license ; npx:embeds sub:get-all-statements; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCaQXE2B2hJ6QdWxaWerU4F/XOtCQdj2OkdrIYd1kpMY9hIUh8boxaO3uOBeqvvqKLf5HjpRF4DT1eghOSsa2Dhd5HRTM/XIamvwWkHpN4oB3Ml19pAAzjTqczYmFLfgG67mGL5+vSA8VEdHtKQCrvP4SpTibMBP1qaxt3k1tqD6wIDAQAB"; npx:hasSignature "HGp7+o2CDBTDk4toudFnTzbU2fD0B6PDogxIvw2LQmWi0sqvnDbV8XtF9sg8KgE5lgUnq84HeZO0kNPk4sPe6jtpcjDL3YJvG7kQviyiyO2ZrPTRB2f3rJtihZ2ST8Kt7IMNNsR9iLpFdwZv2LzQwNlMEgWjLiyqYbqFR2k6zFk="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0001-8492-0354 . }