Chris,
Thanks a lot, it looks like it works.
eric
On Sat, May 16, 2009 at 11:26 PM, Chris Wilper
<[email protected]>wrote:
> Hi Eric,
>
> The type of the fulltext model is actually
> http://mulgara.org/mulgara#LuceneModel
>
> Try this itql query for the full list of models:
> select $model $type from <#> where $model <rdf:type> $type
>
> You should get:
>
> "model","type"
> rmi://localhost/fedora#,http://mulgara.org/mulgara#Model
> rmi://localhost/fedora#ri,http://mulgara.org/mulgara#Model
> sys:xsd,http://mulgara.org/mulgara#XMLSchemaModel<http://mulgara.org/mulgara#Model%0Asys:xsd,http://mulgara.org/mulgara#XMLSchemaModel>
> rmi://localhost/fedora#xsd,http://mulgara.org/mulgara#XMLSchemaModel
> sys:type,http://mulgara.org/mulgara#TypeGraph
> sys:prefix,http://mulgara.org/mulgara#PrefixGraph
> sys:null,http://mulgara.org/mulgara#Null<http://mulgara.org/mulgara#XMLSchemaModel%0Asys:type,http://mulgara.org/mulgara#TypeGraph%0Asys:prefix,http://mulgara.org/mulgara#PrefixGraph%0Asys:null,http://mulgara.org/mulgara#Null>
> rmi://localhost/fedora#ri-fullText,http://mulgara.org/mulgara#LuceneModel
>
> So you should be able to run fulltext itql queries like this:
>
> select $fedoraObject $title from <#ri>
> where $fedoraObject <dc:title> $title
> and $fedoraObject <dc:title> '+Smiley'
> in <#ri-fullText>
>
> After ingesting the demo objects, the above should yield:
>
> "fedoraObject","title"
> info:fedora/demo:SmileyNightlight,Smiley Nightlight
> info:fedora/demo:SmileyStuff,Collection of Smiley Stuff
> [...etc]
>
> - Chris
>
> On Sat, May 16, 2009 at 11:27 PM, Eric Melz <[email protected]> wrote:
> > Hi-
> >
> > I am running Fedora Commons 3.2 and would like to use the text
> > indexing capability of the underlying mulgara triplestore. I have set
> > the autoTextIndex parameter in fedora.fcfg to "true" and restarted the
> > server. The comments in the .fcfg file say that a new model will be
> > created, but this doesn't seem to happen. When I ingest some objects
> > and list the models, I don't see any text models. E.g., the following
> > ITQL query (using risearch):
> >
> > select $model from <#>
> > where $model <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> > <http://mulgara.org/mulgara#Model>;
> >
> > yields
> >
> > "model"
> > rmi://localhost/fedora#
> > rmi://localhost/fedora#ri
> >
> > I would expect to see an additional model, namely:
> >
> > rmi://localhost/fedora#ri-fullText
> >
> > Am I doing something wrong? Thanks for any help.
> >
> > eric
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users