what is wrong with this insert statement, it show error : Encountered a DOT Token to terminate a Triple Pattern but there are too many Tokens to form a valid Triple Pattern
i think that is because United States consist of tow word may be, how can i solve it ?
asked 19 Feb '13, 18:24
The subject of a triple in a SPARQL pattern needs to be a valid IRI, either specified as an actual IRI reference (e.g.
The simplest way to solve the problem is to remove the double quotes, and replace the whitespace, for example with an underscore. See the section on IRI references in the official SPARQL grammar for more details on what is and is not allowed.
answered 19 Feb '13, 23:13
Jeen Broekstra ♦
Your problem as Jeen points out is that the following is not valid:
This is because the
This is exactly what the error message tells you
BTW the RdfParseException that you receive has a number of properties that will point you to where the error is so it is always worth catching this for debugging purposes.
answered 20 Feb '13, 01:24
Rob Vesse ♦