knowsys / knowsys/nemo

Add Hook for Filtering Atoms

Open
#568 0 comments 0 reactions 1 assignee Claimed by @aannleax View on GitHub
enhancement physical planning engine
Dominant language
Rust
Stars
289
Forks
21
PR merge metrics
No merged PRs in 30d

Description

For a student project, we need a feature to be able to filter derived facts according to some (quite involved) function.
It would be nice, if we could just pass this to the execution engine to be applied as another filter on top of the derived facts.
Basically, if `l` is the list of derived facts, we want to call `l.filter(p)` where `p : Fact -> Bool` is our predicate function that we pass to the execution engine.
That should already be all we need. I hope the description is clear enough :)

@aannleax It would help me, if you can create some stubs for functions that would be required for this. I'm not sure where the best place to inject this would be. I can then fill in the gaps if you want me to :)
Also feel free to add the appropriate labels to this issue since I'm not sure which layers would actually be affected here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.