query-a26f6b864254ae9407b9d8c96e83f37e
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?newspaperLabel ?newspaperDescription ?countryLabel ?publisherLabel ?site ?logo ?creationdate ?founder ?title ?popLabel ?lowLabel ?award ?article WHERE {
?newspaper wdt:P31 wd:Q1110794.
OPTIONAL { ?newspaper wdt:P495 ?country. }
OPTIONAL { ?newspaper wdt:P123 ?publisher. }
OPTIONAL { ?newspaper wdt:P856 ?site. }
OPTIONAL { ?newspaper wdt:P154 ?logo. }
OPTIONAL { ?newspaper wdt:P571 ?creationdate. }
OPTIONAL { ?newspaper wdt:P112 ?founder. }
OPTIONAL { ?newspaper wdt:P1476 ?title. }
OPTIONAL { ?newspaper wdt:P291 ?pop. } #place of publication
OPTIONAL { ?newspaper wdt:P364 ?low. } #language of original work
OPTIONAL { ?newspaper wdt:P166 ?award. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr,nl,de,it,es". }
Optional { ?article schema:about ?newspaper.
?article schema:isPartOf <https://en.wikipedia.org/>.}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v12("?article"):::projected
v11("?award"):::projected
v2("?country")
v6("?creationdate"):::projected
v7("?founder"):::projected
v5("?logo"):::projected
v10("?low")
v1("?newspaper")
v9("?pop")
v3("?publisher")
v4("?site"):::projected
v8("?title"):::projected
c2(["wd:Q1110794"]):::iri
c19([https://en.wikipedia.org/]):::iri
c14(["bd:serviceParam"]):::iri
c16(["en,fr,nl,de,it,es"]):::literal
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P495".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P123".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P154".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P571".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P112".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1476".-> v8
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P291".-> v9
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P364".-> v10
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P166".-> v11
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end
subgraph optional10["(optional)"]
style optional10 fill:#bbf,stroke-dasharray: 5 5;
v12 -."schema:about".-> v1
v12 --"schema:isPartOf"--> c19
end