query-69b80b29a2519924b4dea1be74954fca
Postcard collectors / deltiologist
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#>
#-----------------------------------------------------
# deltiologist / postcard collectors
#-----------------------------------------------------
PREFIX schema: <http://schema.org/>
#defaultView:Table,ImageGrid
SELECT ?item ?itemLabel ?itemDescription ?image ?article_en ?article_de
WHERE
{
?item wdt:P106 wd:Q59273465 . # subclass of postcards
OPTIONAL { ?item wdt:P18 ?image. } # image
OPTIONAL {
?article_en schema:about ?item.
?article_en schema:isPartOf <https://en.wikipedia.org/>.
}
OPTIONAL {
?article_de schema:about ?item.
?article_de schema:isPartOf <https://de.wikipedia.org/>.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de". }
}
#order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article_de"):::projected
v3("?article_en"):::projected
v2("?image"):::projected
v1("?item"):::projected
c7([https://de.wikipedia.org/]):::iri
c6([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c2(["wd:Q59273465"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal
v1 --"wdt:P106"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v1
v3 --"schema:isPartOf"--> c6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v1
v4 --"schema:isPartOf"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end