fluree / db

Fluree database library
https://fluree.github.io/db/
Other
337 stars 21 forks source link

Support SHACL property paths #324

Open dpetran opened 1 year ago

dpetran commented 1 year ago

https://www.w3.org/TR/shacl/#property-paths

We already support basic predicate paths, but the other paths are currently unsupported.

dpetran commented 1 year ago

Some notes:

Will require multiple queries to assemble shacl shapes.

We evaluate the "path" predicate as having a list value - order matters.

Generalized queries don't accommodate the extra information we have, so we want to use an index range and then sort manually.

aaj3f commented 1 year ago

Description

This ticket will specifically target support for PredicatePath, InversePath, and SequencePath as defined by https://www.w3.org/TR/shacl/#property-paths

Support for AlternativePath, ZeroOrMorePath, OneOrMorePath and ZeroOrOnePath have been moved to #504 with lower priority