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(ParserBase.java:521) at org.apache.jena.sparql.lang.ParserBase.resolvePName(ParserBase.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?

Todd Detwiler

Landon Todd Detwiler
Structural Informatics Group (SIG)
University of Washington

phone: 206-351-7721

Reply via email to