query-778f408f0c374e5ed32d70497489901c
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel
{
?item wdt:P31 wd:Q7889; # items that are video games
p:P577 ?releaseDateStatement. # items with a publication date.
?releaseDateStatement a wikibase:BestRank; # ... of best rank (instead of wdt:P577)
psv:P577 / wikibase:timePrecision 11 . # Precision is "day" (encoded as integer 11)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?releaseDateStatement")
a1((" "))
c8(["11^^xsd:integer"]):::literal
c10(["bd:serviceParam"]):::iri
c2(["wd:Q7889"]):::iri
c5(["wikibase:BestRank"]):::iri
c12(["en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P577"--> v2
v2 --"a"--> c5
v2 --"p:statement/value/P577"--> a1
a1 --"wikibase:timePrecision"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end