@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-messages-about-resource-and-parts a ; dct:description "This query returns plain-text messages about the given resource, including messages about things that are declared to be part of it or whose URI starts with the resource URI."; dct:license ; rdfs:label "Get messages about resource and its parts"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix schema: select ?about ?text (group_concat(concat('link'); separator=\", \") as ?link) ?user ?date ?np (\"^\" as ?np_label) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?text . ?a schema:about ?about . values ?_resource_multi_iri {} filter( strstarts(str(?about), str(?_resource_multi_iri)) || exists { graph npa:graph { ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 . filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . } ?np2 np:hasAssertion ?a2 . } graph ?a2 { { ?about dct:isPartOf ?_resource_multi_iri . } union { ?_resource_multi_iri dct:hasPart ?about . } } } ) optional { ?a rdfs:seeAlso ?link . } } } group by ?about ?text ?user ?date ?np 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-03-22T07:09:03Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-messages-about-resource-and-parts; prov:wasDerivedFrom ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "dAf93j8oHTbQpZpBMpdi+sOFAoeFTKalQriRWNxkvn5qRyMZeYHWf/5IK7PJWjX4x2PXyhH9V0OQLzRjVBFIkAy6gM5Qkmw/NjSWy6/Tb3aBi7y5VAaCSEyFKRlAl0ox3ydtb/FDzPn7kDY7d6InrJ67dfHvvFNkNSnOYIzmdpI="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }