@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-version dcterms:description "This query returns all classes that are part of a given version of an ontology.";
dcterms:license ;
a ;
rdfs:label "Get the classes of an ontology version";
;
"""prefix owl:
prefix rdfs:
prefix dct:
prefix np:
prefix npa:
prefix npx:
prefix skos:
prefix gen:
select distinct ?class ?label (?definition as ?description) (?termNp as ?np) where {
graph npa:graph {
?_ontologyVersionNp_iri npx:introduces ?ontologyVersion .
?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA .
}
graph ?ontologyVersionNpA {
?ontologyVersion a owl:Ontology .
?ontologyVersion gen:hasContentIndex ?contentIndex .
}
graph npa:graph {
?contentIndex np:hasAssertion ?contentIndexA .
}
graph ?contentIndexA {
?contentIndex npx:includesElement ?termNp .
}
graph npa:graph {
}
graph npa:graph {
?termNp dct:created ?date .
?termNp npx:introduces ?class .
?termNp np:hasAssertion ?termNpA .
}
graph ?termNpA {
?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-11-13T20:24:45.778Z"^^xsd:dateTime;
dcterms:creator orcid:0000-0002-1267-0234;
dcterms:license ;
npx:embeds sub:get-classes-of-ontology-version;
npx:wasCreatedAt ;
prov:wasDerivedFrom ;
nt:wasCreatedFromProvenanceTemplate ;
nt:wasCreatedFromPubinfoTemplate ,
, ;
nt:wasCreatedFromTemplate .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB";
npx:hasSignature "PuGtq2uGvKfRdkv/6OJBZf7f+ouEQf1mZrG+EBwq8xbF1lbEdFbH3Dp5M7QYRGWX+uxvbjBnsYDHIK+pEV1wOdxOjO0ytwqCX3VItiX0s93NTiWbOeIeUkhPlz6T8R3Hbb360e8d71t5Cc6r/WmKRJsJZRaT4tJPWDDTj8gTkkg=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}