https://w3id.org/np/RA1diGT9z7ujIfS111jK1xN6zMCPN_xdCqbC2e8bW-g9g
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RA1diGT9z7ujIfS111jK1xN6zMCPN_xdCqbC2e8bW-g9g> .
@prefix sub: <https://w3id.org/np/RA1diGT9z7ujIfS111jK1xN6zMCPN_xdCqbC2e8bW-g9g/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
sub:Head {
this: a np:Nanopublication;
np:hasAssertion sub:assertion;
np:hasProvenance sub:provenance;
np:hasPublicationInfo sub:pubinfo .
}
sub:assertion {
sub:get-evidence-items-of-kind a grlc:grlc-query;
dct:description "Returns every evidence item of one given kind reported by the ZonMw projects, one row per item, with the project it belongs to and the study that generated it. It is the drill-down behind the 'Evidence and Arguments' overview of a space: that view gives one row per evidence kind with a count of items and projects, and this one lists the items behind a single count. The kind is taken from the resource the view is shown on, so following an evidence kind from the overview opens exactly its own items. An evidence item is a resource carrying the given type that was generated by an investigation (OBI_0000066) which declares itself part of a project. Only nanopublications signed by a current admin, maintainer or member of a ZonMw space are listed, and invalidated, superseded and example nanopublications are skipped, so the item counts here agree with the counts shown in the overview. The member public keys are collected in a single federated sub-select that shares no variables with the rest of the query, so the federation runs once rather than once per result row. Scope follows the space the reader is browsing from, which Nanodash passes to a part-level view as ?_context_iri: the query lists the items of projects that are that space or are nested under it, so the view is not tied to any one programme and works wherever a display for it exists. Note that on a large space tree the federated resolution of member public keys can exceed the query timeout; it is the member filter rather than the item lookup that is expensive, so a space with many sub-spaces may need that sub-select tuned.";
dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
rdfs:label "Get the evidence and argument items of a given kind in a space";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
grlc:sparql """prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix gen: <https://w3id.org/kpxl/gen/terms/>
prefix prov: <http://www.w3.org/ns/prov#>
prefix dct: <http://purl.org/dc/terms/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?evidence ?evidence_label ?project ?project_label ?study ?study_label ?np (\"^\" as ?np_label)
where {
values ?_evidence_type_multi_iri {}
{
select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {
service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> {
select ?mpk where {
graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . }
graph ?stateG {
?ri a gen:RoleInstantiation ; npa:forSpace ?sp ; 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 .
}
filter(strstarts(str(?sp), str(?_context_iri)))
}
}
}
}
graph npa:graph {
?np np:hasAssertion ?a ; npa:hasValidSignatureForPublicKeyHash ?evPk .
filter not exists { ?evInv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?evPk }
filter not exists { ?evSup npx:supersedes ?np }
filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub }
}
filter(contains(?memberPubkeys, ?evPk))
graph ?a { ?evidence a ?_evidence_type_multi_iri ; prov:wasGeneratedBy ?study . }
optional { graph ?a { ?evidence rdfs:label ?evLabel } }
graph npa:graph {
?studyNp np:hasAssertion ?studyA ; npa:hasValidSignatureForPublicKeyHash ?stPk .
filter not exists { ?stInv npx:invalidates ?studyNp ; npa:hasValidSignatureForPublicKeyHash ?stPk }
filter not exists { ?stSup npx:supersedes ?studyNp }
}
filter(contains(?memberPubkeys, ?stPk))
graph ?studyA { ?study dct:isPartOf ?project . }
filter(?project = ?_context_iri || strstarts(str(?project), concat(str(?_context_iri), \"/\")))
optional { graph ?studyA { ?study rdfs:label ?stLabel } }
bind(coalesce(?evLabel, \"\") as ?evidence_label)
bind(coalesce(?stLabel, \"\") as ?study_label)
bind(replace(str(?project), \"^.*/\", \"\") as ?project_label)
}
order by ?project_label ?evidence_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-09-08T12:13:50Z"^^xsd:dateTime;
dct:creator orcid:0000-0002-1267-0234;
dct:license <https://creativecommons.org/licenses/by/4.0/>;
npx:embeds sub:get-evidence-items-of-kind;
npx:supersedes <https://w3id.org/np/RAH013qvkokfCL8wbhevFdpcaC0oYY4UvuLIczfaQD6cU>;
rdfs:label "Get the evidence and argument items of a given kind in a space";
prov:wasDerivedFrom <https://w3id.org/np/RA3Bibj-SEbTRHYyqv60HmhPJspHO8AI9hUWtXBKIBtSY>;
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
<https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
npx:hasSignature "ZeXMdI/VPyQnpYLG823RE63hQhUbiWqbKdm7mK3dema5UATse8QLIVkZBjq1K1MmM7+REI24kqK5kGkNWHxir5fSGGN1b9A0pBRdXtucMX31Az0P+AC1IXPvNib0KjBAhnfA9UbCIJ4QJORY0LQoBPbIqv1Nnl8SjynMvtsjUgk=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}