Hello Kunal,

The syntax of free-text queries is described in details in
http://docs.openlinksw.com/virtuoso/queryingftcols.html#textexprsyntax

Free-text is capable of looking weaker that an exact phrase but has no way to 
get more strict filtering. So you may start with bif:contains and additionally 
provide "like" operator in the filter. In this case free-text may work fist and 
provide a list of "more or less appropriate" hits and the filter will deal with 
short "appropriate list", not with everything.

Best Regards,

Ivan Mikhailov
OpenLink Software

----- Original Message ----- 
  From: Kunal Patel 
  To: Hugh Williams 
  Cc: virtuoso-de...@lists.sourceforge.net ; virtuoso-users 
  Sent: Friday, April 25, 2008 8:25 AM
  Subject: Re: [Virtuoso-devel] bif:contains


  Thanks Hugh,

    The quotes work.  Also is there a way to do exact matches with 
bif:contains, for example a query to get all the people whose name is exactly 
"jack jill".

  Kunal

  Hugh Williams <hwilli...@openlinksw.com> wrote:
    Hi Kunal,


    The following query should work:



    select *
     from <people>
    where {?s foaf:Name ?name . ?name bif:contains "'jack jill'" .}


    Note the addition of single quotes within the double quotes which is how we 
handle phrases in bif:contains.


    Best Regards
    Hugh Wiilliams
    Professional Services
    OpenLink Software




    On 24 Apr 2008, at 21:41, Kunal Patel wrote:


      Hi,

        How can I use bif:contains predicate for a string value with multiple 
words.  For example when I run the following query it works fine,

      select *
        from <people>
       where {?s foaf:Name ?name . ?name bif:contains "jack" .}

      But trying to run the query below doesn't work.

      select *
        from <people>
       where {?s foaf:Name ?name . ?name bif:contains "jack jill" .}

      Kunal



--------------------------------------------------------------------------
      Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it 
now.
      -------------------------------------------------------------------------
      This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
      Don't miss this year's exciting event. There's still time to save $100. 
      Use priority code J8TL2D2. 
      
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
      Virtuoso-devel mailing list
      virtuoso-de...@lists.sourceforge.net
      https://lists.sourceforge.net/lists/listinfo/virtuoso-devel






------------------------------------------------------------------------------
  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


------------------------------------------------------------------------------


  -------------------------------------------------------------------------
  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
  Don't miss this year's exciting event. There's still time to save $100. 
  Use priority code J8TL2D2. 
  http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone


------------------------------------------------------------------------------


  _______________________________________________
  Virtuoso-devel mailing list
  virtuoso-de...@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/virtuoso-devel

Reply via email to