On 19/08/13 21:26, Brad Moran wrote:
Where exactly? As far as I see there is no '{' in the file, am I missing
one?

The only way I can create the error message you report is to chnage it and put a "{" at the start of the file.

There should not be one.

The file you sent in email works for me 9althopugh the email being corrupted, that might be luck), so it looks like NetBeansProjects/mdr-older/trunk/data.ttl is different.

Any other parse error at that point leads to a different message.

        Andy




On Mon, Aug 19, 2013 at 3:45 PM, Brad Moran <[email protected]> wrote:

*Hi,*
*tried running jena.textindexer from bash like:*

java -cp jena-2.10.2/jena-fuseki-0.2.8-SNAPSHOT/fuseki-server.jar
jena.textindexer --desc=NetBeansProjects/mdr-older/trunk/data.ttl

*But i am receiving this error:*

ERROR [line: 1, col: 1 ] Not implemented
com.hp.hpl.jena.sparql.ARQException: Failed reading assembler description:
[line: 1, col: 1 ] Not implemented
  at
com.hp.hpl.jena.sparql.core.assembler.AssemblerUtils.build(AssemblerUtils.java:87)
at
org.apache.jena.query.text.TextDatasetFactory.create(TextDatasetFactory.java:38)
  at jena.textindexer.processModulesAndArgs(textindexer.java:89)
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 jena.textindexer.main(textindexer.java:55)

*The problem seems to be with my assembler file:*
*
*
@prefix :        <http://localhost/jena_example/#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tdb:     <http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix text:    <http://jena.apache.org/text#> .
@prefix mms:     <http://rdf.cdisc.org/mms#> .
@prefix sdtms:   <http://rdf.cdisc.org/sdtm-1-2/schema#> .
@prefix sdtmigs: <http://rdf.cdisc.org/sdtmig-3-1-2/schema#> .

## Example of a TDB dataset and text index
## Initialize TDB
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .

## Initialize text query
[] ja:loadClass       "org.apache.jena.query.text.TextQuery" .
# A TextDataset is a regular dataset with a text index.
text:TextDataset      rdfs:subClassOf   ja:RDFDataset .
# Lucene index
text:TextIndexLucene  rdfs:subClassOf   text:TextIndex .

## ---------------------------------------------------------------
## This URI must be fixed - it's used to assemble the text dataset.

:text_dataset rdf:type     text:TextDataset ;
     text:dataset   <#dataset> ;
     text:index     <#indexLucene> ;
     .

# A TDB dataset used for RDF storage
<#dataset> rdf:type      tdb:DatasetTDB ;
     tdb:location "tdb" ;
     .

# Text index description
<#indexLucene> a text:TextIndexLucene ;
     text:directory <file:luceneIndexes> ;
     text:entityMap <#entMap> ;
     .

# Mapping in the index
# URI stored in field "uri"
# rdfs:label is mapped to field "text"
<#entMap> a text:EntityMap ;
     text:entityField      "uri" ;
     text:defaultField     "text" ;
     text:map (
          [ text:field "text" ; text:predicate mms:dataElementName ]
  [ text:field "text" ; text:predicate mms:dataElementDescription ]
  [ text:field "text" ; text:predicate mms:dataElementType ]
  [ text:field "text" ; text:predicate mms:dataElementLabel ]
  [ text:field "text" ; text:predicate mms:broader ]
  [ text:field "text" ; text:predicate mms:ordinal ]
  [ text:field "text" ; text:predicate sdtms:dataElementCompliance ]
  [ text:field "text" ; text:predicate sdtms:dataElementType ]
  [ text:field "text" ; text:predicate sdtms:dataElementRole ]
  [ text:field "text" ; text:predicate sdtmigs:references ]
          ) .

*Any advice on what might be going wrong?*



Reply via email to