query-3cb5f28cbf87372ead5586e4b67e45c6

rq turtle/ttl

Postcard publisher (person)

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

  OPTIONAL { ?item wdt:P18  ?image. }          # image
  OPTIONAL { ?item wdt:P27  ?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; v6("?article_de"):::projected v5("?article_en"):::projected v4("?country") v3("?image"):::projected v2("?item"):::projected v1("?itemLabel"):::projected c8([https://de.wikipedia.org/]):::iri c7([https://en.wikipedia.org/]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal c2(["wd:Q84473837"]):::iri v2 --"wdt:P106"--> 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:P27".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:about".-> v2 v5 --"schema:isPartOf"--> c7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v2 v6 --"schema:isPartOf"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end