[Mulgara-general] Full-Text search

Brian Sletten brian at bosatsu.net
Thu Mar 29 16:26:33 UTC 2007


I use full-text search all the time. I am duplicating Nuno's results  
(as in none returned) but it works for my data. I'm wondering if  
aliasing is getting in the way but none of my attempts to remove it  
have worked either. I can't look at this any more at the moment but I  
will continue to investigate and get back to you, Nuno.

On Mar 29, 2007, at 11:01 AM, Nuno Fernandes wrote:

> Hi all,
>
> I am trying to use a full-text model in order to use Lucene to  
> index and search my data model.
>
> I have followed the instructions outlined in http:// 
> docs.mulgara.org/itqloperations/fulltextmodels.html but the queries  
> always return empty!
>
> Is there anything else that I should be aware of?
>
> (Below is all information relevant: model and itql issued)
>
> Thank you,
> Nuno
>
> ----------
> Model:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rdf:RDF xmlns:test = "http://test.com/test#"
>    xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>    xmlns:xsd = "http://www.w3.org/2001/XMLSchema#">
>
> <rdf:Description rdf:nodeID="A5764">
>  <rdf:type rdf:resource="http://test.com/test#mytype"/>
>    <test:title>My title</test:title>
>    <test:desc>My description</test:desc>
>    <test:ref>ABC.03-01-2007.XYZ</test:ref>
> </rdf:Description>
>
> </rdf:RDF>
>
>
> -----
> Steps followed:
>
> # create aliases
> alias <http://test.com/test#> as test;
> alias <http://mulgara.org/mulgara#> as mulgara;
> alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdf;
> alias <http://www.w3.org/2000/01/rdf-schema#> as rdfs;
> alias <http://www.w3.org/2001/XMLSchema#> as xsd;
>
> # create a fulltext model:
> create <rmi://10.11.100.154/server1#refindex> <http://mulgara.org/ 
> mulgara#LuceneModel>;
>
> # copy data to be indexed from the data model to the full-text model:
> insert select $o <test:ref> $p
> from <rmi://10.11.100.154/server1#se1>
> where $o <test:ref> $p
> into <rmi://10.11.100.154/server1#refindex>;
>
> # select data from data model, using indexed data from full-text  
> model:
> select $s $p
> from <rmi://10.11.100.154/server1#se1>
> where $s <test:ref> $p
> and $s <test:ref> 'ABC*' in <rmi://10.11.100.154/server1#refindex>
> ;
> _______________________________________________
> Mulgara-general mailing list
> Mulgara-general at mulgara.org
> http://mulgara.org/mailman/listinfo/mulgara-general




More information about the Mulgara-general mailing list