[ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/Head", "@graph": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/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/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-13T05:55:47Z", "@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/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/get-space-outputs" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAQ4vKz9elI2v1fGX1GMC70jZGjO66IYS5tTjhfjTgLz4" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get all project outputs for a space and its sub-spaces" } ], "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/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" }, { "@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/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/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": "QfiWoYdqJn54S61pC+qcypAmaoXQG+ouZbCsb48s66A9sP7BSszgSttyyni6P0Zu6Pcde2m/yalgFoTICE7FqLi7L40nKPEW963jZ2RIl/Est0wMP1hnhsUjMg97aFhcwo6r5S5agpaW2l6Hrs/cJ+2gHFG37oNM5BxnvefLK4I=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAJZWTg4skIvSNj1FDD0r4Jt-NFqMK85usWU8v6jjJi8o/get-space-outputs", "http://purl.org/dc/terms/description": [ { "@value": "Returns one row per project output across the projects of a space: every resource linked from a project via one of the ff:has-* output relations, the formal FAIR outputs (article, dataset, software, method, DMP, preregistration, presentation) as well as the informal / public-engagement outputs (blog post, media coverage, social post, podcast, discussion), which the two previous queries get-space-fair-outputs and get-space-informal-outputs listed separately. Each row gives the project, the kind of output (the relation name), the output with its label (from the assertion or the pubinfo of the linking nanopublication), the author where one is attributed, and the linking nanopublication. Projects are the space itself and every space whose IRI extends it with a slash, the same sub-space convention the sibling 'all projects' views use. Only links signed by a current admin, maintainer or member of a space in the subtree count, with invalidated, superseded and example nanopublications skipped; the membership lookup is a federated sub-select sharing no variables with the rest of the query, so it runs once." } ], "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 all project outputs 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 prov: \nprefix foaf: \n\nselect ?project ?project_label ?kind ?output ?output_label ?author_label ?np (\"^\" as ?np_label)\nwhere {\n values ?_space_multi_iri {}\n # Every ff:has-* output relation: formal FAIR outputs as well as informal /\n # public-engagement outputs, in one list.\n values ?outputProp { ff:has-article ff:has-dataset ff:has-software ff:has-method ff:has-dmp ff:has-preregistration ff:has-presentation\n ff:has-blog-post ff:has-media-coverage ff:has-social-post ff:has-podcast ff:has-discussion }\n # One row holding every member pubkey hash of the space and its sub-spaces; a\n # sub-select sharing no variables with the rest, so it is evaluated once.\n {\n select (group_concat(distinct ?mpk; separator=\" \") as ?memberPubkeys) where {\n service {\n select ?mpk where {\n values ?_space_multi_iri {}\n graph npa:graph { npa:hasCurrentSpaceState ?stateG . }\n graph ?stateG {\n ?ri a gen:RoleInstantiation ; npa:forSpace ?sp ; npa:forAgent ?agent ; npa:hasRoleType ?rt .\n filter(?rt in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n filter(?sp = ?_space_multi_iri || strstarts(str(?sp), concat(str(?_space_multi_iri), \"/\")))\n }\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 graph ?a { ?project ?outputProp ?output . }\n filter(?project = ?_space_multi_iri || strstarts(str(?project), concat(str(?_space_multi_iri), \"/\")))\n optional { graph ?a { ?output rdfs:label ?output_label0 } }\n optional { graph ?pi { ?output nt:hasLabelFromApi ?output_label1 } }\n optional { graph ?pi { ?project nt:hasLabelFromApi ?project_label } }\n optional {\n graph ?a { ?output prov:wasAttributedTo ?author }\n graph ?pi { ?author foaf:name ?author_label }\n }\n bind(coalesce(?output_label0, ?output_label1) as ?output_label)\n bind(replace(strafter(str(?outputProp), \"https://w3id.org/fair/ff/terms/has-\"), \"-\", \" \") as ?kind)\n}\norder by ?project_label ?kind ?output_label" } ] } ] } ]