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

FunctionGenerator: NodeValue is not recognized #20

Open
Aklakan opened this issue Aug 15, 2024 · 0 comments
Open

FunctionGenerator: NodeValue is not recognized #20

Aklakan opened this issue Aug 15, 2024 · 0 comments

Comments

@Aklakan
Copy link
Member

Aklakan commented Aug 15, 2024

The function binder does not yet recognize NodeValues; only Nodes are recognized. It would be useful to support both the RDF and the SPARQL level.

@IriNs("http://www.example.org/")
boolean foo(Node thisParamWorks, NodeValue thisDoesNot) {
  return true;
}

Invoking SELECT (<http://www.example.org/foo>(1, 2) AS ?x) {} fails with error

java.lang.RuntimeException: TypeMapper does not contain an entry for the java class null derived from class org.apache.jena.sparql.expr.NodeValue
	at org.aksw.jenax.arq.functionbinder.FunctionGenerator.wrap(FunctionGenerator.java:222) ~[jenax-arq-plugins-bundle-5.0.0-1-SNAPSHOT.jar:?]
	at org.aksw.jenax.arq.functionbinder.FunctionBinder.lambda$factory$0(FunctionBinder.java:173) ~[jenax-arq-plugins-bundle-5.0.0-1-SNAPSHOT.jar:?]
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