@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: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-individuals-of-ontology-ns a ; dct:description "This query returns all individuals that specify to be part of a given ontology or use its namespace."; dct:license ; rdfs:label "Get the individuals of an ontology including via namespace"; ; """prefix owl: prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix skos: select distinct ?individual ?individual_label ?class (coalesce(?desc, ?def) as ?description) ?np (\"^\" as ?np_label) where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:NamedIndividual . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?individual . ?np np:hasAssertion ?a . } graph ?a { {{ ?individual a owl:NamedIndividual . filter(strstarts(str(?individual), ?__ontologyNamespace)) } union { ?individual a owl:NamedIndividual . ?individual dct:partOf ?_ontology_multi_iri . }} optional { ?individual a ?class . filter(?class != owl:NamedIndividual) } optional { ?individual rdfs:label ?individual_label . } optional { ?individual skos:definition ?def . } optional { ?individual dct:description ?desc . } } } order by ?class ?individual_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 "2026-01-14T12:35:48.259Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-individuals-of-ontology-ns; npx:supersedes ; npx:wasCreatedAt ; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB"; npx:hasSignature "dF4feOd+5iFZrRTv70es46RtMbB8FFZaBXlIoJlw/VAL93FW6YcHHt431sSq5bB/llI583MJ+IGzusbO6IZevIdwQsg+x/Erdb/rjos42Ef5B4J7a9zvGAkOMPcReE4vDzGwM/nZF0gN1tHnHlQk228C4xt2MERi7Kd6x36Rbns="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }