rdfhdt / hdt-java

HDT Java library and tools.
Other
94 stars 69 forks source link

Filtering issue #193

Open ebremer opened 1 year ago

ebremer commented 1 year ago

I have an RDF graph with a large number of numeric literals. When I execute the below SPARQL query, it works, but it seems to be scanning the entire graph as opposed to using an index to grab the limited range of values. Is there a way to force it to use a OPS index to get it to complete a small filter quickly? ''' select * where { ?s ?p ?o filter(?o>478806630) filter(?o<478809593) } '''

ate47 commented 1 year ago

Even with an OPS index, the dictionary sections are sorted using the strings, not the values, so you won't have sorted numbers, example:"1000" < "2"

ebremer commented 1 year ago

Is there any way to use numerics as opposed to strings?

ate47 commented 1 year ago

Not with the current implementation