@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @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-part-info a ; dct:description "Key-value Info table for a PART (a resource viewed as part of a maintained resource/space/user). Finds the part's latest defining nanopub (npx:introduces/describes/embeds the part 'partid', signed by one of the owning resource's member pubkeys 'pubkey', not invalidated) and shows Type (the part's rdf:type(s)), Belongs to (the owning resource 'context'), and Defined in (the defining nanopub). Mirrors the maintained-resource Info view but sources from the part's definition."; dct:license ; rdfs:label "Get part info"; ; """prefix rdf: prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix gen: select distinct ?Property_noheader ?Property_label ?Value_noheader ?Value_label where { values ?__pubkey_multi {} graph npa:graph { ?dnp npa:hasValidSignatureForPublicKeyHash ?__pubkey_multi ; (npx:introduces|npx:describes|npx:embeds) ?_partid_iri ; dct:created ?ddate ; np:hasAssertion ?da . filter not exists { ?inv npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKeyHash ?__pubkey_multi . } filter not exists { ?dnp2 npa:hasValidSignatureForPublicKeyHash ?pk2 ; (npx:introduces|npx:describes|npx:embeds) ?_partid_iri ; dct:created ?ddate2 . filter not exists { ?inv2 npx:invalidates ?dnp2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . } filter(?ddate2 > ?ddate) } optional { ?dnp rdfs:label ?dnpLabel . } } optional { graph ?da { ?_partid_iri a ?typeIri . } } values (?key ?Property_noheader ?Property_label ?ord) { ('Type' rdf:type 'Type:' 1) ('Belongs to' rdf:type 'Belongs to:' 2) ('Defined in' rdf:type 'Defined in:' 3) } bind(if(?key = 'Type', ?typeIri, if(?key = 'Belongs to', ?_context_iri, ?dnp)) as ?Value_noheader) filter(bound(?Value_noheader)) bind(if(?key = 'Type', replace(str(?typeIri), '^.*[/#]', ''), if(?key = 'Belongs to', replace(str(?_context_iri), '^.*[/#]', ''), coalesce(?dnpLabel, '↗'))) as ?Value_label) } order by ?ord""" . } 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-06-15T18:45:19Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-part-info; rdfs:label "Get part info" . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "Ji/djVFHeenWjZBWZ7GwI6FISNaRYuIXB23u2xxOlLWlsBQAqu2/GgQjFQcBaFkzjuxjlqRE+Xelg7eHatpKwqrrg8YLPwKOe/HvTQmr25EMrh3bIITsAJzdJg83rz8BE9PlaYiQtc71WcE/rc99UWPCBPS0eFYkDGEwj3iuZmQ="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }