Hi Hugh, Have I understood right that bif:contains' query "hello and world" is equal to "'hello' and 'world'"? If yes, it looks very inconvenient. Imagine the situation when user enters a query and then my application gives it to Virtuoso Full Text Search. Of course I will give it using just one string "'hello and world'". So Full Text Search will use "and" as literal. Of course I can parse this query before sending to Virtuoso, but I don't think it's a good idea: 1. Virtuoso knows better what predicates and in what cases it understands 2. this behaviour may change from version to version, that's why it should be encapsulated into Virtuoso.
Regards, Alexander 2010/3/4 Hugh Williams <[email protected]> > Hi Alexander, > > If you can point out an such incorrect examples in the documentation then > we can fix them. > > Do we aware that "and" and "or" act as a logical operators in bif:contains > and thus do not require the extra quoting in string searches, so you can > have: > > bif:contains (?text, "hello and world") > > but not: > > bif:contains (?text, "hello world") > > which needs the additional single quoting: > > bif:contains (?text, "'hello world'") > > See the docs at the following location for more examples: > > > http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfpredicatessparqlexamples > > Best Regards > Hugh Williams > Professional Services > OpenLink Software > Web: http://www.openlinksw.com > Support: http://support.openlinksw.com > Forums: http://boards.openlinksw.com/support > Twitter: http://twitter.com/OpenLink > > On 4 Mar 2010, at 19:54, Alexander Sidorov wrote: > > Hi Hugh, > > Thank you, that helped. But there are a lot of examples at documentation > that use just double quotes... > > Regards, > Alexander > > 2010/3/4 Hugh Williams <[email protected]> > >> Hi Alexander, >> >> Try the following: >> >> SELECT * WHERE { ?s ?p ?o . ?o bif:contains "'Some non english literal'" } >> >> Note the addition of single quotes within the double quotes which is how >> Virtuoso handles phrases in bif:contains. >> >> Best Regards >> Hugh Williams >> Professional Services >> OpenLink Software >> Web: http://www.openlinksw.com >> Support: http://support.openlinksw.com >> Forums: http://boards.openlinksw.com/support >> Twitter: http://twitter.com/OpenLink >> >> On 4 Mar 2010, at 13:20, Alexander Sidorov wrote: >> >> Hello! >> >> I'm trying to find some information at lod.openlinksw.com using simple >> query: >> >> SELECT * WHERE { ?s ?p ?o . ?o bif:contains "Some non english literal" } >> >> As result I get an error telling "Invalid character in free-text search >> expression, it may not appear outside quoted string". I there any way to >> solve this problem? >> >> Regards, >> Alexander >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> >> http://p.sf.net/sfu/intel-sw-dev_______________________________________________ >> Virtuoso-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >> >> >> > >
