@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-project-fair-outputs a grlc:grlc-query; dct:description "Returns all FAIR outputs linked to the given project via the FAIR-findings (ff) output relations (has-article, has-dataset, has-software, has-method, has-dmp, has-preregistration), with the output's title and the kind of output derived from the relation, restricted to links authored by a member, maintainer, or admin of the project's space."; dct:license ; rdfs:label "Get FAIR outputs for project"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix np: prefix npa: prefix npx: prefix nt: prefix gen: prefix ff: select ?output ?output_label ?kind ?np (\"^\" as ?np_label) where { values ?_project_multi_iri {} values ?outputProp { ff:has-article ff:has-dataset ff:has-software ff:has-method ff:has-dmp ff:has-preregistration } service { select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where { graph npa:graph { npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?npPubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . } filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np np:hasAssertion ?a . ?np np:hasPublicationInfo ?pi . } filter(contains(?memberPubkeys, ?npPubkey)) graph ?a { ?_project_multi_iri ?outputProp ?output . } optional { graph ?a { ?output rdfs:label ?output_label0 } } optional { graph ?pi { ?output nt:hasLabelFromApi ?output_label1 } } bind(coalesce(?output_label0, ?output_label1) as ?output_label) bind(strafter(str(?outputProp), \"https://w3id.org/fair/ff/terms/has-\") as ?kind) } order by ?kind ?output_label""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-07-03T11:07:10Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-project-fair-outputs; rdfs:label "Get FAIR outputs for project"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "CAKEP7T7ERzoXFOSvL3DmwPmFALvOI/i+TgN1PY/aX4zWJ4Nj7CzMkuT/mZK0IxDCFOOD8btSFCYx98ydHwltGysQAgV2MQJTOEtt7tpJw+1atJ3ofi+exs/LjKCats4BQ5+VJ9Ovel27rvDOFXstdWbdkVFOYeYJdcA9gBbXyg="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }