Ivan,

I've already tried with quotes but, for instance, for query:

select ?r
where
{
   ?r rdfs:label ?l.
   filter(bif:contains(?l, '"Paris Hilt*"'))
}

I get the following error:

Virtuoso 22023 Error FT370: Wildcard word needs at least 4 leading characters


Roberto García
http://rhizomik.net/~roberto



2012/3/7 Ivan Mikhailov <[email protected]>:
> Roberto,
>
> You can search for an exact phrase if you put it into quotes, or you can
> require some weaker proximity between terms by using NEAR operator, like
> Paris NEAR Hil*
>
> Best Regards,
>
> Ivan Mikhailov
> OpenLink Software
> http://virtuoso.openlinksw.com
>
> On Wed, 2012-03-07 at 11:26 +0100, Roberto García wrote:
>> Dear all,
>>
>> I'm aware of the fact that bif:contains and REGEX produce different
>> results, as explained in
>> http://wikis.openlinksw.com/dataspace/owiki/wiki/VirtuosoWikiWeb/BifContainsAndREGEXSearchesProduceDifferentResults
>>
>> However, we are implementing autocomplete at the UI and we would need
>> bif:contains to behave like REGEX in the "Paris Hil*" case. Is there
>> any syntax trick for bif:contains that makes is consider space
>> separated words as a sentence and not as independent words to match?
>>
>> Best,
>>
>>
>> Roberto García
>> http://rhizomik.net/~roberto
>
>

Reply via email to