query-00f3364a8d4ac6f36ec561d62e0aa42b
Retrieve Data for Each Researcher by Climbing the Advisor/Student Relations
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?advisor ?advisorLabel ?student ?studentLabel ?employer ?employerLabel WHERE {
wd:Q85622969 wdt:P184+ ?advisor .
?advisor wdt:P185 ?student .
OPTIONAL { ?advisor wdt:P108 ?employer }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?advisor"):::projected
v3("?employer"):::projected
v2("?student"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;"]):::literal
c1(["wd:Q85622969"]):::iri
c1 --"wdt:P184"--> v1
v1 --"wdt:P185"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P108".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end