@prefix dcterms: .
@prefix this: .
@prefix sub: .
@prefix np: .
@prefix nt: .
@prefix npx: .
@prefix xsd: .
@prefix rdfs: .
@prefix orcid: .
@prefix prov: .
@prefix foaf: .
sub:Head {
this: np:hasAssertion sub:assertion;
np:hasProvenance sub:provenance;
np:hasPublicationInfo sub:pubinfo;
a np:Nanopublication .
}
sub:assertion {
sub:get-classes-of-ontology dcterms:description "This query returns all classes that specify to be part of a given ontology.";
dcterms:license ;
a ;
rdfs:label "Get the classes of an ontology";
;
"""prefix owl:
prefix rdfs:
prefix dct:
prefix np:
prefix npa:
prefix npx:
prefix skos:
select ?class ?label (?definition as ?description) ?np where {
values ?_ontology_multi_iri {}
graph npa:graph {
?np npx:hasNanopubType owl:Class .
?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
?np dct:created ?date .
?np npx:introduces ?class .
?np np:hasAssertion ?a .
}
graph ?a {
?class dct:partOf ?_ontology_multi_iri .
optional { ?class rdfs:label ?label . }
optional { ?class skos:definition ?definition . }
}
}
order by ?label""" .
}
sub:provenance {
sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}
sub:pubinfo {
orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
this: dcterms:created "2025-10-24T09:00:44.035Z"^^xsd:dateTime;
dcterms:creator orcid:0000-0002-1267-0234;
dcterms:license ;
npx:embeds sub:get-classes-of-ontology;
npx:supersedes ;
npx:wasCreatedAt ;
nt:wasCreatedFromProvenanceTemplate ;
nt:wasCreatedFromPubinfoTemplate ,
, ;
nt:wasCreatedFromTemplate .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB";
npx:hasSignature "yGYJOPl3KQdsU1MfPgBp3svr4a1mvaTL9Ew74qxJneUCdVpTpM1RG/uyeM8cSmPi/QtJVy/+xt9J67ImCgCs26mdRKiYfFVQDTDCxjaXCAm7U4CJ4rtNbCG4kfpajmUmdue6mVcC0AuNVV3KbRQs1uBEcOsAox4M0sqzWw3O30k=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}