Commit c300f13e authored by Thibault Ehrhart's avatar Thibault Ehrhart

Fix wikidata prop filtering for numerical values

parent 385fbd54
......@@ -244,7 +244,7 @@ export class NewsService {
if (context.schemaProperties) {
context.schemaProperties.forEach(prop => {
if (prop.value.length > 0) {
schemaFilter += `?s wdt:${prop.name} ?wdt_${prop.name} . FILTER(?wdt_${prop.name} >= ${JSON.stringify(prop.value)}) `
schemaFilter += `?s wdt:${prop.name} ?wdt_${prop.name} . FILTER(?wdt_${prop.name} >= ${JSON.stringify(prop.value)}^^xsd:float) `
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment