query-d48950f0dff819f7cc063df6aaf9c2b4

rq turtle/ttl

Postcard publisher (company)

Use at

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 publisher (company)
#-----------------------------------------------------
PREFIX schema: <http://schema.org/>
#defaultView:Table,ImageGrid
SELECT ?item ?itemLabel ?itemDescription ?headquarterLabel ?countryLabel ?image ?logo ?article_en ?article_de 
WHERE
{
  ?item wdt:P31 wd:Q81529763 .                 # is a postcard publisher

  OPTIONAL { ?item wdt:P18  ?image. }          # image
  OPTIONAL { ?item wdt:P154 ?logo. }           # logo
  OPTIONAL { ?item wdt:P159 ?headquarter. }    # headquarter location
  OPTIONAL { ?item wdt:P17  ?country. }        # country

  OPTIONAL {                                   # article at en.wikipedia.org 
    ?article_en schema:about ?item.
    ?article_en schema:isPartOf <https://en.wikipedia.org/>.
  }
  OPTIONAL {                                   # article at de.wikipedia.org 
    ?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; v8("?article_de"):::projected v7("?article_en"):::projected v6("?country") v5("?headquarter") v3("?image"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v4("?logo"):::projected c10([https://de.wikipedia.org/]):::iri c2(["wd:Q81529763"]):::iri c9([https://en.wikipedia.org/]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> 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; v2 -."wdt:P159".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P17".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v7 -."schema:about".-> v2 v7 --"schema:isPartOf"--> c9 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v8 -."schema:about".-> v2 v8 --"schema:isPartOf"--> c10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end