Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering issue #193

Open
ebremer opened this issue Feb 23, 2023 · 3 comments
Open

Filtering issue #193

ebremer opened this issue Feb 23, 2023 · 3 comments

Comments

@ebremer
Copy link
Contributor

ebremer commented Feb 23, 2023

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
Copy link
Contributor

ate47 commented Feb 23, 2023

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
Copy link
Contributor Author

ebremer commented Feb 23, 2023

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

@ate47
Copy link
Contributor

ate47 commented Feb 23, 2023

Not with the current implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants