query-c572d09d99a5f7a6844e6e511c66312c
QueryAll tors with various statements:
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
?item ?itemLabel ?itemDescription ?image ?instance ?instanceLabel
?prominence ?elevation ?coord ?osgrid
?geonamesId
?partOf ?partOfLabel ?onFeature ?onFeatureLabel ?territory ?territoryLabel ?inProtectedArea ?inProtectedAreaLabel
WHERE
{
?item wdt:P31/wdt:P279* wd:Q631305; # Rock formation -> Tor
wdt:P17 wd:Q145; # In the UK
wdt:P31 ?instance;
wdt:P276 wd:Q214823. # Location Dartmoor
OPTIONAL { ?item wdt:P18 ?image }
OPTIONAL { ?item wdt:P2660 ?prominence }
OPTIONAL { ?item wdt:P2044 ?elevation }
OPTIONAL { ?item wdt:P625 ?coord }
OPTIONAL { ?item wdt:P613 ?osgrid }
OPTIONAL { ?item wdt:P1566 ?geonamesId }
OPTIONAL { ?item wdt:P361 ?partOf }
OPTIONAL { ?item wdt:P706 ?onFeature }
OPTIONAL { ?item wdt:P131 ?territory }
OPTIONAL { ?item wdt:P3018 ?inProtectedArea }
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;
v6("?coord"):::projected
v5("?elevation"):::projected
v8("?geonamesId"):::projected
v3("?image"):::projected
v12("?inProtectedArea"):::projected
v2("?instance"):::projected
v1("?item"):::projected
v10("?onFeature"):::projected
v7("?osgrid"):::projected
v9("?partOf"):::projected
v4("?prominence"):::projected
v11("?territory"):::projected
a1((" "))
c7(["wd:Q214823"]):::iri
c3(["wd:Q631305"]):::iri
c19(["bd:serviceParam"]):::iri
c21(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q145"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
v1 --"wdt:P31"--> v2
v1 --"wdt:P276"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2660".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2044".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P613".-> v7
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1566".-> v8
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P361".-> v9
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P706".-> v10
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v11
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P3018".-> v12
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c19 --"wikibase:language"--> c21
end