@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix skos: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-definitions-of-ontology-ns a grlc:grlc-query; dct:description "This query returns all definition nanopublications that define the elements of a given OWL ontology, like classes and properties, including those that match the namespace and including paragraphs describing the ontology. Each defining nanopublication is listed once per item, with all versions included."; dct:license ; rdfs:label "Get the definitions of an ontology including namespace and descriptions"; grlc:endpoint ; grlc:sparql """prefix owl: prefix rdfs: prefix rdf: prefix dct: prefix np: prefix npa: prefix npx: prefix skos: prefix schema: prefix gen: select ?np (\"^\" as ?np_label) ?item (coalesce(min(?item_label_u), min(?item_label_a)) as ?item_label) ?creator ?date where { values ?_ontology_multi_iri {} graph npa:graph { values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph } ?np npx:hasNanopubType ?itemType . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?item . optional { ?np npx:signedBy ?creator . } ?np np:hasAssertion ?a . } graph ?a { { ?item a ?itemType . filter(strstarts(str(?item), ?__ontologyNamespace)) } union { ?item a ?itemType . ?item dct:partOf|dct:isPartOf|schema:isPartOf ?_ontology_multi_iri . } optional { ?item rdfs:label|schema:title ?item_label_u . filter(lang(?item_label_u) = \"\") } optional { ?item rdfs:label|schema:title ?item_label_a . } } } group by ?np ?item ?creator ?date order by lcase(str(coalesce(?item_label, \"\"))) desc(?date)""" . } 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-11-11T10:23:37Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-definitions-of-ontology-ns; skos:changeNote "One row per defining nanopub and item instead of one per label variant (labels in several languages); prefer untagged labels; sort by label (the previous sort key ?label was never bound), then newest first; also match dct:isPartOf."; prov:wasDerivedFrom ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "N7i25j+kwBUuvfMrT9ZmweY0KTK0fXhz8e8oDVvQvFhXvRYvmXkUdOCVRlUDxWhhh3R6u8ih4ELzd4jvcWmTmnexfOsCuEqwlkp/vF2SuKc6U205enqINOgais/6Zo5dSLnA4k0koqhr4e6R/4rATtUL2ezzNFxhArb8uMSdYVI="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }