[ { "@graph" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk", "@type" : [ "http://www.nanopub.org/nschema#Nanopublication" ], "http://www.nanopub.org/nschema#hasAssertion" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/pubinfo" } ] } ], "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/Head" }, { "@graph" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/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) 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/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/assertion" }, { "@graph" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/assertion", "http://www.w3.org/ns/prov#wasAttributedTo" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/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/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk", "http://purl.org/dc/terms/created" : [ { "@type" : "http://www.w3.org/2001/XMLSchema#dateTime", "@value" : "2025-12-01T15:50:53.288Z" } ], "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/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/get-spaces-for-agent" } ], "http://purl.org/nanopub/x/supersedes" : [ { "@id" : "https://w3id.org/np/RASoio7MOE1nkGvR3MfwH-1E2NbQP-kbp9mOgHiiHy5MM" } ], "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/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/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" : "df7ycdgJTCZ4Sq4p6mzVoVCM/JJ68JwdmPw4Q7S3WTYpGe8l9rJHhDe7RmhtB2Q+Y8r5WQufY2aa4nJ0f7FoWfHN81pInf/qvt1X5vbEXv6V4+Ih0k61B304+cDw7i3GnkxMOdDgHaSnKbm7lbn/c+gP+n1FQUoCjkbxRaC3DHc=" } ], "http://purl.org/nanopub/x/hasSignatureTarget" : [ { "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk" } ], "http://purl.org/nanopub/x/signedBy" : [ { "@id" : "https://orcid.org/0000-0002-1267-0234" } ] } ], "@id" : "https://w3id.org/np/RA7TdwzOE7A-tjf09Wg6-iI1K9UDbqOWCaR5zkNfUlrQk/pubinfo" } ]