Dear friends,

I have some labels with different characters like "\", "/", "&", "*", "+",
"-", etc. I index them in the virtuoso's free text search.

How to find them without breaking the function ? I would like to know if
there is an official documentation for bif-contains somewhere, I tried to
find it but was unsuccessful.

Some examples:

   ?label bif:contains "'bruno/*'" . # does not work

?label bif:contains "'bruno/test*'" . # this works fine


Virtuoso Version: 06.01.3127


We also have, in production, the commercial version.


A complete example:


   define input:default-graph-uri
<http://example.com/<http://semantica.globo.com/>
>

define input:inference
<http://example.com/ruleset<http://semantica.globo.com/ruleset>
>


            select distinct ?s ?label

             FROM <http://example.com/ <http://semantica.globo.com/>>


                {

                    ?s a
<http://example.com/base/<http://semantica.globo.com/base/Criatura>
Person> ; ?p ?o .

                    ?o bif:contains "'Renan/Moreira-'" .

                    ?s rdfs:label ?label .

                }



            ORDER BY (?label)

            LIMIT 9


Answer:


   s      label

http://example.com/46313dbc-12d4-4f69-8862-f454a84e4372<http://semantica.globo.com/46313dbc-12d4-4f69-8862-f454a84e4372>
   Renan Moreira de Oliveira

http://example.com/e817e420-4434-4029-9f66-61356308963a<http://semantica.globo.com/e817e420-4434-4029-9f66-61356308963a>
   Renan/Moreira-de/Oliveira\RMO



If I change the ?o bif:contains "'Renan/Moreira-'" . to ?o bif:contains
"'Renan/Moreira-*'" . it breaks:


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


Best regards,
Bruno

Reply via email to