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

org.biopax.psidev.ontology_manager.OntologyManager Maven / Gradle / Ivy

Go to download

OBO ontology access and handling (derived from EBI PSIDEV Ontology Manager and OLS)

There is a newer version: 6.0.0
Show newest version
package org.biopax.psidev.ontology_manager;

/*
 *
 */

import java.util.Properties;
import java.util.Set;

import org.biopax.psidev.ontology_manager.impl.OntologyLoaderException;


public interface OntologyManager {

	void putOntology(String ontologyID, OntologyAccess ontologyAccess);


	Set getOntologyIDs();


	OntologyAccess getOntology(String ontologyID);

	
	boolean containsOntology(String ontologyID);


	void loadOntologies(Properties cfg)
			throws OntologyLoaderException;

	/**
	 * Search for terms using a preferred name or synonym.
	 * The search is case insensitive.
	 * It iterates through all loaded ontologies, so use with caution!
	 * 
	 * @param name - term name (not ID)
	 * @return
	 */
	Set searchTermByName(String name);
	
	/**
	 * Search for terms by name or synonym.
	 * The search is case insensitive.
	 * It still iterates over all available ontologies, but
	 * skips ones other than specified in the second parameter.
	 * 
	 * @param name - term name (not ID)
	 * @param ontologies to look into
	 * @return
	 */
	Set searchTermByName(String name, Set ontologies);
	
	
	/**
	 * Finds an ontology term by its accession.
	 * 
	 * @param acc
	 * @return
	 */
	OntologyTermI findTermByAccession(String acc);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy