Open mpoffald opened 1 year ago
Here is a property path description from SPARQL which ultimately we want to support all of - so we should use similar syntax (JSON-ified): https://en.wikibooks.org/wiki/SPARQL/Property_paths
Possibly related: db #322
This still does need some spec work to see what syntax we can use that won't break anything, but that will be part of the implementation work.
Some work was done on this, but the approach needs to be rethought and this isn't high-priority enough to keep working on right now.
The fix for the parsing error itself is straightforward, just need to use expand-iri
where we were using expand
, and accommodate strings vs keywords appropriately: https://github.com/fluree/db/commit/d943ba225c4209daf25aa59d4ec049242df27229
But the bigger lift is getting the recursive queries to actually execute, and we have chosen to come back to that later.
Our
expand
fn is throwing an exception when we attempt to parse queries with recursive predicates.Exception is being thrown at this step: https://github.com/fluree/db/blob/main/src/fluree/db/query/fql/parse.cljc#L144
Stack trace: