All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.protege.webprotege.index.OntologyAnnotationsIndex Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.index;


import edu.stanford.protege.webprotege.inject.ProjectSingleton;
import org.semanticweb.owlapi.model.OWLAnnotation;
import org.semanticweb.owlapi.model.OWLOntologyID;

import javax.annotation.Nonnull;
import java.util.stream.Stream;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 2019-08-06
 */
@ProjectSingleton
public interface OntologyAnnotationsIndex extends Index {

    /**
     * Gets the ontology annotations for the specified ontology Id
     * @param ontologyID The ontology Id
     * @return A stream of annotations that are annotations on the ontology id.  If the ontology Id
     * is not recognized then an empty stream is returned.
     */
    @Nonnull
    Stream getOntologyAnnotations(@Nonnull OWLOntologyID ontologyID);

    boolean containsAnnotation(@Nonnull OWLAnnotation annotation,
                               @Nonnull OWLOntologyID ontologyId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy