This query lists the roles assigned in a given space, with a human-readable label, the date, and the source nanopublication.
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 distinct ?role (coalesce(?roleTitle, ?roleLabel, ?roleName) as ?role_label) ?date ?np ("^" as ?np_label) 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 ?np . } graph npa:graph { ?np dct:created ?date . } graph npa:spacesGraph { ?roleDecl a npa:RoleDeclaration ; npa:role ?role ; npa:viaNanopub ?role_np . } 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 } } } order by desc(?date)