org.eaglei.lexical.lucene
Class EIModelLuceneIndexer

java.lang.Object
  extended by org.eaglei.lexical.lucene.LuceneEntityExtractionIndexer
      extended by org.eaglei.lexical.lucene.EIModelLuceneIndexer

public class EIModelLuceneIndexer
extends LuceneEntityExtractionIndexer

Extension of LuceneIndexer that populates an index using the labels of all for resource and non-resource classes in the eagle-i ontology. TODO transition to EI*


Field Summary
 
Fields inherited from class org.eaglei.lexical.lucene.LuceneEntityExtractionIndexer
LABEL, PREF_LABEL, TYPE, URI
 
Constructor Summary
EIModelLuceneIndexer(org.apache.lucene.analysis.Analyzer indexAnalyzer, org.apache.lucene.store.Directory directory, org.eaglei.model.EIOntModel eagleiOntModel, com.hp.hpl.jena.ontology.OntModel jenaOntModel)
          Creates a new ModelLuceneIndexer that indexes the eagle-i ontology as retrieved from JenaEIOntModel.
 
Method Summary
protected  void addDocuments(org.apache.lucene.index.IndexWriter iwriter)
          Adds the documents to the IndexWriter.
 
Methods inherited from class org.eaglei.lexical.lucene.LuceneEntityExtractionIndexer
getDirectory, getIndexAnalyzer, index, updateDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EIModelLuceneIndexer

public EIModelLuceneIndexer(org.apache.lucene.analysis.Analyzer indexAnalyzer,
                            org.apache.lucene.store.Directory directory,
                            org.eaglei.model.EIOntModel eagleiOntModel,
                            com.hp.hpl.jena.ontology.OntModel jenaOntModel)
Creates a new ModelLuceneIndexer that indexes the eagle-i ontology as retrieved from JenaEIOntModel.

Parameters:
indexAnalyzer - Analyzer to use for index creation.
directory - Directory for the index
Method Detail

addDocuments

protected void addDocuments(org.apache.lucene.index.IndexWriter iwriter)
                     throws java.io.IOException
Description copied from class: LuceneEntityExtractionIndexer
Adds the documents to the IndexWriter.

Specified by:
addDocuments in class LuceneEntityExtractionIndexer
Throws:
java.io.IOException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.