. . . . "The pending counterpart of 'Get the approved terms of an ontology from space members', and the type-generalised sibling of 'Get the classes pending approval of an ontology from space members'. It returns the terms (OWL classes, named individuals, object/datatype/annotation properties, and plain RDF properties) of the given ontology or vocabulary that are awaiting a curation decision: member-published, and neither approved nor explicitly member-disapproved, so disapproved terms appear in neither this listing nor the approved one. 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, and the verdict is judged on that winning definition only, so publishing a new version of an approved term moves it back into this listing until it is approved again. A version counts as approved -- and is therefore excluded here -- when the newest non-invalidated approval/disapproval nanopublication targeting it is an npx:approvesOf signed by a current member+ of the maintaining space who is not the definition's own signer (self-approval never counts; the latest verdict wins across all publishers), or 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 with no outstanding member disapproval. The approval verdicts are resolved once per request by a self-contained sub-select wrapped in a SERVICE self-reference to /repo/full (so the planner evaluates it independently), federating to /repo/spaces for the approvers' member keys; the helper-role key hashes come from the spaces repo via the validated role instantiations carrying gen:hasRole, wrapped in an extra sub-select so the federated call is evaluated once rather than per result row. The type column gives the term's most specific declared kind: rdf:Property is only reported when no owl:ObjectProperty/owl:DatatypeProperty/owl:AnnotationProperty type is declared alongside it, and the type_label companion renders the local name, such as Class, NamedIndividual or ObjectProperty. The description column takes skos:definition, falling back to dct:description (which is what the named-individual definitions use). The status column is a multi-value literal listing the curation states that apply to the winning definition: \"deprecated\" (owl:DeprecatedClass or owl:DeprecatedProperty) and \"example\" (npx:ExampleNanopub), in that order; terms whose winning definition types them gen:WithdrawnTerm are excluded entirely. The approve_target/approval_choice and disapprove_target/disapproval_choice column pairs are action data rather than content: they let a view offer per-row approve and disapprove actions pre-filled with the row's nanopublication and npx:approvesOf or npx:disapprovesOf respectively -- two separate choice columns are needed because one mapping source column can only carry one value per row -- and the override_target column carries the row's nanopublication for an in-place re-edit action. The last_modified_by/last_modified columns give the signer and timestamp of the latest definition; the signer name is resolved from the trust repo (/repo/trust) or left blank." . . . "Get the terms pending approval of an ontology from space members" . . "prefix owl: \nprefix rdfs: \nprefix rdf: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix skos: \nprefix schema: \nprefix gen: \nprefix foaf: \n\nselect ?term ?term_label ?type ?type_label ?description ?status_multi\n ?last_modified_by (sample(?lmbl) as ?last_modified_by_label) ?last_modified\n (?np as ?override_target) ?approve_target ?approval_choice ?disapprove_target ?disapproval_choice ?np ?np_label where {\n {\n select ?term (sample(?term_label_) as ?term_label)\n (max(?typeRank) as ?typeWin)\n (coalesce(sample(?definition_), sample(?description_)) as ?description)\n (sample(?status_) as ?status_multi)\n (sample(?user) as ?last_modified_by) (sample(?date) as ?last_modified)\n (sample(?np_) as ?np) (\"^\" as ?np_label) where {\n {\n select ?term (max(?rank) as ?maxrank) where {\n {\n select ?np_ ?term ?a ?date ?pubkey where {\n values ?itemType { owl:Class owl:ObjectProperty owl:DatatypeProperty owl:AnnotationProperty owl:NamedIndividual rdf:Property }\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_ontology_multi_iri {}\n graph ?stateG {\n ?_ontology_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ;\n npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n }\n }\n graph npa:graph {\n ?np_ npx:hasNanopubType ?itemType .\n ?np_ npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npx npx:invalidates ?np_ ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n ?np_ dct:created ?date .\n ?np_ npx:introduces ?term .\n ?np_ np:hasAssertion ?a .\n }\n filter(contains(?memberPubkeys, ?pubkey))\n }\n }\n values ?_ontology_multi_iri {}\n graph ?a { ?term dct:isPartOf|dct:partOf|schema:isPartOf ?_ontology_multi_iri . }\n bind(concat(str(?date), \"|\", str(?np_)) as ?rank)\n } group by ?term\n }\n {\n select ?np_ ?term ?a ?date ?user ?pubkey ?itemType where {\n values ?itemType { owl:Class owl:ObjectProperty owl:DatatypeProperty owl:AnnotationProperty owl:NamedIndividual rdf:Property }\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?_ontology_multi_iri {}\n graph ?stateG {\n ?_ontology_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ;\n npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n }\n }\n graph npa:graph {\n ?np_ npx:hasNanopubType ?itemType .\n ?np_ npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists { ?npx npx:invalidates ?np_ ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n ?np_ dct:created ?date .\n ?np_ npx:introduces ?term .\n ?np_ np:hasAssertion ?a .\n optional { ?np_ npx:signedBy ?user . }\n }\n filter(contains(?memberPubkeys, ?pubkey))\n }\n }\n values ?_ontology_multi_iri {}\n graph ?a { ?term a ?itemType ; dct:isPartOf|dct:partOf|schema:isPartOf ?_ontology_multi_iri . }\n bind(concat(str(?date), \"|\", str(?np_)) as ?rank)\n filter(?rank = ?maxrank)\n filter not exists { graph ?a { ?term a gen:WithdrawnTerm } }\n optional { graph ?a { ?term rdfs:label ?term_label_ . filter(lang(?term_label_) = \"\") } }\n optional { graph ?a { ?term skos:definition ?definition_ . } }\n optional { graph ?a { ?term dct:description ?description_ . } }\n bind(if(?itemType = rdf:Property, concat(\"1|\", str(?itemType)), concat(\"2|\", str(?itemType))) as ?typeRank)\n bind(replace(concat(\n if(exists { graph ?a { ?term a owl:DeprecatedClass } } || exists { graph ?a { ?term a owl:DeprecatedProperty } }, \"deprecated\\n\", \"\"),\n if(exists { graph npa:graph { ?np_ npx:hasNanopubType npx:ExampleNanopub } }, \"example\\n\", \"\")\n ), \"\\n$\", \"\") as ?status_)\n {\n select (group_concat(distinct ?apV; separator=\" \") as ?approvedNps)\n (group_concat(distinct ?disV; separator=\" \") as ?disapprovedNps) where {\n {\n select ?vTarget (max(concat(str(?vDate), \">\", str(?vNp), \">\", ?vMark)) as ?vWin) where {\n values ?_ontology_multi_iri {}\n service {\n select (group_concat(?vpk; separator=\" \") as ?vMemberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?vStateG . }\n values ?_ontology_multi_iri {}\n graph ?vStateG {\n ?_ontology_multi_iri npa:isMaintainedBy? ?vSpace .\n ?vRi a gen:RoleInstantiation ; npa:forSpace ?vSpace ; npa:forAgent ?vMember ;\n npa:hasRoleType ?vRt .\n filter(?vRt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?vAcct a npa:AccountState ; npa:agent ?vMember ; npa:pubkey ?vpk .\n }\n }\n }\n service {\n select distinct ?vTarget ?vNp ?vDate ?vPubkey ?vMark where {\n values ?vType { owl:Class owl:ObjectProperty owl:DatatypeProperty owl:AnnotationProperty owl:NamedIndividual rdf:Property }\n graph npa:graph {\n ?vTarget npx:hasNanopubType ?vType ; npx:signedBy ?targetAgent .\n ?vNp npx:signedBy ?vAgent ;\n npa:hasValidSignatureForPublicKeyHash ?vPubkey ;\n dct:created ?vDate ;\n np:hasAssertion ?vA .\n filter not exists { ?vInv npx:invalidates ?vNp ; npa:hasValidSignatureForPublicKeyHash ?vPubkey . }\n }\n graph ?vA { ?vAgent ?vPred ?vTarget . }\n values ?vPred { npx:approvesOf npx:disapprovesOf }\n filter(?vAgent != ?targetAgent)\n bind(if(?vPred = npx:approvesOf, \"a\", \"d\") as ?vMark)\n }\n }\n filter(contains(?vMemberPubkeys, ?vPubkey))\n } group by ?vTarget\n }\n bind(if(strends(?vWin, \"a\"), str(?vTarget), \"\") as ?apV)\n bind(if(strends(?vWin, \"d\"), str(?vTarget), \"\") as ?disV)\n }\n }\n {\n select (sample(?helperPubkeys_) as ?helperPubkeys) where {\n service {\n select (group_concat(?hpk; separator=\" \") as ?helperPubkeys_) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?hStateG . }\n values ?_ontology_multi_iri {}\n graph ?hStateG {\n ?_ontology_multi_iri npa:isMaintainedBy? ?hSpace .\n ?hRi a gen:RoleInstantiation ; npa:forSpace ?hSpace ; npa:forAgent ?hAgent ;\n gen:hasRole .\n ?hAcct a npa:AccountState ; npa:agent ?hAgent ; npa:pubkey ?hpk .\n }\n }\n }\n }\n }\n bind(contains(concat(\" \", ?approvedNps, \" \"), concat(\" \", str(?np_), \" \")) as ?explicitApproved)\n bind(contains(concat(\" \", ?disapprovedNps, \" \"), concat(\" \", str(?np_), \" \")) as ?explicitDisapproved)\n bind(contains(?helperPubkeys, ?pubkey) as ?isAutoApproved)\n bind(?explicitApproved || (?isAutoApproved && !?explicitDisapproved) as ?isApproved)\n filter(!?isApproved && !?explicitDisapproved)\n } group by ?term\n }\n bind(iri(strafter(?typeWin, \"|\")) as ?type)\n bind(replace(str(?type), \"^.*[#/]\", \"\") as ?type_label)\n bind(str(?np) as ?approve_target)\n bind(str(npx:approvesOf) as ?approval_choice)\n bind(str(?np) as ?disapprove_target)\n bind(str(npx:disapprovesOf) as ?disapproval_choice)\n optional {\n service {\n select ?last_modified_by ?lmbl where {\n graph npa:graph { npa:thisRepo npa:hasCurrentTrustState ?tg . }\n graph ?tg { ?last_modified_by foaf:name ?lmbl . }\n }\n }\n }\n}\ngroup by ?term ?term_label ?type ?type_label ?description ?status_multi ?last_modified_by ?last_modified ?approve_target ?approval_choice ?disapprove_target ?disapproval_choice ?np ?np_label\norder by ?term_label" . . "Tobias Kuhn" . "2026-08-26T06:57:57Z"^^ . . . . "Get the terms pending approval of an ontology from space members" . . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "o9EeXLOZj3bQXqHDZLWifGMrGSk78MfsGrFVY5Ovz0AMCcliaL/0hCru1u1W+fFwRlTWfJaWeHpm2xc9nHIDHgJLgKlMpoOt5Rd+M7Mm7xdmbN0ukPyeGWtPmXvMReXbATkt1ra9BQIGW1XE5KRqkLq8TqezTGP7FVqFBlSZz/w=" . . .