-
Notifications
You must be signed in to change notification settings - Fork 642
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
[Bug]: a property function is not invoked while processing QueryExecution created by QueryExecutionDatasetBuilder #1381
Comments
One of the possible fix is to replace the line Not sure about side effects, but after this change there are no new fails of ARQ tests. |
I have just found that property functions have to be explicitly enabled whereas custom functions do not which is why functions work and property functions don't in the test case. Custom functions are part of SPARQL. jena/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/TransformPropertyFunction.java Line 54 in ebb8b12
The DatasetGraphWrapper case merges in ARQ.getContext which has this set. Try this with and without the
That said, the defaults are confusing and silly. It can be It took me a long time to see why even my minimal case based on your test case (thank you!) wasn't working. Sorry for all the trouble. |
GH-1381: Default to property function transform being enabled
Version
4.6.0
What happened?
For the query
where
<http://test#fun>
is a custom property function, this code works as expected:but this one does not work:
from #1374
full test is attached:
TestQueryExecution.java.txt
Which environment is running?
Relevant output and stacktrace
No response
Are you interested in making a pull request?
No response
The text was updated successfully, but these errors were encountered: