🔗 References (max. 100)

show query show view
part subject predicate object published by date
Assertion
Assertion
Get space roles
Assertion
Assertion
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), role tier (npa:hasRoleType), plus the role's label/name/title and role-assignment template. Pass one or more space IRIs.
Assertion
Assertion
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 schema: <http://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate ?roleType (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 } optional { ?roleDecl npa:hasRoleType ?roleType } } 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 ?roleType ?ra_np
PublicationInfo