
org.biojava.ontology.OntologyOps Maven / Gradle / Ivy
package org.biojava.ontology;
import java.util.Set;
/**
* This is an interface for optimizing ontology operators.
*
*
* Some ontology implementations will be able to compute some derived properties
* very quickly because of how they store their data. This is likely to out-
* perform generic implementations of algorithms using the Ontology interface
* to get the same result. Ontology instances provide an instance of
* OntologyOps, publishing optimizations of some common operations. The reasoner
* may then choose to call OntologyOps methods on the Ontology instance rather
* than using its fall-back implementations.
*
*
* @author Matthew Pocock
* @since 1.4
*/
public interface OntologyOps {
/**
* Get the set of all remote terms.
*
*
* We do not currently specify whether this set is mutable or not, and if it
* will reflect modifications to the optimised ontolgies.
*
*
* @return a Set containing all remote terms in the ontology
*/
public Set getRemoteTerms();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy