CQL parsing and query generation for jena-lucene #457
recalcitrantsupplant
started this conversation in
Ideas
Replies: 2 comments 15 replies
-
|
Clarification from David: this piece of work is not to convert to the Lucene query syntax but the "non-query string" way where it's a structured filter in JSON. This depends on the issue aiworkerjohns/jena#22. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I've updated the above - see strike through comment. Some MVP simplifications that could be made:
|
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The jena-lucene integration here will be updated to support a subset of CQL JSON.
The plan is then for prez to offer a mode, enabled by feature flag, to push the parts of CQL which can be passed through to Lucene, through to lucene, and continue to do CQL -> SPARQL translation on the others.
The properties that are lucene filterable (fields in lucene terminology) will be specified in the jena dataset config.ttl file. Prez should read/cache these on startup, and then use them when determining whether a filter can be pushed down. The property names would currently need to be referenced by iri
token as a blank node is used for the property shape in the jena configSee aiworkerjohns/jena#34.(As a separate small PR we should extend Fuseki to support an endpoint which returns the RDF config of a dataset, such that prez can parse it)
There are three main changes required:
NB the jena-lucene repo currently has a JSON microformat for filters/facets that is NOT CQL like, but the plan is to change it: aiworkerjohns/jena#22
The gswa branch is no longer in a state where it can be merged to main.
We will need two PRs, one to gswa branch and a second to main.
Beta Was this translation helpful? Give feedback.
All reactions