@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @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-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 ; a ; rdfs:label "Get the definitions of an ontology"; ; """prefix owl: prefix rdfs: prefix rdf: prefix dct: prefix np: prefix npa: prefix npx: prefix skos: 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""" . } 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 "2025-11-12T11:30:04.149+01:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-definitions-of-ontology; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "VkgA1z2M8yQ7zplhP5yJQjrtwRUBd/RHg+oLy9ALr6ROBm8UBHmBxKZu8U0rQhDXPd992h9aofFS9J4LLgKSf/fec/fhIBr21fYJmUHLEiXO5J0RixGebZ7yu4E52QtCWQgZ3/hhCvtYrAFTIlNyd4EWdZ5qPTlJJsNDTmXIZFU="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }