Get the approved terms of an ontology from space members
type: grlc-query
description: Returns the approved terms (OWL classes, named individuals, object/datatype/annotation properties, and plain RDF properties) of the given ontology or vocabulary. It is the type-generalised sibling of 'Get the approved classes of an ontology from space members': same membership restriction, same latest-wins selection and the same approval semantics, but covering every OWL term kind instead of classes only, and with a type column instead of the superclasses columns. Because it spans several nanopub types it runs on the full repository (/repo/full) rather than a type-scoped endpoint. A term is included when its definition declares it part of the given resource via dct:isPartOf (or the legacy dct:partOf or schema:isPartOf), and the defining nanopublication was published by an admin, maintainer, or member of the space that maintains the resource; the maintaining space and its validated member public-key hashes are resolved server-side from the spaces repo (/repo/spaces), observers excluded. Each term URI appears once, kept from the latest (by nanopub timestamp, ties broken by nanopub URI) member-published definition; approval is judged on that winning definition only, so publishing a new version starts it out unapproved until it is approved again. A version counts as approved when the newest non-invalidated approval/disapproval nanopublication targeting it is an npx:approvesOf (latest wins across all publishers), its publisher signed with a key belonging to a current member+ of the maintaining space, and that publisher is not the signer of the nanopublication being approved (self-approval never counts). In addition, a contribution counts as approved by default when its signing key belongs to a validated holder of the auto-approved helper role (https://w3id.org/np/RASGFRI3F5TtJ4GA4Yaed3esIpTF3pDyJLbpuvsqHzIXc/autoApprovedHelperRole) in the maintaining space -- typically a curation bot the space has admitted in that role -- unless an outstanding member disapproval override…
license: LICENSE-2.0
endpoint: full
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#> prefix schema: <https://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?term ?term_label ?type ?type_label ?description ?status_multi ?last_modified_by (sample(?lmbl) as ?last_modified_by_label) ?last_modified (?np as ?override_target) ?disapprove_target ?approval_choice ?np ?np_label where { { select ?term (sample(?term_label_) as ?term_label) (max(?typeRank) as ?typeWin) (coalesce(sample(?definition_), sample(?description_)) as ?description) (sample(?status_) as ?status_multi) (sample(?user) as ?last_modified_by) (sample(?date) as ?last_modified) (sample(?np_) as ?np) ("^" as ?np_label) where { { select ?term (max(?rank) as ?maxrank) where { { select ?np_ ?term ?a ?date ?pubkey where { values ?itemType { owl:Class owl:ObjectProperty owl:DatatypeProperty owl:AnnotationProperty owl:NamedIndividual rdf:Property } service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . } values ?_ontology_multi_iri {} graph ?stateG { ?_ontology_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?rt . filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?np_ npx:hasNanopubType ?itemType . ?np_ npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np_ ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }…

Get the approved terms of an ontology from space members
type: Nanopublication
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
created: 2026-08-26T06:33:51Z
creator: Tobias Kuhn
license: https://creativecommons.org/publicdomain/zero/1.0/
embeds: Get the approved terms of an ontology from space members

sig
has algorithm: RSA
signed by: Tobias Kuhn