public class SolrSyntacticIndex extends Object implements Index
Constructor and Description |
---|
SolrSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology,
String solrServerURL,
String searchField) |
Modifier and Type | Method and Description |
---|---|
void |
buildIndex(Collection<org.semanticweb.owlapi.model.OWLClass> classes) |
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 |
getNumberOfDocumentsForTyped(org.semanticweb.owlapi.model.OWLClass resourceClass,
org.semanticweb.owlapi.model.OWLEntity entity) |
long |
getTotalNumberOfDocuments()
Returns the total number of documents contained in the index.
|
void |
loadCache(File file) |
static void |
main(String[] args) |
public SolrSyntacticIndex(org.semanticweb.owlapi.model.OWLOntology ontology, String solrServerURL, String searchField)
public void loadCache(File file) throws IOException
IOException
public void buildIndex(Collection<org.semanticweb.owlapi.model.OWLClass> classes)
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 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 retrievepublic long getNumberOfDocumentsForTyped(org.semanticweb.owlapi.model.OWLClass resourceClass, org.semanticweb.owlapi.model.OWLEntity entity)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann