query-64998ca6528ef3a099c492e82b1c8cf7
TODO
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?country ?countryLabel ?startValue ?startPrecision ?endValue ?endPrecision ?location ?locationLabel ?edition ?timeValue ?timePrecision ?surface ?surfaceLabel WHERE {
?item wdt:P361 wd:Q23039138; wdt:P31/wdt:P279* wd:Q13219666 .
OPTIONAL { ?item wdt:P17 ?country }
OPTIONAL {
?item p:P580/psv:P580 ?startNode .
?startNode wikibase:time ?startValue; wikibase:timePrecision ?startPrecision .
}
OPTIONAL {
?item p:P582/psv:P582 ?endNode .
?endNode wikibase:timeValue ?endValue; wikibase:timePrecision ?endPrecision .
}
OPTIONAL { ?item wdt:P276 ?location }
OPTIONAL { ?item wdt:P393 ?edition }
OPTIONAL {
?item p:P585/psv:P585 ?timeNode .
?timeNode wikibase:timeValue ?timeValue; wikibase:timePrecision ?timePrecision .
}
OPTIONAL { ?item wdt:P765 ?surface }
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} ORDER BY ASC(?startValue)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country"):::projected
v10("?edition"):::projected
v6("?endNode")
v8("?endPrecision"):::projected
v7("?endValue"):::projected
v2("?item"):::projected
v9("?location"):::projected
v4("?startNode")
v5("?startPrecision"):::projected
v1("?startValue"):::projected
v14("?surface"):::projected
v11("?timeNode")
v13("?timePrecision"):::projected
v12("?timeValue"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c2(["wd:Q23039138"]):::iri
c22(["en"]):::literal
c20(["bd:serviceParam"]):::iri
c5(["wd:Q13219666"]):::iri
v2 --"p:direct/P361"--> c2
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P17".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P580".-> a2
a2 --"p:statement/value/P580"--> v4
v4 --"wikibase:time"--> v1
v4 --"wikibase:timePrecision"--> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P582".-> a3
a3 --"p:statement/value/P582"--> v6
v6 --"wikibase:timeValue"--> v7
v6 --"wikibase:timePrecision"--> v8
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P276".-> v9
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P393".-> v10
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P585".-> a4
a4 --"p:statement/value/P585"--> v11
v11 --"wikibase:timeValue"--> v12
v11 --"wikibase:timePrecision"--> v13
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P765".-> v14
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c20 --"wikibase:language"--> c22
end