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

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

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


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

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

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

    /**
     * Gets the axiomsSource that reference one or more of the specified entities.  This includes logical and non-logical
     * axiomsSource that have any of the entities in their signature.  This also includes annotation axiomsSource that
     * reference one or more IRIs equal to IRIs of the entities in the specified set.
     * @param entities The entities.
     * @param ontologyId The ontology Id
     */
    @Nonnull
    Stream getReferencingAxioms(@Nonnull Collection entities,
                                          @Nonnull OWLOntologyID ontologyId);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy