Marvin Lugair wrote:
> First I would like to say thanks for the replies so far...
> I am trying to learn a lot of things and you all have been very helpful.
>
>
> Here is what i need to understand:
>  
> 1- bif:contains is not SPARQL or even ARQ but exclusive to openlink virtuoso?
>   
Short answer: yes.
Long answer: It invokes a Virtuoso built-in-function (that's what the 
acronym BIF stands for - historical reasons.) Note that you can call 
Virtuoso's SQL functions and stored procedures from both WHERE and 
result patterns. We use the sql: and bif: namespaces for that. See 
http://docs.openlinksw.com/virtuoso/rdfapiandsql.html chapter 15.3.5 
Calling SQL from SPARQL for an explanation.

> 2- What is the standard way of doing a text search on the RDF graphs? (I want 
> to find if all the triples where the URI property contains a certain string)
>   
Using the regex pattern.

> 3- How is bif:contains different than using regex in filter? is using filter 
> the more standard way but slower in performance for example? 
>
>   
It uses Virtuoso's full text index, which is significantly faster if you 
have a large number of literals to search from. Please see 
http://docs.openlinksw.com/virtuoso/rdfsparqlrulefulltext.html

> SELECT ?g
> WHERE
> { ?y vcard:Given ?g .
>   FILTER regex(?g, "searchString", "i") }4- is there a tutorial or some docs 
> on how I can do text search on RDF graphs so I dont have to post to the 
> mailing list if my questions are too trivial?
>
>   
I don't think we have a tutorial no regex specifically, though I'm not 
in that department. If you peruse the Virtuoso documentation, you should 
find at least some examples there. The links above do contain a wealth 
of information and examples on how to use SPARQL - also in generic context.

Cheers,

Yrjänä

-- 
Yrjana Rankka            | [EMAIL PROTECTED]
Developer, Virtuoso Team | http://www.openlinksw.com
                         | Making Technology Work For You



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to