@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-colonial-collections-provenance-events a ; dct:description "Returns all provenance-event claims (Colonial Collections nanopubs typed #ProvenanceEventVersion1) describing a CIDOC-CRM E10_Transfer_of_Custody. Columns: event type (Getty AAT) and its label, affected object (with short label), narrative text and its language, attributed community group, individual creator, and date. Sorted from most recent first."; dct:license ; rdfs:label "Get Colonial Collections provenance events"; ; """prefix rdf: prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: prefix prov: prefix crm: select ?event_type ?event_type_label ?source ?source_label ?narrative ?lang ?group ?group_label ?creator ?creator_label ?date ?np (\"^\" as ?np_label) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey ; dct:created ?datetime ; np:hasAssertion ?ag ; np:hasProvenance ?pg ; np:hasPublicationInfo ?pig . filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } } bind(substr(str(?datetime), 1, 10) as ?date) graph ?pig { ?np a . } graph ?ag { ?ev a crm:E10_Transfer_of_Custody . optional { ?ev crm:P2_has_type ?event_type . optional { ?event_type rdfs:label ?event_type_label } } optional { ?ev crm:P30_transferred_custody_of ?source . bind(substr(replace(str(?source), \"^.*/\", \"\"), 1, 8) as ?source_label) } optional { ?ev crm:P67i_is_referred_to_by ?ling . ?ling crm:P190_has_symbolic_content ?narrative_lit . bind(str(?narrative_lit) as ?narrative) bind(lang(?narrative_lit) as ?lang) } } optional { graph ?pg { ?ag prov:wasAttributedTo ?creator . optional { ?creator rdfs:label ?creator_label } optional { ?creator prov:actedOnBehalfOf ?group . optional { ?group rdfs:label ?group_label } } } } } order by desc(?datetime)""" . } 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-05-20T13:48:34Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-colonial-collections-provenance-events; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "lunGaZmECyiwVEbVolLT5EazPMTagFqRhnpJxpRWcQK/0OAHm2GqLVAyOC/HBtAZbdeLabl4hb530DvQXqhTZd1cp71emYywisKgGy3Mr8SC5jWwmfQiuDbqxiXpuL4bS7YQzXG6TMLbuLcvMs2llSscjv+xJ6y6zOyjE86vFcM="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }