query-752498d0947dfafcd900c4ce0810e0f1
Query #12: Visualize inception dates and end dates for newspapers on the UNLV Wikimedia project focus list
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Timeline
SELECT ?item ?title ?placeOfPubLabel ?inceptionDate ?endDate
WHERE
{
{
?item wdt:P31 wd:Q11032 ;
rdfs:label ?title ;
wdt:P5008 wd:Q100202113 .
OPTIONAL {?item wdt:P1476 ?title } .
OPTIONAL {?item wdt:P291 ?placeOfPub } .
OPTIONAL {?item wdt:P571 ?inceptionDate } .
OPTIONAL {?item wdt:P576 ?endDate } .
FILTER (LANG(?title) ="en")
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?endDate"):::projected
v4("?inceptionDate"):::projected
v2("?item"):::projected
v3("?placeOfPub")
v1("?title"):::projected
c6(["wd:Q100202113"]):::iri
c3(["wd:Q11032"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?title = 'en'"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"rdfs:label"--> v1
v2 --"wdt:P5008"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1476".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P291".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P571".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P576".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end