Re: [Virtuoso-users] full-text search

2010-05-25 Thread mats . gls
I decided to use CONSTRUCT to make a new predicate with the search terms, that can be inserted with SPARUL. In case anyone's interested, example for albums that can be looked up by artist and/or album name. It seems to work ok with CONSTRUCT { ?s `bif:concat(?o, "

Re: [Virtuoso-users] full-text search

2010-05-22 Thread mats . gls
So then, to make for example an index for an album that includes artist name and album name, I would need to use something along the lines of this? create procedure upd_index(in subject varchar, in _g iri_id, in _s iri_id, in _p iri_id, in _o any) { declare vtb, subject; declare text_to_index

Re: [Virtuoso-users] full-text search

2010-05-21 Thread mats . gls
Can I use it with multiple search terms then? I tried with this where leonardo is in dbpedia-owl:starring and gangs is in dbpprop:name, but it doesn't return any results. SELECT DISTINCT ?s ?p ?o ?mscore WHERE { ?s ?p ?o . ?s rdf:type dbpedia-owl:Film . FILTER( ?p in ( dbpedia-owl:starring, dbppr

Re: [Virtuoso-users] full-text search

2010-05-21 Thread Kingsley Idehen
mats@gmail.com wrote: Well then I guess it should be possible to make this kind of indexes with Virtuoso. I found what looks like a way to do it in the SQL docs[1]. I'm a bit unsure about how to apply the SQL methods described to RDF data though. 1. http://docs.openlinksw.com/virtuoso/cr

Re: [Virtuoso-users] full-text search

2010-05-21 Thread Nathan
mats@gmail.com wrote: When using bif:contains in Virtuoso, from what I've seen, you an only query a single property. In many cases it's more useful to query multiple properties, for example if you have a blog and want to do a single query that searches through both author and title and perhap

Re: [Virtuoso-users] full-text search

2010-05-21 Thread mats . gls
Well then I guess it should be possible to make this kind of indexes with Virtuoso. I found what looks like a way to do it in the SQL docs[1]. I'm a bit unsure about how to apply the SQL methods described to RDF data though. 1. http://docs.openlinksw.com/virtuoso/creatingtxtidxs.html#preprocessing

Re: [Virtuoso-users] full-text search

2010-05-21 Thread Nathan
Kingsley Idehen wrote: Nathan wrote: Kingsley Idehen wrote: mats@gmail.com wrote: Not sure if that will help do what I want. I'd like something that can be used with a search box that can be used for free-text queries to find items of a specific class. For example to look for movies it

Re: [Virtuoso-users] full-text search

2010-05-21 Thread Kingsley Idehen
Nathan wrote: Kingsley Idehen wrote: mats@gmail.com wrote: Not sure if that will help do what I want. I'd like something that can be used with a search box that can be used for free-text queries to find items of a specific class. For example to look for movies it could set to find items

Re: [Virtuoso-users] full-text search

2010-05-21 Thread Nathan
Kingsley Idehen wrote: mats@gmail.com wrote: Not sure if that will help do what I want. I'd like something that can be used with a search box that can be used for free-text queries to find items of a specific class. For example to look for movies it could set to find items of rdf:type ht

Re: [Virtuoso-users] full-text search

2010-05-21 Thread Kingsley Idehen
mats@gmail.com wrote: Not sure if that will help do what I want. I'd like something that can be used with a search box that can be used for free-text queries to find items of a specific class. For example to look for movies it could set to find items of rdf:type http://freebase.com/film/f

Re: [Virtuoso-users] full-text search

2010-05-21 Thread mats . gls
Not sure if that will help do what I want. I'd like something that can be used with a search box that can be used for free-text queries to find items of a specific class. For example to look for movies it could set to find items of rdf:type http://freebase.com/film/film, where the search terms cou

Re: [Virtuoso-users] full-text search

2010-05-20 Thread Kingsley Idehen
mats@gmail.com wrote: Okay, that could for work for some blogs. Something similar though is looking up an album. For example if I want to find "Great Eagle Flying With the Wind" by Wayra, and I type in "wayra great eagle flying with the wind" in lod.openlinksw.com

Re: [Virtuoso-users] full-text search

2010-05-20 Thread mats . gls
Okay, that could for work for some blogs. Something similar though is looking up an album. For example if I want to find "Great Eagle Flying With the Wind" by Wayra, and I type in "wayra great eagle flying with the wind" in lod.openlinksw.com, it doesn't find anything. In this case the album has d

Re: [Virtuoso-users] full-text search

2010-05-20 Thread Kingsley Idehen
Kingsley Idehen wrote: mats@gmail.com wrote: I tried some queries on the sites on those links, and it looks to me like it only compares the query to each single text field. If I for example have a blog post with the author "John Doe" and title "Hello World", and then want to find this

Re: [Virtuoso-users] full-text search

2010-05-20 Thread Kingsley Idehen
mats@gmail.com wrote: I tried some queries on the sites on those links, and it looks to me like it only compares the query to each single text field. If I for example have a blog post with the author "John Doe" and title "Hello World", and then want to find this blog post with the query "

Re: [Virtuoso-users] full-text search

2010-05-20 Thread mats . gls
I tried some queries on the sites on those links, and it looks to me like it only compares the query to each single text field. If I for example have a blog post with the author "John Doe" and title "Hello World", and then want to find this blog post with the query "john hello world". Then there i

Re: [Virtuoso-users] full-text search

2010-05-20 Thread Kingsley Idehen
mats@gmail.com wrote: When using bif:contains in Virtuoso, from what I've seen, you an only query a single property. In many cases it's more useful to query multiple properties, for example if you have a blog and want to do a single query that searches through both author and title and perh

[Virtuoso-users] full-text search

2010-05-20 Thread mats . gls
When using bif:contains in Virtuoso, from what I've seen, you an only query a single property. In many cases it's more useful to query multiple properties, for example if you have a blog and want to do a single query that searches through both author and title and perhaps even the contents of the b