. . . . "Returns the roles assigned within a given space ref (space IRI + root definition), not merged across refs. Pass the ref's root nanopub (root_np); the query resolves the ref via npa:rootNanopub and returns the RoleAssignments scoped to that ref (npa:forSpaceRef) from the current space-state graph (/repo/spaces), joined to each role's declaration (labels, regular/inverse properties, role type) from the spaces graph. Ref-scoped variant of get-space-roles (which is IRI-keyed via npa:forSpace and merges all refs of an IRI)." . . . . "Get space roles (ref-scoped)" . . "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix schema: \nprefix schemas: \nprefix gen: \n\nselect ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate ?roleType\n (group_concat(distinct ?reg; separator=\" \") as ?regularProperties)\n (group_concat(distinct ?inv; separator=\" \") as ?inverseProperties)\n ?ra_np where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . }\n values ?_root_np_multi_iri {}\n graph npa:spacesGraph { ?ref npa:rootNanopub ?_root_np_multi_iri . }\n graph ?g {\n ?ra a gen:RoleAssignment ;\n npa:forSpaceRef ?ref ;\n gen:hasRole ?role ;\n npa:viaNanopub ?ra_np .\n }\n graph npa:spacesGraph {\n ?roleDecl a npa:RoleDeclaration ;\n npa:role ?role ;\n npa:viaNanopub ?role_np .\n optional { ?roleDecl gen:hasRegularProperty ?reg }\n optional { ?roleDecl gen:hasInverseProperty ?inv }\n optional { ?roleDecl npa:hasRoleType ?roleType }\n }\n graph npa:graph { ?role_np np:hasAssertion ?role_a . }\n optional { graph ?role_a { ?role rdfs:label ?roleLabel } }\n optional { graph ?role_a { ?role dct:title ?roleTitle } }\n optional { graph ?role_a { ?role schema:name|schemas:name ?roleName } }\n optional { graph ?role_a { ?role gen:hasRoleAssignmentTemplate ?roleAssignmentTemplate } }\n} group by ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate ?roleType ?ra_np" . . "Tobias Kuhn" . "2026-09-11T08:43:41Z"^^ . . . . "RSA" . "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" . "LG4NNVsLP7+iD8QsA5AsjmhYsohFm/fY6LoQuFIKxW+KtXHS0hnqq49y9eC/H8muHH0iOCRa+vgig4GlGgCU6SixCdn8A3l6KbCAsH3pwz7vomxcmKI0I3WvyPhl1y1Ck3jVobCWAnfYIA06CEPGh5mA6hAytBZUoAL3R2L+UKk=" . . .