[
https://issues.apache.org/jira/browse/JENA-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16340082#comment-16340082
]
Code Ferret commented on JENA-1470:
-----------------------------------
It appears that there are 2 {{text:TextDatasets}} where there needs to be one.
One of them is {{:text_dataset}} and one is apparently added by you:
{code}file:///C:/Users/jamieo/source/repos/satori_ekg2/apache-jena-fuseki-3.6.0/wiki-text-assembler.ttl#dataset{code}
It will help to see the assembler definition that you're using. The example in
the documentation is not meant to be used _as is_ without some customization to
your environment. In particular, {{tdb:location}} and {{text:directory}}
certainly should likely be changed from the values in the documentation.
> Text Index documentation provides an invalid Assembler example
> --------------------------------------------------------------
>
> Key: JENA-1470
> URL: https://issues.apache.org/jira/browse/JENA-1470
> Project: Apache Jena
> Issue Type: Documentation
> Components: Fuseki, Jena
> Affects Versions: Jena 3.7.0
> Reporter: Jamie Olson
> Priority: Minor
>
> The documentation for text indexes provides a sample Assembler definition:
> [https://jena.apache.org/documentation/query/text-query.html#text-dataset-assembler]
>
> This definition does not work:
> > ./fuseki-server --desc=./wiki-text-assembler.ttl /svc1
> [2018-01-25 14:13:38] Server INFO Dataset from assembler
> org.apache.jena.sparql.ARQException: Found two matches: var ?root ->
> http://localhost/jena_example/#text_dataset,
> file:///C:/Users/jamieo/source/repos/satori_ekg2/apache-jena-fuseki-3.6.0/wiki-text-assembler.ttl#dataset
> at
> org.apache.jena.sparql.util.QueryExecUtils.getAtMostOne(QueryExecUtils.java:355)
> at
> org.apache.jena.sparql.util.graph.GraphUtils.findRootByType(GraphUtils.java:199)
> at
> org.apache.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerUtils.java:116)
> at arq.cmdline.ModAssembler.create(ModAssembler.java:72)
> at arq.cmdline.ModDatasetAssembler.createDataset(ModDatasetAssembler.java:42)
> at
> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.processModulesAndArgs(FusekiCmd.java:285)
> at jena.cmd.CmdArgModule.process(CmdArgModule.java:52)
> at jena.cmd.CmdMain.mainMethod(CmdMain.java:92)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
> at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
> at
> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:103)
> at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:67)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)