On 29/08/13 15:49, Chris Dollin wrote:
Dear All

I'm trying out the text search feature of Fuseki and am obviously
missing something.

A. Download Fuseki 1.0.0-SNAPSHOT
B. Unzip
C. cd into directory
D. ./fuseki-server --desc=config-tdb-text.ttl

--desc != --conf

--desc mount one dataset at a place named on the command line.

There can be only one dataset in the file (ditto arq.sparql --desc ....).

e.g.
./fuseki-server --desc=config-tdb-text.ttl --update /ds


--conf is a configuration file. It's walked to find the datasets in the right order.

        Andy



BOOM.

15:37:13 INFO  Server               :: Dataset from assembler
com.hp.hpl.jena.sparql.ARQException: Found two matches: var ?root -> 
file:///home/chris/Fuseki/jena-fuseki-1.0.0-SNAPSHOT/config-tdb-text.ttl#text_dataset,
 file:///home/chris/Fuseki/jena-fuseki-1.0.0-SNAPSHOT/config-tdb-text.ttl#dataset
         at 
com.hp.hpl.jena.sparql.util.QueryExecUtils.getOne(QueryExecUtils.java:372)
         at 
com.hp.hpl.jena.sparql.util.graph.GraphUtils.findRootByType(GraphUtils.java:191)
         at 
com.hp.hpl.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerUtils.java:93)
         at arq.cmdline.ModAssembler.create(ModAssembler.java:68)
         at 
arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.java:43)
         at 
org.apache.jena.fuseki.FusekiCmd.processModulesAndArgs(FusekiCmd.java:272)
         at arq.cmdline.CmdArgModule.process(CmdArgModule.java:51)
         at arq.cmdline.CmdMain.mainMethod(CmdMain.java:100)
         at arq.cmdline.CmdMain.mainRun(CmdMain.java:63)
         at arq.cmdline.CmdMain.mainRun(CmdMain.java:50)
         at org.apache.jena.fuseki.FusekiCmd.main(FusekiCmd.java:140)

As far as I can see, this is becuse there are two datasets in the assembly
file and Fuseki wants a unique one. (I can't see a way of saying "use THAT
one".)

The obvious experiment of removing the non-text dataset from the assembly
produces (unsurprisingly) a different error: since the non-text dataset
(the object of the text datasets :dataset property) doesn't have a suitable
(sub)type(of ja:Model), the assembler complains.

What is it that I haven't realised I should be doing?

Chris

(java version "1.7.0_25", OpenJDK, Fedora 18, if any of that matters.)


Reply via email to