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

Define a sparqleval plugin for BGP query opt #10

Open
mwatts15 opened this issue Sep 19, 2021 · 0 comments
Open

Define a sparqleval plugin for BGP query opt #10

mwatts15 opened this issue Sep 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mwatts15
Copy link

There is a recommendation to call optimize_sparql before doing SPARQL queries which "monkey-patches" the evalBGP method in RDFLib to use a more efficient implementation for HDT. This approach has the disadvantage that it requires an additional step for the user of the module where one should not be needed: There is a setuptools "entry point" defined for RDFLib SPARQL eval called rdf.plugins.sparqleval which should allow for a similar substitution without requiring a user of HDT to add the optimize_sparql call into their program initialization. If rdflib-hdt is meant to work in environments without setuptools/pkg_resources machinery, then the optimize_sparql method can still be modified to add to the CUSTOM_EVALS dictionary rather than modify evalBGP in rdflib.plugins.sparql which has the same effect as defining the entry point.

@Callidon Callidon added the enhancement New feature or request label Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants