Skip to content

GH 1361 Respect the filterFunctors flag during backward chaining#4022

Merged
afs merged 1 commit into
apache:mainfrom
ThomasThelen:issue_1361
Jun 27, 2026
Merged

GH 1361 Respect the filterFunctors flag during backward chaining#4022
afs merged 1 commit into
apache:mainfrom
ThomasThelen:issue_1361

Conversation

@ThomasThelen

@ThomasThelen ThomasThelen commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

GitHub issue resolved #1361

Pull request Description:

#1361 mentions a bug where the filtered function flag wasn't being respected when backward chaining. The author fortunately outlined the places in the forward chaining path where it's respected - so adding them to the backward path was fairly straight forward. This shouldn't have any weird side effects but I haven't used the reasoner with custom filters before looking into this ticket.

In terms of testing I added a unit test that checks the filter present/absent based on the new boolean flag. If you'd like this unit test to be split into two, just let me know and I'll push another commit with the changes.


  • Tests are included.
  • Documentation change and updates are provided for the Apache Jena website
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

@afs

afs commented Jun 27, 2026

Copy link
Copy Markdown
Member

Keeping the test as-is is fine. It uses the same reasoner rather than creates a new one.

@afs afs merged commit 2ae015a into apache:main Jun 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backward reasoner's graph always filter out functors

2 participants