@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-collections-for-resource a ; dct:description "This query returns all collections that are part of the given resource"; dct:license ; rdfs:label "Get collections for resource"; ; """prefix rdfs: prefix dct: prefix dcmitype: prefix np: prefix npa: prefix npx: prefix gen: select ?collection ?collection_label ?date ?np where { graph npa:graph { ?np npx:hasNanopubType dcmitype:Collection . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?collection } graph ?a { ?collection a dcmitype:Collection . ?collection rdfs:label ?collection_label . optional { ?collection dct:description ?description } values ?_resource_multi_iri {} ?collection dct:isPartOf|gen:isMaintainedBy ?_resource_multi_iri . } } order by ?collection_label""" . } 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 "2025-12-17T16:53:56.245+01:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-collections-for-resource; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "psnJPnUijfcwLJ+3/CFc1KkufFY4rd1rbqwRV6yGwPpvnNv48+/1lYWeG/J2gV/JiuPQ5rcGdeWD6JDVaPcDcEdZkNR72zoBOgFaN7Zb+k1/MVPYRmyn+HbUY3pz92T7gqo/vwdZ4jVPlSWd/qnYqasZs3t36UjJpz2g8FHimho="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }