query-131489dad707959864f0da11d666f643
Propertiesinstance of (P31)academic thesis (P1026)author (P50)dissertation submitted to (P4101)full work available at URL (P953)author name string (P2093)inception (P571)
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 DISTINCT ?thesis ?thesisLabel ?author ?authorLabel ?authorname ?institutionLabel ?year ?url WHERE {
?thesis wdt:P31 wd:Q187685 # doctoral theses
OPTIONAL {
{ ?author wdt:P1026 ?thesis }
UNION
{ ?thesis wdt:P50 ?author }
}
OPTIONAL { ?thesis wdt:P4101 ?institution }
OPTIONAL { ?thesis wdt:P953 ?url }
OPTIONAL { ?thesis wdt:P2093 ?authorname }
OPTIONAL { ?thesis wdt:P571 ?date } # inception
BIND(YEAR(?date) AS ?year)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?author"):::projected
v5("?authorname"):::projected
v6("?date")
v3("?institution")
v1("?thesis"):::projected
v4("?url"):::projected
v7("?year"):::projected
c2(["wd:Q187685"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 -."wdt:P50".-> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1026"--> v1
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P4101".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P953".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2093".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v6
end
bind0[/"year-from-dateTime(?date)"/]
v6 --o bind0
bind0 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end