[ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/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/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-07T13:18:34Z", "@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/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/get-space-people-institutions" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAxMwiTM5qc1HPC2O1hYUm4GZ5MnrYXr8sBK-vYvoEJlM" }, { "@id": "https://w3id.org/np/RAzoNCUS_Nl52UI2eApkIQnQB_D_edxq7CNGfgDSXpaiM" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get the people and institutions per project for a space and its sub-spaces" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "http://purl.org/np/RAcm8OurwUk15WOgBM9wySo-T3a5h6as4K8YR5MBrrxUc" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" }, { "@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/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/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": "ZSJfzedxvTgj4qiuzTsv5yYd+S4F14kqZoOMNdc2D09zusVWzdicBw+yzY5ZijDFSe/fzNW998aGXeITIeE+FqlwtJlPcnB/rBBDIHN0dPWI8WJWCDRhoQlsrO/KRr3V3n2FiPxO05gGJLqmhs5cm0zoxBSYVU9JQtsCXjnD5Gk=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/Head", "@graph": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAWtow_SBqWNLAVApAfZ3ipoC-VTPdAAFFvt2R-vL3ASg/get-space-people-institutions", "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get the people and institutions per project for a space and its sub-spaces" } ], "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: \nprefix np: \nprefix npa: \nprefix npx: \nprefix nt: \nprefix gen: \nprefix ff: \nprefix foaf: \n\nselect ?project ?project_label ?relation ?relation_label ?agent ?agent_label ?np (\"^\" as ?np_label)\nwhere {\n values ?_space_multi_iri {}\n service {\n select (group_concat(distinct ?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:hasCurrentSpaceState ?stateG . }\n values ?_space_multi_iri {}\n graph ?stateG {\n ?ri a gen:RoleInstantiation ; npa:forSpace ?_space_multi_iri ; npa:forAgent ?memberAgent ; npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?memberAgent ; npa:pubkey ?mpk .\n }\n }\n }\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?npPubkey .\n filter not exists { ?invNp npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . }\n filter not exists { ?supNp npx:supersedes ?np . }\n filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . }\n ?np np:hasAssertion ?a .\n ?np np:hasPublicationInfo ?pi .\n }\n filter(contains(?memberPubkeys, ?npPubkey))\n {\n # People: one nanopub per role instantiation.\n graph ?pi { ?np npx:hasNanopubType gen:RoleInstantiation }\n graph ?a { ?project ?relation ?agent }\n filter(?relation in (ff:has-principal-investigator, ff:has-project-leader,\n ff:has-data-steward, ff:has-participant))\n optional { graph ?pi { ?agent foaf:name|nt:hasLabelFromApi ?agentName } }\n }\n union\n {\n # Institutions: asserted in each project's own root definition.\n graph ?a {\n ?project a gen:Space .\n ?project ?relation ?agent .\n }\n filter(?relation in (ff:has-lead-institution, ff:has-partner-institution, ff:has-funder))\n optional { graph ?pi { ?agent rdfs:label|nt:hasLabelFromApi ?agentName } }\n optional { graph ?a { ?project rdfs:label ?projectLabelFromDef } }\n }\n filter(?project = ?_space_multi_iri || strstarts(str(?project), concat(str(?_space_multi_iri), \"/\")))\n optional { graph ?pi { ?project nt:hasLabelFromApi ?projectLabelFromApi } }\n bind(coalesce(?projectLabelFromApi, ?projectLabelFromDef, \"\") as ?project_label)\n bind(coalesce(?agentName, \"\") as ?agent_label)\n bind(if(?relation = ff:has-principal-investigator, 1,\n if(?relation = ff:has-project-leader, 2,\n if(?relation = ff:has-data-steward, 3,\n if(?relation = ff:has-participant, 4,\n if(?relation = ff:has-lead-institution, 5,\n if(?relation = ff:has-partner-institution, 6, 7)))))) as ?relation_order)\n bind(replace(strafter(str(?relation), \"https://w3id.org/fair/ff/terms/has-\"), \"-\", \" \") as ?relation_label)\n}\norder by ?project ?relation_order ?agent_label" } ] } ] } ]