query-0bd20bbfb7ed4af046f5283ba0c6c726
(3) It doesn't work with
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 ?item ?m ?monthnameLabel
{
VALUES ?item { wd:Q42 }
?item wdt:P569 ?date
BIND(MONTH(?date) as ?m)
?monthname wdt:P2837 ?m
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;
v2("?date")
v1("?item"):::projected
v3("?m"):::projected
v4("?monthname")
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q42"])
bind00 --> bind0
v1 --"wdt:P569"--> v2
bind1[/"month-from-dateTime(?date)"/]
v2 --o bind1
bind1 --as--o v3
v4 --"wdt:P2837"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end