sub:assertion {
sub:get-related-things-for-review dct:description "This query returns related things, like datasets, software, and claims, that are linked to the given systematic review." ;
dct:license <
http://www.apache.org/licenses/LICENSE-2.0> ;
a <
https://w3id.org/kpxl/grlc/grlc-query> ;
rdfs:label "Get related things for systematic review" ;
<
https://w3id.org/kpxl/grlc/endpoint> <
https://w3id.org/np/l/nanopub-query-1.1/repo/full> ;
<
https://w3id.org/kpxl/grlc/sparql> """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix sl: <https://w3id.org/sciencelive/o/terms/>
select ?thing ?thing_label ?type ?np (\"^\" as ?np_label) where {
graph npa:graph {
?qnp npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?qnpx npx:invalidates ?qnp ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
?qnp dct:created ?date .
?qnp np:hasAssertion ?a .
}
values ?_systematicReview_multi_iri { }
graph ?a {
?_systematicReview_multi_iri sl:targetsResearchQuestion ?research_question .
}
graph npa:graph {
?np npa:hasValidSignatureForPublicKeyHash ?ppubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?ppubkey . }
?np np:hasAssertion ?pa .
}
graph ?pa {
?thing a ?type .
values ?type { <http://purl.org/petapico/o/hycl#AIDA-Sentence> <http://purl.org/dc/dcmitype/Software> <http://www.w3.org/ns/dcat#Dataset> }
?thing dct:isPartOf ?research_question .
optional { ?thing rdfs:label ?label . }
optional { ?thing dct:title ?title . }
bind(coalesce(?label, ?title) as ?thing_label)
}
}
order by ?type ?thing_label""" .
}