Skip to content

FunctionGenerator: NodeValue is not recognized #20

@Aklakan

Description

@Aklakan

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:?]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions