List space observers
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
type: Nanopublication
created: 2026-06-09T11:10:45Z
creator: Tobias Kuhn
license: https://creativecommons.org/licenses/by/4.0/
embeds: List space observers

List space observers
description: Lists the observers of a given space (members whose highest role tier is observer, i.e. who hold no admin, maintainer, or member role) together with links to the role-assignment nanopubs, labelled by the specific role name.
license: LICENSE-2.0
type: grlc-query
endpoint: spaces
sparql: prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?member ?role_assignments_multi_iri ?role_assignments_label_multi where { { select ?member (max(?higher) as ?maxHigher) (group_concat(?grantNp; separator=" ") as ?role_assignments_multi_iri) (group_concat(?roleLabel; separator="\n") as ?role_assignments_label_multi) where { { select ?member ?grantNp (max(?higher0) as ?higher) (sample(?roleLabel0) as ?roleLabel) where { values ?_space_multi_iri {} graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . } graph ?g { ?ri a gen:RoleInstantiation ; npa:forSpace ?_space_multi_iri ; npa:forAgent ?member ; npa:viaNanopub ?grantNp . } bind(exists { graph ?g { ?ri npa:inverseProperty gen:hasAdmin } } as ?isAdmin) optional { graph npa:spacesGraph { ?ri (npa:regularProperty|npa:inverseProperty) ?roleProp } } bind(exists { graph npa:spacesGraph { ?rd a npa:RoleDeclaration ; npa:hasRoleType gen:MaintainerRole ; (gen:hasRegularProperty|gen:hasInverseProperty) ?roleProp } } as ?isMaintainer) bind(exists { graph npa:spacesGraph { ?rd a npa:RoleDeclaration ; npa:hasRoleType gen:MemberRole ; (gen:hasRegularProperty|gen:hasInverseProperty) ?roleProp } } as ?isMember) bind(if(?isAdmin||?isMaintainer||?isMember,1,0) as ?higher0) optional { graph npa:spacesGraph { ?rd2 a npa:RoleDeclaration ; (gen:hasRegularProperty|gen:hasInverseProperty) ?roleProp ; npa:viaNanopub ?roleNp ; npa:role ?role . } graph npa:graph { ?roleNp np:hasAssertion ?role_a . } optional { graph ?role_a { ?role rdfs:label ?rlA } } optional { graph ?role_a { ?role dct:title ?rlB } } bind(coalesce(?rlA,?rlB) as ?rl) } bind(coalesce(?rl,"role") as ?roleLabel0) } group by ?member ?grantNp } } group by ?member having (max(?higher) = 0) } } order by ?member

sig
has algorithm: RSA
signed by: Tobias Kuhn