query-651448924686a4fd2573b936a6a66193
Caves
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# All items that have p3256 set and some other optional information. Also works as a map
#defaultView:Map
SELECT ?item ?itemLabel ?Ecadastre ?coord ?image
WHERE
{
?item wdt:P3256 ?Ecadastre .
OPTIONAL { ?item wdt:P625 ?coord }
OPTIONAL { ?item wdt:P18 ?image }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
?item rdfs:label ?itemLabel .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?Ecadastre"):::projected
v3("?coord"):::projected
v4("?image"):::projected
v1("?item"):::projected
v5("?itemLabel"):::projected
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v1 --"wdt:P3256"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v5
end