@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-outputs-for-project a grlc:grlc-query; dct:description "Returns all outputs (e.g. publications) linked to the given project via frapo:hasOutput, with the output's label, its type(s) and publication date (when described by a space member), restricted to links and descriptions authored by a member, maintainer, or admin of the project's space."; dct:license ; rdfs:label "Get outputs for project"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix nt: prefix frapo: prefix gen: prefix fabio: select ?publication ?publication_label (group_concat(distinct str(?type); separator=\" \") as ?type_multi_iri) (group_concat(distinct ?typeLabel; separator=\"\\n\") as ?type_label_multi) (sample(?pubdate0) as ?pubdate) ?np (\"^\" as ?np_label) where { values ?_project_multi_iri {} 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 frapo:hasOutput ?publication . } optional { graph ?pi { ?publication nt:hasLabelFromApi ?publication_label . } } optional { graph npa:graph { ?dnp npa:hasValidSignatureForPublicKeyHash ?dpk . filter not exists { ?dnpx npx:invalidates ?dnp ; npa:hasValidSignatureForPublicKeyHash ?dpk . } filter not exists { ?dnp npx:hasNanopubType npx:ExampleNanopub . } ?dnp np:hasAssertion ?da . } filter(contains(?memberPubkeys, ?dpk)) graph ?da { ?publication a ?type . filter(strstarts(str(?type), \"http://purl.org/spar/fabio/\")) optional { ?publication dct:date ?pubdate0 } } bind(strafter(str(?type), \"http://purl.org/spar/fabio/\") as ?typeLabel) } } group by ?publication ?publication_label ?np order by desc(?pubdate)""" . } 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-06-30T14:21:04Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-outputs-for-project; npx:supersedes ; rdfs:label "Get outputs for project"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "MvqeMgVXKgPt6Ue4+b8s9aI8hhoRybC/mfinEGbCo40SeSS6Ock6A/jF0YDRY1sPaupGCzHaak65UFHOV40PKQVBv7Bq6lu0odPEPrOAVLi/k+9npb/coTfQh6VeHLF2FRmoNYsAjo3ASMpFubzXMfTEZ3E0A3rnxhn3pDKaWDI="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }