sub:assertion {
sub:get-definitions-of-ontology dct:description "This query returns all definition nanopublications that define the elements of a given OWL ontology, like classes and properties." ;
dct:license <
http://www.apache.org/licenses/LICENSE-2.0> ;
a <
https://w3id.org/kpxl/grlc/grlc-query> ;
rdfs:label "Get the definitions of an ontology" ;
<
https://w3id.org/kpxl/grlc/endpoint> <
https://w3id.org/np/l/nanopub-query-1.1/repo/full> ;
<
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
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#>
select distinct ?np ?term ?term_label ?creator ?date where {
values ?_ontology_multi_iri {}
graph npa:graph {
values ?termType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual }
?np npx:hasNanopubType ?termType .
?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
?np dct:created ?date .
?np npx:introduces ?term .
?np npx:signedBy ?creator .
?np np:hasAssertion ?a .
}
graph ?a {
?term dct:partOf ?_ontology_multi_iri .
optional { ?term rdfs:label ?term_label . }
}
}
order by ?label""" .
}