public class LuceneSyntacticIndex extends Object implements Index
Constructor and Description |
---|
LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology,
org.apache.lucene.store.Directory directory,
String searchField) |
LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology,
org.apache.lucene.index.IndexReader indexReader,
String searchField) |
LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology,
String indexDirectory,
String searchField) |
Modifier and Type | Method and Description |
---|---|
Set<TextDocument> |
getAllDocuments() |
Set<AnnotatedDocument> |
getDocuments(org.semanticweb.owlapi.model.OWLEntity entity)
Returns a set of documents based on how the underlying index is processing the given
search string.
|
long |
getNumberOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity... entities)
Returns a set of documents based on how the underlying index is processing the given
search string.
|
long |
getNumberOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity entity)
Returns a set of documents based on how the underlying index is processing the given
search string.
|
long |
getTotalNumberOfDocuments()
Returns the total number of documents contained in the index.
|
public LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology, org.apache.lucene.index.IndexReader indexReader, String searchField)
public LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology, org.apache.lucene.store.Directory directory, String searchField) throws Exception
Exception
public LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology, String indexDirectory, String searchField) throws Exception
Exception
public Set<AnnotatedDocument> getDocuments(org.semanticweb.owlapi.model.OWLEntity entity)
Index
getDocuments
in interface Index
entity
- Entity specifying the documents to retrievepublic long getTotalNumberOfDocuments()
Index
getTotalNumberOfDocuments
in interface Index
public Set<TextDocument> getAllDocuments()
public long getNumberOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity entity)
Index
getNumberOfDocumentsFor
in interface Index
entity
- Entity specifying the documents to retrievepublic long getNumberOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity... entities)
Index
getNumberOfDocumentsFor
in interface Index
entities
- Entities specifying the documents to retrieve DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann