21 lines
821 B
SPARQL
21 lines
821 B
SPARQL
# Q9: Which publication have an author with a matching name?
|
|
#
|
|
# Call with:
|
|
# export NAME=Herbert; qlever query "$(cat queries/inm-ws-2026/q9.sparql) VALUES ?name { \"$NAME\" }"
|
|
#
|
|
|
|
PREFIX dlthings: <https://concepts.datalad.org/s/things/v2/>
|
|
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
PREFIX xyzri: <https://concepts.datalad.org/s/demo-research-information/unreleased/>
|
|
PREFIX xyzrins: <https://concepts.datalad.org/s/demo-research-information/ns/>
|
|
|
|
SELECT ?name ?title WHERE {
|
|
?s a xyzri:XYZPublication .
|
|
?s dlthings:title ?title .
|
|
?s dlthings:attributed_to ?attribution .
|
|
?attribution dlthings:roles obo:MS_1002036 .
|
|
?attribution rdf:object ?author_pid .
|
|
?author_pid a xyzri:XYZPerson .
|
|
?author_pid dlthings:family_name ?name .
|
|
}
|