query-581b17f4339271b9e8cf0135ae3f357c
Old Swedish bath pictures from a museum(P7847)DigitaltMuseum ID Picture from (Q106774536)WikiProject Swedish Bath Waters
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 ?file ?item ?itemLabel ?image ?Digitaltmuseum
SELECT DISTINCT ?itemLabel ?image ?Digitaltmuseum
WHERE
{
{ SELECT ?item ?itemLabel ?itemDescription WHERE
{ SERVICE <https://query.wikidata.org/sparql>
{?item wdt:P6104 wd:Q106774536.
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". ?item rdfs:label ?itemLabel .}
}
}
}.
?file wdt:P180 ?item.
?file wdt:P7847 ?DigID.
BIND(URI(CONCAT("https://digitaltmuseum.org/",?DigID)) AS ?Digitaltmuseum)
?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;
v4("?DigID")
v5("?Digitaltmuseum"):::projected
v3("?file")
v7("?image"):::projected
v1("?item")
v2("?itemLabel"):::projected
v6("?url")
c5(["bd:serviceParam"]):::iri
c7(["sv,en"]):::literal
c3(["wd:Q106774536"]):::iri
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v1 --"wdt:P6104"--> c3
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v2
end
end
v3 --"wdt:P180"--> v1
v3 --"wdt:P7847"--> v4
bind0[/"concat('https://digitaltmuseum.org/',?DigID)"/]
v4 --o bind0
bind0 --as--o v5
v3 --"schema:contentUrl"--> v6
bind1[/"concat('http://commons.wikimedia.org/wiki/Special:FilePath/',http://wikiba.se/ontology#decodeUri(substring(str(?url),'53^^xsd:integer')))"/]
v6 --o bind1
bind1 --as--o v7