On futher investigation there is a bug where by the defined prefixes are not passed to the select query when the expression is parsed from the string. I will open the bug and submit a fix shortly.
Claude On Fri, Oct 14, 2016 at 8:42 PM, Todd Detwiler <[email protected]> wrote: > I'm having an issue with Selectbuilder which may be an issue with the > parser itself, or perhaps I've just made a mistake. I am setting a variable > in a select as follows: > > addVar("SUM(xsd:integer(?V3))", "?V3SUM") >> > > which is throwing this exception: > > Exception in thread "main" org.apache.jena.query.QueryParseException: >> Line 1, column 12: Unresolved prefixed name: xsd:integer >> at org.apache.jena.sparql.lang.ParserBase.throwParseException(P >> arserBase.java:521) >> at org.apache.jena.sparql.lang.ParserBase.resolvePName(ParserBa >> se.java:286) >> > .. > > The prefix map contains the following: > > pm:{rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#, xsd= >> http://www.w3.org/2001/XMLSchema#, sdids_data=http://surveillance >> .mcgill.ca/km/SDIDS/sdids_data.ttl#, rdfs=http://www.w3.org/2000/01 >> /rdf-schema#, cube=http://purl.org/linked-data/cube#} >> > > So, the xsd prefix is defined, but the error seems to think that > xsd:integer is all a prefix? > > Any thoughts on this problem? Is my addVar call correct? > > Thanks, > Todd Detwiler > > -- > Landon Todd Detwiler > Structural Informatics Group (SIG) > University of Washington > > phone: 206-351-7721 > > -- I like: Like Like - The likeliest place on the web <http://like-like.xenei.com> LinkedIn: http://www.linkedin.com/in/claudewarren
