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

Service Enhancer breaks literals in service clause #31

Open
Aklakan opened this issue Mar 28, 2023 · 1 comment
Open

Service Enhancer breaks literals in service clause #31

Aklakan opened this issue Mar 28, 2023 · 1 comment
Assignees

Comments

@Aklakan
Copy link
Member

Aklakan commented Mar 28, 2023

This issue actually needs to be fixed at the service enhancer jena plugin - but for now I document it here:

The following example incorrectly uses <env:S> (string substitution) rather than env://S (IRI substitution).

S=https://query.wikidata.org/sparql rpt integrate 'SELECT * { SERVICE <env:S> { <http://www.wikidata.org/entity/Q54837> ?p ?o } }'

This causes a NPE in my service enhancer plugin. The plugin should not interfere and just pass on the execution request to the engine.

Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "opts" is null
	at org.apache.jena.sparql.service.enhancer.impl.ChainingServiceExecutorBulkServiceEnhancer.createExecution(ChainingServiceExecutorBulkServiceEnhancer.java:53) ~[jena-serviceenhancer-4.8.0-SNAPSHOT.jar:4.8.0-SNAPSHOT]
@Aklakan Aklakan self-assigned this Mar 28, 2023
@Aklakan
Copy link
Member Author

Aklakan commented Sep 21, 2024

The issue (and some more) are already fixed in https://github.com/Aklakan/jena/tree/se-fixes-2023-11-29 but I still need to separate the addressed issues into separate commits before opening the PR to Jena.

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