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
Exceptionpublic LuceneSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology, String indexDirectory, String searchField) throws Exception
Exceptionpublic Set<AnnotatedDocument> getDocuments(org.semanticweb.owlapi.model.OWLEntity entity)
IndexgetDocuments in interface Indexentity - Entity specifying the documents to retrievepublic long getTotalNumberOfDocuments()
IndexgetTotalNumberOfDocuments in interface Indexpublic Set<TextDocument> getAllDocuments()
public long getNumberOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity entity)
IndexgetNumberOfDocumentsFor in interface Indexentity - Entity specifying the documents to retrievepublic long getNumberOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity... entities)
IndexgetNumberOfDocumentsFor in interface Indexentities - Entities specifying the documents to retrieve
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann