Nanopublication

< Home

ID

https://w3id.org/np/RAkrE-RT3HXqPW_CMWnsZq0RF_1adcGGvKhO6JuKXsegg

Formats

.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt

Content

@prefix this: <https://w3id.org/np/RAkrE-RT3HXqPW_CMWnsZq0RF_1adcGGvKhO6JuKXsegg> .
@prefix sub: <https://w3id.org/np/RAkrE-RT3HXqPW_CMWnsZq0RF_1adcGGvKhO6JuKXsegg/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

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 <https://w3id.org/kpxl/grlc/grlc-query>;
    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 <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get part info";
    <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
    <https://w3id.org/kpxl/grlc/sparql> """prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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 gen: <https://w3id.org/kpxl/gen/terms/>

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 <https://creativecommons.org/licenses/by/4.0/>;
    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 .
}