query-fe0527d4c47413166f534ab516ac5fef
TODO
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#>
SELECT ?newspaper ?newspaperLabel ?newspaperDescription ?countryLabel ?publisherLabel ?siteLabel ?image ?_logo_image WHERE {
?newspaper wdt:P31 wd:Q1110794.
OPTIONAL { ?newspaper wdt:P18 ?image. }
OPTIONAL { ?newspaper wdt:P495 ?country. }
OPTIONAL { ?newspaper wdt:P123 ?publisher. }
OPTIONAL { ?newspaper wdt:P856 ?site. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
OPTIONAL { ?newspaper wdt:P154 ?_logo_image. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?_logo_image"):::projected
v3("?country")
v2("?image"):::projected
v1("?newspaper"):::projected
v4("?publisher")
v5("?site")
c8(["bd:serviceParam"]):::iri
c2(["wd:Q1110794"]):::iri
c10(["en"]):::literal
v1 --"wdt:P31"--> 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;
v1 -."wdt:P495".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P123".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P154".-> v6
end