|
I'm building a small keyword search on a locally installed Virtuoso server containing the DBpedia dump. For example, if the user is searching for Japan, the keyword search will basically implement this query:
The problem is that this query takes too much time to run. I wonder if there's another alternative or best practice to overcome this. I thought of adding |
|
It's important to understand how such queries are run. Your query will scan through all values of Thankfully, many SPARQL engines support full-text search indirectly, Virtuoso included:
Note again that the EDIT Actually, the syntax might be:
(I don't have the necessary foo to find the official Virtuoso documentation, but various examples quote the above syntax.) that's really fast thank you , the only Questions is does bif:contains a Regex match ? and what do i do if i wanted to match it to a regex ? 1
Not quite a regex no. More like typical full-text search. More info here: 3
As Signified has already pointed out bif:* is a Virtuoso "Built In Function" from the SQL realm. Documentation for "contains()" and other SQL functions can be found at - http://docs.openlinksw.com/virtuoso/fn_contains.html |

