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

List space members
type: grlc-query
description: Lists the members of a given space together with their highest role tier (admin, maintainer, or member, in that order) and links to the role-assignment nanopubs (labelled by the specific role name). Observer-tier roles are excluded. Admin is detected via the gen:hasAdmin predicate; maintainer and member tiers are matched via the role's server-materialized npa:hasRoleType.
license: LICENSE-2.0
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 ?tier ?role_assignments_multi_iri ?role_assignments_label_multi where { { select ?member (if(min(?rank)=1,"Admin",if(min(?rank)=2,"Maintainer","Member")) as ?tier) (min(?rank) as ?rankMin) (group_concat(?grantNp; separator=" ") as ?role_assignments_multi_iri) (group_concat(?roleLabel; separator="\n") as ?role_assignments_label_multi) where { { select ?member ?grantNp (min(?rank0) as ?rank) (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,1,if(?isMaintainer,2,if(?isMember,3,0))) as ?rank0) optional { filter(!?isAdmin) 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(if(?isAdmin,"Admin",coalesce(?rl,"role")) as ?roleLabel0) } group by ?member ?grantNp } filter(?rank > 0) } group by…

sig
has algorithm: RSA
signed by: Tobias Kuhn