Skip to content
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

Macros not found in Sparql Update Statements. #65

Open
Aklakan opened this issue Oct 30, 2024 · 1 comment
Open

Macros not found in Sparql Update Statements. #65

Aklakan opened this issue Oct 30, 2024 · 1 comment

Comments

@Aklakan
Copy link
Member

Aklakan commented Oct 30, 2024

Macros are detected and expanded in SPARQL queries but not in SPARQL update statements.

The issue was fixed by using StmtTransform rather than QueryTransform: cfe2c2f

We still need to add couple of tests to ensure this is now working as expected.

@Aklakan
Copy link
Member Author

Aklakan commented Dec 15, 2024

A note about what to test:

In Jena, custom function registries in the query exec context were not forwarded to the update request before apache/jena#2822
I don't think macros were affected because:

  • I think functions registered globally to the ARQ context worked before though.
  • Macro expansion is implemented as an algebraic preprocessing step using an RdfDataSource wrapper - so it happens before the conventional Jena machinery.

But in any case, the test cases to be added need to check macros that make use of custom functions in both query and update statements.

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

No branches or pull requests

1 participant