001/**
002 * 
003 */
004package org.dllearner.algorithms.isle.index;
005
006import java.io.Serializable;
007import java.util.Set;
008
009import org.semanticweb.owlapi.model.OWLEntity;
010
011/**
012 * @author Lorenz Buehmann
013 *
014 */
015public interface AnnotatedDocument extends Document, Serializable{
016        
017        /**
018         * Returns a set of entities which are contained in the document.
019         * @return
020         */
021        Set<OWLEntity> getContainedEntities();
022        
023        /**
024         * Returns all annotations of the document.
025         * @return
026         */
027        Set<SemanticAnnotation> getAnnotations();
028        
029    /**
030     * Returns the number of occurrences of the given entity in this document.
031     *
032     * @param entity the entity to get frequency for
033     * @return number of occurrences of given entity in this document
034     */
035    int getEntityFrequency(OWLEntity entity);
036}