@prefix this: . @prefix sub: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-space-roles a ; dct:description "Returns the member roles attached to the given space(s): trust-state-validated gen:RoleAssignments from the current space-state graph of the spaces repo (/repo/spaces), joined to their RoleDeclaration for the role's regular/inverse properties (space-separated), plus the role's label/name/title and role-assignment template. Pass one or more space IRIs."; dct:license ; rdfs:label "Get space roles"; ; """prefix rdfs: prefix dct: prefix np: prefix npa: prefix schema: prefix gen: select ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate (group_concat(distinct ?reg; separator=\" \") as ?regularProperties) (group_concat(distinct ?inv; separator=\" \") as ?inverseProperties) ?ra_np where { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . } values ?_space_multi_iri {} graph ?g { ?ra a gen:RoleAssignment ; npa:forSpace ?_space_multi_iri ; gen:hasRole ?role ; npa:viaNanopub ?ra_np . } graph npa:spacesGraph { ?roleDecl a npa:RoleDeclaration ; npa:role ?role ; npa:viaNanopub ?role_np . optional { ?roleDecl gen:hasRegularProperty ?reg } optional { ?roleDecl gen:hasInverseProperty ?inv } } graph npa:graph { ?role_np np:hasAssertion ?role_a . } optional { graph ?role_a { ?role rdfs:label ?roleLabel } } optional { graph ?role_a { ?role dct:title ?roleTitle } } optional { graph ?role_a { ?role schema:name ?roleName } } optional { graph ?role_a { ?role gen:hasRoleAssignmentTemplate ?roleAssignmentTemplate } } } group by ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate ?ra_np""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-05-26T14:25:12Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-space-roles; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "fTKnYuZXXV9w6T5Xu+KzpunrY9XO6UWfKbbbzwLweP7uT1DFRaOdq1Q6k8OkAwkHe1q25rFKIvOEo8R/IyigvWWSFM9KKzsIb5++KWZYeQd4/Vt584GTzQY2ev29mhQ/Txk9oYKBZD7wiizdMbp3AHy1+BtS7Xboe8fw4lhllpU="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }