[ { "@graph" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/pubinfo" } ] } ], "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/Head" }, { "@graph" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/get-spaces-for-agent", "@type" : [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://purl.org/dc/terms/description" : [ { "@value" : "This query returns all the spaces to which the given agent has membership relations" } ], "http://purl.org/dc/terms/license" : [ { "@id" : "http://www.apache.org/licenses/LICENSE-2.0" } ], "http://www.w3.org/2000/01/rdf-schema#label" : [ { "@value" : "Get Spaces 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 ?role (?roleName as ?role_label) (?link_np as ?source) (\"^\" as ?np_label) 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\norder by desc(?link_date)" } ] } ], "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/assertion" }, { "@graph" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/assertion", "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/provenance" }, { "@graph" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name" : [ { "@value" : "Tobias Kuhn" } ] }, { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0", "http://purl.org/dc/terms/created" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2025-12-01T15:37:25.006Z" } ], "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/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/get-spaces-for-agent" } ], "http://purl.org/nanopub/x/supersedes" : [ { "@id" : "https://w3id.org/np/RAJcwKh74cPc6rmZfaPHhFudBM13zTZ249PJ3jopG1nhA" } ], "http://purl.org/nanopub/x/wasCreatedAt" : [ { "@id" : "https://nanodash.knowledgepixels.com/" } ], "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/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/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" : "ZlvmsXokjpGoADXbcBoFwgZ/Eva1AW14WdBxko10pEigFlq+EkPUI8wFrTXOx7cAGndyvSPei1Uuqrnb1JAQYAX2n5KuLyh7Bw9W85FcooP4On4YA66YPYOde2PjVxe74F84frzUX1ZOrEpTurkG3pggOS3gOjKcLMt25OF7YFI=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0" } ], "http://purl.org/nanopub/x/signedBy" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "https://w3id.org/np/RAdJcacrJRYmj0imWG6tf8nYUl8snLACZ7ACW493mHSg0/pubinfo" } ]