Nanopublication

< Home

ID

https://w3id.org/np/RAosv51-_RxC3U1nSEkOusJ2Nh_0RKtJp8SaxrklVa2ss

Formats

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

Content

@prefix this: <https://w3id.org/np/RAosv51-_RxC3U1nSEkOusJ2Nh_0RKtJp8SaxrklVa2ss> .
@prefix sub: <https://w3id.org/np/RAosv51-_RxC3U1nSEkOusJ2Nh_0RKtJp8SaxrklVa2ss/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@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-individuals-of-ontology-ns a <https://w3id.org/kpxl/grlc/grlc-query>;
    dct:description "This query returns all individuals that specify to be part of a given ontology or use its namespace. Adds two action-data columns for a per-row in-place re-edit action: override_target carries the row's own nanopublication, and override_template the template that nanopublication was created from, so each individual reopens in the template it was actually made with. Individuals whose nanopublication records no template -- for example the hand-authored FIP-Ontology ones -- fall back to \"Defining a new individual\", so that the action stays available on every row rather than disappearing where no template is recorded. Both columns are action-mapping sources and are therefore not rendered as table columns.";
    dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get the individuals of an ontology including via namespace, with override columns";
    <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/type/f2a0ff8319823c7eb4c1e93c8c6b25c6ebc8a46454801e856e8cc1f98e4641f4>;
    <https://w3id.org/kpxl/grlc/sparql> """prefix owl: <http://www.w3.org/2002/07/owl#>
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 skos: <http://www.w3.org/2004/02/skos/core#>
prefix nt: <https://w3id.org/np/o/ntemplate/>

select distinct ?individual ?individual_label ?class (coalesce(?desc, ?def) as ?description)
       (str(?np) as ?override_target) (str(coalesce(?srcTemplate, <https://w3id.org/np/RAUXTKJMABL75eHuEH5WEw4NweGUKL8gs0v3qot5Tptdo>)) as ?override_template)
       ?np (\"^\" as ?np_label) where {
  values ?_ontology_multi_iri {}
  graph npa:graph {
    ?np npx:hasNanopubType owl:NamedIndividual .
    ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
    filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
    ?np dct:created ?date .
    ?np npx:introduces ?individual .
    ?np np:hasAssertion ?a .
  }
  optional {
    graph npa:graph { ?np np:hasPublicationInfo ?srcPubinfo . }
    graph ?srcPubinfo { ?np nt:wasCreatedFromTemplate ?srcTemplate . }
  }
  graph ?a {
    {{
      ?individual a owl:NamedIndividual .
      filter(strstarts(str(?individual), ?__ontologyNamespace))
    } union {
      ?individual a owl:NamedIndividual .
      ?individual dct:partOf ?_ontology_multi_iri .
    }}
    optional {
      ?individual a ?class .
      filter(?class != owl:NamedIndividual)
    }
    optional { ?individual rdfs:label ?individual_label . }
    optional { ?individual skos:definition ?def . }
    optional { ?individual dct:description ?desc . }
  }
}
order by ?class ?individual_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 "2026-09-16T12:48:46Z"^^xsd:dateTime;
    dct:creator orcid:0000-0002-1267-0234;
    dct:license <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:get-individuals-of-ontology-ns;
    prov:wasDerivedFrom <https://w3id.org/np/RA6Cc0zgnWS-G5oVTOEMLgcWXQA24sLSh5FfZ30jazAzU>;
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw>,
      <https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
  
  sub:sig npx:hasAlgorithm "RSA";
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
    npx:hasSignature "H8UepE1OgR3OEE34j9KS68GXohOSlcpcFvVkc9AsKrWeBqThmKH3FunTDzamXQKNH3gddRZPBjBs+vT0SN9iyLvY6XhJjbl6Huo54XezaTApjLo/+MYJ9e8vd+KOiFBN3mAu1ig0eDNl7kD539aG4huMpx6yHLsqtFgR5Sd1sBA=";
    npx:hasSignatureTarget this:;
    npx:signedBy orcid:0000-0002-1267-0234 .
}