query-60ce74eb6993635c3ea481d4ab7a272c
Dates in qualifiers showing up strangely), but in the results the dates all show up as "+0000-00-00T00:00:00Z". What am I doing wrong here? Q110044305Hi! I modified a query to get the dates of exhibitions at MoMA, which are stored as qualifiers in a location statement (see
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?exhibition ?exhibitionLabel ?statement1 ?location ?start WHERE {
?exhibition wdt:P664 wd:Q188740.
?exhibition p:P276 ?statement1.
?statement1 ps:P276 ?location.
?statement pq:P580 ?start.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?exhibition"):::projected
v3("?location"):::projected
v5("?start"):::projected
v4("?statement")
v2("?statement1"):::projected
c2(["wd:Q188740"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P664"--> c2
v1 --"p:P276"--> v2
v2 --"p:statement/P276"--> v3
v4 --"p:qualifier/P580"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end