query-bb7d5fcb68e027406f94f732b0936f03
ATM this query returns 23 results, nice. I then would like to get qualifiers for this doctorate (especially P585) so I have started to write a query using ps. My current query is :
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?doctorate ?doctorateLabel
WHERE
{
VALUES (?doctorate) {(wd:Q42303748)}
?doctorate wdt:P279 wd:Q11415564.
?doctorate wdt:P17 wd:Q142.
?person p:P166 ?award.
?award ps:P166 ?doctorate .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?award")
v1("?doctorate"):::projected
v2("?person"):::projected
c8(["bd:serviceParam"]):::iri
c2(["wd:Q11415564"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q142"]):::iri
bind0[/VALUES ?doctorate/]
bind0-->v1
bind00(["wd:Q42303748"])
bind00 --> bind0
v1 --"p:direct/P279"--> c2
v1 --"p:direct/P17"--> c4
v2 --"p:P166"--> v3
v3 --"p:statement/P166"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end