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.)