We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nemo rule api should include a function to evaluate constant expressions:
let term = Term::parse("1 + 2"); let result = term.evaluate(); // TODO println!("{}", result) // 3
The evaluation should use the same pipeline as during reasoning to avoid mismatches.
Building on this, it should also be possible to evaluate non-ground terms by providing a grounding:
let term = Term::parse("?x + 2"); let grounding = Grounding::from(vec![(Term::parse("?x"), Term::parse("1")]); // TODO let result = term.evaluate_grounded(grouding); // TODO println!("{}", result) // 3
The text was updated successfully, but these errors were encountered:
aannleax
Successfully merging a pull request may close this issue.
Nemo rule api should include a function to evaluate constant expressions:
The evaluation should use the same pipeline as during reasoning to avoid mismatches.
Building on this, it should also be possible to evaluate non-ground terms by providing a grounding:
The text was updated successfully, but these errors were encountered: