Use of STRDT SPARQL function causes exception

Description

When trying to use the STRDT function to bind a variable, I always get an exception. Here is a minimal example causing this problem. The same happens when I use BIND with STRDT.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT (STRDT("foo", xsd:string) AS ?var)
WHERE {}

java.lang.IllegalArgumentException: Not a valid (absolute) URI: STRDT
at org.openrdf.model.impl.URIImpl.setURIString(URIImpl.java:68)
at org.openrdf.model.impl.URIImpl.<init>(URIImpl.java:57)
at com.useekm.indexing.algebra.QueryExtractor$SearchVarVisitor.meet(QueryExtractor.java:138)
at org.openrdf.query.algebra.FunctionCall.visit(FunctionCall.java:94)
at org.openrdf.query.algebra.ExtensionElem.visitChildren(ExtensionElem.java:62)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meetNode(QueryModelVisitorBase.java:651)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meet(QueryModelVisitorBase.java:239)
at org.openrdf.query.algebra.ExtensionElem.visit(ExtensionElem.java:55)
at org.openrdf.query.algebra.Extension.visitChildren(Extension.java:98)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meetNode(QueryModelVisitorBase.java:651)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meetUnaryTupleOperator(QueryModelVisitorBase.java:679)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meet(QueryModelVisitorBase.java:233)
at org.openrdf.query.algebra.Extension.visit(Extension.java:90)
at org.openrdf.query.algebra.UnaryTupleOperator.visitChildren(UnaryTupleOperator.java:79)
at org.openrdf.query.algebra.Projection.visitChildren(Projection.java:76)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meetNode(QueryModelVisitorBase.java:651)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meetUnaryTupleOperator(QueryModelVisitorBase.java:679)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meet(QueryModelVisitorBase.java:449)
at org.openrdf.query.algebra.Projection.visit(Projection.java:68)
at org.openrdf.query.algebra.UnaryTupleOperator.visitChildren(UnaryTupleOperator.java:79)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meetNode(QueryModelVisitorBase.java:651)
at org.openrdf.query.algebra.helpers.QueryModelVisitorBase.meet(QueryModelVisitorBase.java:467)
at org.openrdf.query.algebra.QueryRoot.visit(QueryRoot.java:34)
at com.useekm.indexing.algebra.QueryExtractor.process(QueryExtractor.java:89)
at com.useekm.indexing.IndexingSailConnection.evaluate(IndexingSailConnection.java:209)
at org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:48)
at org.openrdf.http.server.repository.RepositoryController.handleRequestInternal(RepositoryController.java:171)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

Environment

None

Status

Assignee

Jeen Broekstra

Reporter

Sören Brunk

Labels

Components

Fix versions

Affects versions

Priority

Major
Configure