I've the following query
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?item ?itemLabel ?dod ?dob WHERE {
?item wdt:P570 ?dod.
?item wdt:P31 wd:Q5.
SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en,it,fr,de,cs,[AUTO_LANGUAGE]". }
OPTIONAL { ?item wdt:P569 ?dob. }
FILTER(?dod < (NOW()))
FILTER (?item IN (wd:Q4173012))
}
ORDER BY DESC(?modified) DESC(?dod) ?item
that in the example provided (Q4173012
) returns four multiple values because has date with incomplete data, for example "2019
" for date of death, that returns 2019-01-01. I need to filter these cases, I could do it if only get the 2019 so I can know that is an incomplete data, in order to not confuse those records that actually born or death on 01-01
There is some way to convert this query to get the specific data as is shown in wikidata or filter this behavior? Because for incomplete data in wikidata is shown good:
I hope I can be clear, my english is not so good. Thanks in advance and sorry for my english.