From: Alexey Z. <ind...@gm...> - 2013-03-26 14:05:06
|
Hi. I have a dataset, which has backslash character in some of the Subject URIs. Whenever I try to use such URI in SPARQL Query, Virtuoso gives me this: Virtuoso 37000 Error SP030: SPARQL compiler, line 0: Invalid character in SPARQL expression at '\' Do I need to escape backslash somehow? I tried to replace it with "%5C" and "%5c" but that just gives me empty result set. Example of URI: <http://example.com/some/path/and\more> |
From: Hugh W. <hwi...@op...> - 2013-03-28 02:32:42
Attachments:
smime.p7s
|
Hi Alexey, The following param in the Virtuoso INI file controls the handling of the backslash character: SQL_NO_CHAR_C_ESCAPE=0 This options is 0 by default and can be either 1 or 0. This option controls Virtuoso's interpretation of the backslash in PL text which is normal interpreted as escaping rather than literal. as detailed at: http://docs.openlinksw.com/virtuoso/dbadm.html Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers On 26 Mar 2013, at 14:04, Alexey Zakhlestin <ind...@gm...> wrote: > Hi. > > I have a dataset, which has backslash character in some of the Subject URIs. Whenever I try to use such URI in SPARQL Query, Virtuoso gives me this: > > Virtuoso 37000 Error SP030: SPARQL compiler, line 0: Invalid character in SPARQL expression at '\' > > Do I need to escape backslash somehow? I tried to replace it with "%5C" and "%5c" but that just gives me empty result set. > > Example of URI: > > <http://example.com/some/path/and\more> > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Virtuoso-users mailing list > Vir...@li... > https://lists.sourceforge.net/lists/listinfo/virtuoso-users |