query-55b10d789b8a7afac324f4fc6993d6be
Postcard publishers (country, logo, commons)
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#>
#-----------------------------------------------------
# Postcard publishers (organisations)
#-----------------------------------------------------
PREFIX schema: <http://schema.org/>
#defaultView:Table;ImageGrid
SELECT ?item ?itemLabel ?itemDescription ?countryLabel ?logo ?commons_cat
WHERE
{
?item wdt:P31 wd:Q81529763. # Verlag
#?item wdt:P31 wd:Q84473837. # Verleger
OPTIONAL { ?item wdt:P17 ?country. } # country
OPTIONAL { ?item wdt:P154 ?logo. } # image
OPTIONAL { ?commons_cat schema:about ?item ;
schema:isPartOf <https://commons.wikimedia.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;
v5("?commons_cat"):::projected
v3("?country")
v2("?item"):::projected
v1("?itemLabel"):::projected
v4("?logo"):::projected
c2(["wd:Q81529763"]):::iri
c9(["bd:serviceParam"]):::iri
c7([https://commons.wikimedia.org/]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal
v2 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P17".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P154".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v2
v5 --"schema:isPartOf"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end