query-5d650273908a4b0f3bdb9ac6b0c09727
List view (#/list/
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (SAMPLE(?admin) AS ?admin) (SAMPLE(?adminLabel) AS ?adminLabel) (SAMPLE(?coord) AS ?coord) (SAMPLE(?image) AS ?image)
WHERE {
?item p:P1435 ?monument; wdt:P131* wd:Q699800; wdt:P131 ?admin; wdt:P625 ?coord .
OPTIONAL { ?item wdt:P18 ?image }
OPTIONAL { ?admin rdfs:label ?adminLabel . FILTER(LANG(?adminLabel) IN ("en")) }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, de" }
}
GROUP BY ?item ?itemLabel
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?admin"):::projected
v8("?adminLabel"):::projected
v8("?coord"):::projected
v8("?image"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
v4("?monument")
c11(["en, de"]):::literal
c9(["bd:serviceParam"]):::iri
c4(["wd:Q699800"]):::iri
v3 --"p:P1435"--> v4
v3 --"p:direct/P131"--> c4
v3 --"p:direct/P131"--> v8
v3 --"p:direct/P625"--> v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P18".-> v8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v8 -."rdfs:label".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind4[/"sample(?admin)"/]
v8 --o bind4
bind4 --as--o v8
bind5[/"sample(?adminLabel)"/]
v8 --o bind5
bind5 --as--o v8
bind6[/"sample(?coord)"/]
v8 --o bind6
bind6 --as--o v8
bind7[/"sample(?image)"/]
v8 --o bind7
bind7 --as--o v8