[ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/Head", "@graph": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/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/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-16T10:47:43Z", "@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/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/get-space-roles" } ] }, { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/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": "I+ZvIFa/miesMb0zycjkFYNgKA6AIpjBYQ7G4yr+O9Gpuc61iEDw5xSt2a/FcaKwI/Hd8f7z75NkgWnGr7G33wSARdT5wrCh6/9lT5VXKPkyzY4R4H2Bzb/9ZjllHFraLlt/Px+Ipm7+A2wLI51WyFQABtBXUuEYT9y88vXmPsU=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAqUWUfmEmzxpkeuXek7oEiVSnwjuzRfV8kRe7pQSpe4c/get-space-roles", "http://purl.org/dc/terms/description": [ { "@value": "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)." } ], "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": "Get space roles (ref-scoped)" } ], "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 ?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 ?roleName } }\n optional { graph ?role_a { ?role gen:hasRoleAssignmentTemplate ?roleAssignmentTemplate } }\n} group by ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate ?roleType ?ra_np" } ] } ] } ]