Hi Leo, Try surrounding the 1 with quotes to make it a valid NTriples statement... eg..
<http://www.univrz.com/units/uncefact/C81> <http://www.univrz.com/units/valueInCanonicalUnits> "1"^^<http://www.w3.org/2001/XMLSchema#float> I doubt that the compiler error could be more informative as without the quotes the input isn't valid NTriples and/or Turtle which has to be assumed by the compiler. Cheers, Peter ----- Original Message ---- > From: Leo Soto M. <leo.s...@gmail.com> > To: "virtuoso-users@lists.sourceforge.net List" > <virtuoso-users@lists.sourceforge.net> > Sent: Tuesday, 21 July, 2009 6:42:15 AM > Subject: [Virtuoso-users] SPARQL INSERT and typed literals > > Hello, > > I'm trying to insert a bunch of triples generated by a program. The > program outputs a SPARQL INSERT statement which I haven't been able to > load on virtuoso. Looks like the SPARQL preprocessor/compiler doesn't > recognizes the "^^" token for the triples being inserted. > > Here is a basic example of the query I'm issuing: > SPARQL INSERT IN GRAPH <http://www.univrz.com/units/uncefact/> { <http://www.univrz.com/units/uncefact/C81> <http://www.univrz.com/units/hasCode> "C81" . <http://www.univrz.com/units/uncefact/C81> <http://www.univrz.com/units/canonicalUnit> <http://www.univrz.com/units/uncefact/C81> . <http://www.univrz.com/units/uncefact/C81> <http://www.univrz.com/units/valueInCanonicalUnits> 1^^<http://www.w3.org/2001/XMLSchema#float> } And the error I get is: SP030: SPARQL compiler, line 4: syntax error at '^^' before '<http://www.w3..org/2001/XMLSchema#float>' > > Any idea? > -- > Leo Soto M. > http://blog.leosoto.com > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users ____________________________________________________________________________________ Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how: http://au.mobile.yahoo.com/mail