public class SemanticIndex extends HashMap<org.semanticweb.owlapi.model.OWLEntity,Set<AnnotatedDocument>> implements Index
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SemanticIndex() |
Modifier and Type | Method and Description |
---|---|
Set<AnnotatedDocument> |
getDocuments(org.semanticweb.owlapi.model.OWLEntity entity)
Returns the set of annotated documents which reference the given entity using one of its surface forms.
|
int |
getNrOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity entity)
Returns the number of documents for the given entity.
|
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.
|
void |
setTotalNrOfDocuments(int nrOfDocuments) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public SemanticIndex()
public Set<AnnotatedDocument> getDocuments(org.semanticweb.owlapi.model.OWLEntity entity)
getDocuments
in interface Index
entity
- entity to retrieve documentspublic int getNrOfDocumentsFor(org.semanticweb.owlapi.model.OWLEntity entity)
entity
- entity to return number of referencing documents forpublic void setTotalNrOfDocuments(int nrOfDocuments)
nrOfDocuments
- the nrOfDocuments to setpublic 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 retrieve DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann