[ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/pubinfo", "@graph": [ { "@id": "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name": [ { "@value": "Tobias Kuhn" } ] }, { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-11T09:43:59Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/embeds": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/list-space-roles" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RATgpsFAnqpWPpnC3IHEcc3RerTIP6yiYI_L5L86oXav8" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@id": "https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "OYYbekethpI//EQNuI6TmNbNZMxA4k5aNnLD53xnzjAFWc339KRtY9pHpZBAlphRgOd/H8fVx+mo40IxgcgdSld26h0TxGgv5zeFX1jJnVlZjJ73D1x/4Oi2DoDvFZKICjCVtKWd+VXHhBFGmaoVizI6oqEQakn7VNntGDhBcXo=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/Head", "@graph": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAKVM4AqrJfHX9sbqQInLQSSy0io1UZg6IovpU01M7AW8/list-space-roles", "http://purl.org/dc/terms/description": [ { "@value": "Lists the roles assigned in a given space as a table: each role (linked, labelled by its title/label), its schema:name, its tier (Admin/Maintainer/Member/Observer), and a count of how many distinct users of the space hold that role. The built-in Admin role is always included as the first row. Also returns the role-assignment template (for the assign-user action) and the source nanopublication." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "List space roles" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/spaces" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix schema: \nprefix gen: \n\nselect ?role\n (sample(?rlbl) as ?role_label)\n (sample(?rname) as ?name)\n (sample(?rtier) as ?tier)\n (count(distinct ?member) as ?users)\n (sample(?rtmpl) as ?roleAssignmentTemplate)\n (sample(?npX) as ?np)\nwhere {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . }\n values ?_space_multi_iri {}\n {\n bind( as ?role)\n bind(0 as ?sortkey)\n bind(\"Built-in admin role\" as ?rlbl)\n bind(\"admin\" as ?rname)\n bind(\"Admin\" as ?rtier)\n bind( as ?rtmpl)\n bind(gen:hasAdmin as ?prop)\n } union {\n graph ?g {\n ?ra a gen:RoleAssignment ; npa:forSpace ?_space_multi_iri ; gen:hasRole ?role ; npa:viaNanopub ?npX .\n }\n graph npa:graph { ?npX dct:created ?dateX . }\n bind(1 as ?sortkey)\n graph npa:spacesGraph {\n ?roleDecl a npa:RoleDeclaration ; npa:role ?role ; npa:viaNanopub ?role_np .\n }\n bind(exists { graph npa:spacesGraph { ?roleDecl npa:hasRoleType gen:MaintainerRole } } as ?isMaintainer)\n bind(exists { graph npa:spacesGraph { ?roleDecl npa:hasRoleType gen:MemberRole } } as ?isMember)\n bind(if(?isMaintainer,\"Maintainer\",if(?isMember,\"Member\",\"Observer\")) as ?rtier)\n graph npa:graph { ?role_np np:hasAssertion ?role_a . }\n optional { graph ?role_a { ?role rdfs:label ?rl1 } }\n optional { graph ?role_a { ?role dct:title ?rt1 } }\n optional { graph ?role_a { ?role schema:name ?rn1 } }\n optional { graph ?role_a { ?role gen:hasRoleAssignmentTemplate ?rtmpl } }\n bind(coalesce(?rl1, ?rt1, ?rn1) as ?rlbl)\n bind(?rn1 as ?rname)\n optional {\n { graph npa:spacesGraph { ?roleDecl gen:hasRegularProperty ?prop } }\n union\n { graph npa:spacesGraph { ?roleDecl gen:hasInverseProperty ?prop } }\n }\n }\n optional {\n graph ?g {\n ?ri a gen:RoleInstantiation ; npa:forSpace ?_space_multi_iri ; npa:forAgent ?member .\n }\n optional { graph ?g { ?ri (npa:regularProperty|npa:inverseProperty) ?riPropS } }\n optional { graph npa:spacesGraph { ?ri (npa:regularProperty|npa:inverseProperty) ?riPropX } }\n bind(coalesce(?riPropS, ?riPropX) as ?riProp)\n filter(bound(?prop) && ?riProp = ?prop)\n }\n}\ngroup by ?role ?sortkey\norder by ?sortkey desc(max(?dateX))" } ] } ] } ]