Seems it does not like the file extension. Renaming it now. Sorry for the amount of mails.
-----Original Message----- From: hueyl16 <[email protected]> To: users <[email protected]> Sent: Tue, Oct 22, 2013 11:54 pm Subject: Re: Jena Text Lucene Assembler file questions I sent it with two attachments, maybe one got removed ... So here is the assembler file. -----Original Message----- From: Chris Dollin <[email protected]> To: users <[email protected]> Sent: Tue, Oct 22, 2013 9:28 pm Subject: Re: Jena Text Lucene Assembler file questions On Tuesday, October 22, 2013 04:09:05 AM [email protected] wrote: > The error I am getting seems to be related to bad syntax. > However, I cannot spot it. Neither can we, without seeing the source. It's at the beginning of line 3, though. Perhaps you have a "<<" rather than a "<"? Chris -- "The wizard seemed quite willing when I talked to him." /Howl's Moving Castle/ Epimorphics Ltd, http://www.epimorphics.com Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT Epimorphics Ltd. is a limited company registered in England (number 7016688)
@prefix : <http://eurocat.org/test#> . @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 nci: <http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#> . ## 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 datset used for RDF storage <#dataset> rdf:type tdb:DatasetTDB ; tdb:location "C:/Development/Ontology/TDBStore" ; tdb:unionDefaultGraph false ; # Optional . # Text index description <#indexLucene> a text:TextIndexLucene ; text:directory <file:Lucene> ; ##text:directory "mem" ; 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 nci:Preferred_Name ] ) .
