List space roles
type: grlc-query
description: Lists the roles assigned in a given space as a table: each role (linked, labelled by its schema:name, falling back to its label/title), its tier (Admin/Maintainer/Member/Observer), a count of how many distinct users of the space hold that role, the contributing preset (via_preset, for roles carried by a preset assignment - resolved from the validated role-attachment's npa:derivedFromPreset marker), who added it, and the date. The built-in Admin role is always included as the first row. Also returns the role-assignment template (for the assign-user action), the source nanopublication, and detachRole (the role IRI again, empty on the built-in admin row; feeds the detach-role action, which does not apply to the built-in admin role).
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 npx: <http://purl.org/nanopub/x/> prefix schema: <http://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?role (sample(?rlbl) as ?role_label) (sample(?rtier) as ?tier) (count(distinct ?member) as ?users) (sample(?presetX) as ?via_preset) (sample(?presetXlbl) as ?via_preset_label) (sample(?userX) as ?added_by) (max(?dateX) as ?date_added) (sample(?rtmpl) as ?roleAssignmentTemplate) (sample(?npX) as ?np) (sample(?detachRoleX) as ?detachRole) where { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . } values ?_space_multi_iri {} { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) bind(0 as ?sortkey) bind("admin" as ?rlbl) bind("Admin" as ?rtier) bind(<https://w3id.org/np/RAsOQ7k3GNnuUqZuLm57PWwWopQJR_4onnCpNR457CZg8> as ?rtmpl) bind(gen:hasAdmin as ?prop) } union { graph ?g { ?ra a gen:RoleAssignment ; npa:forSpace ?_space_multi_iri ; gen:hasRole ?role ; npa:viaNanopub ?npX . } graph npa:graph { ?npX dct:created ?dateX . } optional { graph npa:graph { ?npX npx:signedBy ?userX . } } bind(1 as ?sortkey) bind(?role as ?detachRoleX) optional { graph ?g { ?ra npa:derivedFromPreset ?assignNp . } graph npa:spacesGraph { ?paRow a npa:PresetAssignment ; npa:viaNanopub ?assignNp ; npa:ofPreset ?presetX . } optional { graph npa:graph { ?presetNp npx:embeds ?presetX ; np:hasAssertion ?paX . } graph ?paX { ?presetX rdfs:label ?presetXlbl . } } } graph npa:spacesGraph { ?roleDecl a npa:RoleDeclaration ; npa:role ?role ; npa:viaNanopub ?role_np . } bind(exists { graph npa:spacesGraph { ?roleDecl npa:hasRoleType gen:MaintainerRole } } as ?isMaintainer) bind(exists { graph npa:spacesGraph { ?roleDecl npa:hasRoleType gen:MemberRole } } as ?isMember) bind(if(?isMaintainer,"Maintainer",if(?isMember,"Member","Observer")) as ?rtier)…

List space roles
type: Nanopublication
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
created: 2026-08-25T10:43:30Z
creator: https://orcid.org/0000-0002-1267-0234
license: https://creativecommons.org/licenses/by/4.0/
embeds: List space roles

sig
has algorithm: RSA
signed by: https://orcid.org/0000-0002-1267-0234