query-5fa6d1ca6158565d955532c33f843652
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?PersonneLabel ?DateMort ?MoisMort
WHERE {
?Personne wdt:P31 wd:Q5.
?Personne wdt:P27 wd:Q39.
?Personne wdt:P106 wd:Q33999.
?Personne wdt:P570 ?DateMort.
BIND(MONTH(?DateMort) AS ?MoisMort) ## need to define ?MoisMort inside query, if we want to use it inside query
FILTER(str(?MoisMort) = "12"). ## have to do a string conversion, if we want to compare it to a string
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?DateMort"):::projected
v4("?MoisMort"):::projected
v2("?Personne")
c5(["wd:Q39"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c12(["fr,en"]):::literal
c7(["wd:Q33999"]):::iri
f0[["str(?MoisMort) = '12'"]]
f0 --> v4
v2 --"wdt:P31"--> c3
v2 --"wdt:P27"--> c5
v2 --"wdt:P106"--> c7
v2 --"wdt:P570"--> v3
bind1[/"month-from-dateTime(?DateMort)"/]
v3 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end