Skip to content

GH-3253: Apply transforms to present Elements of ExprFunctionOp instances. #3254

New issue

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Aklakan
Copy link
Contributor

@Aklakan Aklakan commented Jun 15, 2025

GitHub issue resolved #3253.
Pull request Description: Transforms now also affect Elements of ExprFunctionOp instances.


  • Tests are included.
  • 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.


@Override
public int numArgs() { return 0; }

@Override
public Expr copySubstitute(Binding binding) {
Op op2 = Substitute.substitute(getGraphPattern(), binding) ;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could copySubstitute in principle delegate to applyNodeTransform with a NodeTransform based on the binding? Or are there subtle semantic difference?

Comment on lines +150 to +153
boolean workToDo = vars.stream().anyMatch(v-> {
Node n = nodeTransform.apply(v);
return n != null && !v.equals(n);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This intent of this change is to remove the need for the explicit Map next to the NodeTransform.

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.

ExprFunctionOp: Inconsistent Element and Op after transforms
1 participant