query-76154cfb93a0e0bc18ce4e2acd9fa7bf
Picture gallery of images depicting a bathing water in this project Project European Bath Waters (Q107096245)
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid{"hide":["?image "]}
SELECT DISTINCT ?itemLabel ?image ?EIONETbathingIdentifier ?www
WHERE
{
{ SELECT ?item ?itemLabel ?itemDescription ?EIONETbathingIdentifier ?www WHERE
{ SERVICE <https://query.wikidata.org/sparql>
{?item wdt:P6104 wd:Q107096245.
OPTIONAL {?item wdt:P9616 ?EIONETbathingIdentifier}
OPTIONAL {?item wdt:P856 ?www}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv". ?item rdfs:label ?itemLabel .}
}
}
}.
?file wdt:P180 ?item.
?file schema:contentUrl ?url.
bind(iri(concat("http://commons.wikimedia.org/wiki/Special:FilePath/", wikibase:decodeUri(substr(str(?url),53)))) AS ?image)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?EIONETbathingIdentifier"):::projected
v5("?file")
v7("?image"):::projected
v1("?item")
v4("?itemLabel"):::projected
v6("?url")
v3("?www"):::projected
c7(["bd:serviceParam"]):::iri
c9(["en,sv"]):::literal
c3(["wd:Q107096245"]):::iri
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v1 --"wdt:P6104"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P9616".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v3
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c7 --"wikibase:language"--> c9
v1 --"rdfs:label"--> v4
end
end
v5 --"wdt:P180"--> v1
v5 --"schema:contentUrl"--> v6
bind0[/"concat('http://commons.wikimedia.org/wiki/Special:FilePath/',http://wikiba.se/ontology#decodeUri(substring(str(?url),'53^^xsd:integer')))"/]
v6 --o bind0
bind0 --as--o v7