
org.biopax.ols.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of obo-fetcher Show documentation
Show all versions of obo-fetcher Show documentation
OBO ontology access and handling (derived from EBI PSIDEV Ontology Manager and OLS)
package org.biopax.ols;
/*
*
*/
import java.util.Collection;
import java.util.HashSet;
/**
* User: Richard Cote
* Date: 21-Jul-2005
* Time: 14:38:16
*
* @author Richard Cote
* @version $Id: Constants.java,v 1.15 2008/02/12 16:47:13 rglcote Exp $
*/
public class Constants {
public static final String OLS_CONFIG_FILE = "ols-config.properties";
public static final String OLS_DBALIAS = "OLS_MAIN";
public static final String OLS_FAILOVER_DBALIAS = "OLS_FAILOVER";
public static final int IS_A_RELATION_TYPE_ID = 1;
public static final int PART_OF_RELATION_TYPE_ID = 2;
public static final int DEVELOPS_FROM_RELATION_TYPE_ID = 3;
public static final int OTHER_RELATION_TYPE_ID = 4;
public static final int NO_DISTANCE_CONSTRAINT = -1;
public static final String DEFINITION = "definition";
public static final String IS_A_RELATION_TYPE = "is_a";
public static final String PART_OF_RELATION_TYPE = "part_of";
public static final String DEVELOPS_FROM_RELATION_TYPE = "develops_from";
public static final String ALT_ID_SYNONYM_TYPE = "alt_id";
public static final String EXACT_SYNONYM_TYPE = "exact";
public static final String NARROW_SYNONYM_TYPE = "narrow";
public static final String BROAD_SYNONYM_TYPE = "broad";
public static final String RELATED_SYNONYM_TYPE = "related";
public static final String DEFAULT_SYNONYM_TYPE = "synonym";
public static final String ONTOLOGY_NAME_ATTRIBUTE = "loaded_ontology";
public static final String PREFERRED_NAME = "preferred name";
public static final int RETURN_VALUE_OK = 0;
public static final int RETURN_VALUE_OK_NO_ONTOLOGIES_LOADED = 1;
public static final int RETURN_VALUE_ERROR = 2;
public static final int RETURN_VALUE_CVS_ERROR = 3;
/*
These are relationship types that need to be ignored because they
will break the ontology browser and the dot executable
*/
public static final Collection RELATIONSHIPS_TO_IGNORE = new HashSet();
static {
RELATIONSHIPS_TO_IGNORE.add("participates_in");
RELATIONSHIPS_TO_IGNORE.add("disjoint_from");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy