[ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/get-spaces-and-roles-for-agent", "http://purl.org/dc/terms/description": [ { "@value": "This query returns all the spaces to which the given agent has membership relations, and shows the respective roles." } ], "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 Spaces and roles for agent" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \r\nprefix dct: \r\nprefix owl: \r\nprefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix gen: \r\nprefix schema: \r\n\r\nselect distinct ?space (group_concat(?role; separator=\" \") as ?roles) where {\r\n values ?_agent_multi_iri {}\r\n {\r\n {\r\n graph npa:graph {\r\n ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole .\r\n ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey .\r\n filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . }\r\n ?spaceRole_np np:hasAssertion ?spaceRole_a .\r\n }\r\n graph ?spaceRole_a {\r\n ?space gen:hasRole ?role .\r\n }\r\n } union {\r\n bind( as ?role)\r\n }\r\n }\r\n graph ?role_a {\r\n ?role a gen:SpaceMemberRole .\r\n ?role rdfs:label ?roleLabel .\r\n ?role dct:title ?roleTitle .\r\n ?role schema:name ?roleName .\r\n }\r\n graph npa:graph {\r\n ?role_np npx:embeds ?role .\r\n ?role_np np:hasAssertion ?role_a .\r\n }\r\n {\r\n {\r\n graph ?role_a {\r\n ?role gen:hasRegularProperty ?reg .\r\n }\r\n graph ?link_a {\r\n ?_agent_multi_iri ?reg ?space .\r\n }\r\n bind(?reg as ?property)\r\n bind(false as ?inverse)\r\n } union {\r\n graph ?role_a {\r\n ?role gen:hasInverseProperty ?inv .\r\n }\r\n graph ?link_a {\r\n ?space ?inv ?_agent_multi_iri .\r\n }\r\n bind(?inv as ?property)\r\n bind(true as ?inverse)\r\n }\r\n }\r\n graph npa:graph {\r\n ?link_np np:hasAssertion ?link_a .\r\n ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey .\r\n filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . }\r\n ?link_np dct:created ?link_date .\r\n }\r\n}\r\ngroup by ?space\r\norder by ?space" } ] } ] }, { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/Head", "@graph": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/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/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw", "http://purl.org/dc/terms/created": [ { "@value": "2026-02-09T12:02:37.422Z", "@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/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/get-spaces-and-roles-for-agent" } ], "http://purl.org/nanopub/x/wasCreatedAt": [ { "@id": "https://nanodash.knowledgepixels.com/" } ], "http://www.w3.org/ns/prov#wasDerivedFrom": [ { "@id": "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk" } ], "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/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ" }, { "@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/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "hKMwoq9yJ2d1KEPo48vAzjtGvM8rS7adpr85/Mi4zTkriqV5wdHedXdlzEVPy7wMh3FF2hx934qz++rYiQF1hCKPBzlOZZRCfz3nKuyd4fAW2vNyc3lGXBtJtTxtOOeIq3KcPDaVbBZugmKaGOt38V9KkRBX3j7otCKv9BnlMsg=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAe9hGizXGYMmo4XQoPcmCzZuygNw44k2n2GEHy7KyIZw" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] } ]