Hello, Thanks Peter.
LOL. Leo showed the insert statement to me before posting and I totally missed that. Lesson: Don't trust my judgement when I've been through 3 consecutive allnighters Regards, A On Mon, Jul 20, 2009 at 6:18 PM, Peter Ansell<p_ans...@yahoo.com> wrote: > 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 > > > ------------------------------------------------------------------------------ > 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 > -- Aldo Bucchi skype:aldo.bucchi http://www.univrz.com/ http://aldobucchi.com/ PRIVILEGED AND CONFIDENTIAL INFORMATION This message is only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If you are not the intended recipient, please do not distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail.