query-6fde94f63494bbd892788d90156aabff
Get all newspapers in USAI would like to collect all newspapers in USA . I have written a query to get newspapers. but its not listing out all available newspapers from wiki. QUERY - version 1:
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 ?link WHERE {
?newspaper wdt:P31 wd:Q11032 .
?newspaper wdt:P856 ?link.
?newspaper wdt:P17 wd:Q30.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
FILTER(NOT EXISTS { ?newspaper wdt:P576 ?date. })}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?date")
v3("?link"):::projected
v1("?newspaper"):::projected
c3(["wd:Q11032"]):::iri
c8(["bd:serviceParam"]):::iri
c6(["wd:Q30"]):::iri
c10(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P576"--> e0v2
e0v2("?date"):::projected
e0v1("?newspaper"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P576"--> v2
v1 --"wdt:P31"--> c3
v1 --"wdt:P856"--> v3
v1 --"wdt:P17"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end