fluree / core

Fluree releases and public bug reports
0 stars 0 forks source link

Implement Inference Rules Engine on `server` #102

Open aaj3f opened 2 months ago

aaj3f commented 2 months ago

Description

Now that the db lib has APIs for returning a db enriched by datalog & owl2rl rules (and that would include the inferred facts those rules generate), we now need to enable queries from server to leverage these new rules-enrichment APIs.

The goal here should be threefold:

  1. Use rules already existing within a db (similar to how we already do w/ SHACL and Policy)
  2. Pass in rules directly w/ a query (as opposed to having those rules exist in the db already)
  3. Pass in rules graph as a ledger alias w/ a query (i.e. have a separate ledger where rules already exist, and pass the ledger alias representing that rules ledger w/ the query)

If we need to separate those goals as sub-tasks of this task, they should be done in the order stated above