@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-reused-datasets a grlc:grlc-query; dct:description "Returns the existing datasets a given project reused as input (via ff:reuses), with each dataset's title, custodian/publisher, and One Health domain(s), restricted to links authored by a member, maintainer, or admin of the project's space."; dct:license ; rdfs:label "Get reused datasets for project"; grlc:endpoint ; grlc:sparql """prefix rdfs: prefix dct: prefix np: prefix npa: prefix npx: prefix nt: prefix gen: prefix ff: prefix oh: select ?dataset ?dataset_label ?publisher (group_concat(distinct str(?domain); separator=\"\\n\") as ?domains_multi_iri) (group_concat(distinct ?domain_label; separator=\"\\n\") as ?domains_label_multi) ?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 { ?supNp npx:supersedes ?np . } 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 ff:reuses ?dataset . ?dataset rdfs:label ?dataset_label . optional { ?dataset dct:publisher ?publisher } optional { ?dataset oh:domain ?domain } } bind(strafter(str(?domain), \"https://w3id.org/spaces/zonmw/r/onehealth/\") as ?domain_label) } group by ?dataset ?dataset_label ?publisher ?np order by ?dataset_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-13T06:00:00Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-project-reused-datasets; rdfs:label "Get reused datasets for project"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , , , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "anoKuK6cEheur0bcn0OjiA3hqqRV4n80zRl7OyqXhJbSsVIJYqYAspH6DpXhflRh3pOT+Zo3QRnulILnv1PAH1lEiiY4Q6NcstHYGXs0mB+EFEk+xY9oJxW83QRA2rxrP09vsXglRJ/IESRhJjXk+Wmv723MryxJToKUe+OWdVY="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }