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.
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix foaf: <http://xmlns.com/foaf/0.1/> prefix schema: <https://schema.org/> 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)