public class MiriamLink extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BINDING
package name for jaxb to use
|
static String |
SCHEMA_LOCATION |
static boolean |
useObsoleteDatatypes |
static boolean |
useObsoleteResources |
static String |
XML_LOCATION
default web service URL to get the Miriam.xml db content; see also: http://www.ebi.ac.uk/miriam/main/export/.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MiriamLink()
Default constructor: initialization of some parameters
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkRegExp(String identifier,
String datatype)
Checks if the identifier given follows the regular expression
of its data type (also provided).
|
static boolean |
containsIdOrName(String searchKey)
Check whether Miriam contains a data type record with this
name (any synonym) or identifier (case insensitive)
|
static boolean |
containsUri(String searchUri)
Check whether Miriam contains a data type record with this URI
(case sensitive)
|
static String |
convertUrn(String urn)
Deprecated.
this method applies
URLDecoder.decode(String) to the last part of the URN, which may not always work as expected (test yours!) |
static String[] |
getDataResources(String datatypeKey)
Retrieves home page URLs of a datatype.
|
static net.biomodels.miriam.Miriam.Datatype |
getDatatype(String datatypeKey)
Gets Miriam Datatype by its ID, Name, Synonym, or URI (URN/URL)
|
static String |
getDataTypeDef(String datatypeKey)
Retrieves the definition of a data type.
|
static String |
getDataTypePattern(String datatypeKey)
Retrieves the pattern (regular expression) used by the identifiers within a data type.
|
static String[] |
getDataTypesId()
Retrieves the internal identifier (stable and perennial) of
all the data types (for example: "MIR:00000005").
|
static String[] |
getDataTypesName()
Retrieves the list of preferred names of all the data types available.
|
static String |
getDataTypeURI(String datatypeKey)
Retrieves the unique (official) URI of a data type (example: "urn:miriam:uniprot").
|
static String[] |
getDataTypeURIs(String datatypeKey)
Retrieves all the URIs of a data type, including all the deprecated ones
(examples: "urn:miriam:uniprot", "http://www.uniprot.org/", "urn:lsid:uniprot.org:uniprot", ...).
|
static String |
getIdentifiersOrgURI(String name,
String id)
Gets the Identifiers.org URI/URL of the entity (example: "http://identifiers.org/obo.go/GO:0045202").
|
static String[] |
getLocations(String datatypeKey,
String entityId)
Retrieves the physical locationS (URLs) of web pageS providing knowledge about an entity.
|
static String |
getName(String datatypeKey)
Retrieves the preferred name of a data type.
|
static String[] |
getNames(String datatypeKey)
Retrieves all the synonyms (incl.
|
static String |
getOfficialDataTypeURI(net.biomodels.miriam.Miriam.Datatype datatype)
Retrieves the unique (official) URI of a data type
(example: "http://identifiers.org/uniprot").
|
static String |
getOfficialDataTypeURI(String uri)
Deprecated.
use getDataTypeURI instead
|
static net.biomodels.miriam.Resource |
getResource(String resourceId)
Retrieves the resource by id (for example: "MIR:00100008" (bind) ).
|
static String |
getResourceInstitution(String resourceId)
Retrieves the institution which manages a resource (example: "European Bioinformatics Institute").
|
static String |
getResourceLocation(String resourceId)
Retrieves the location (or country) of a resource (example: "United Kingdom").
|
static String[] |
getResourcesId()
Retrieves the internal identifier (stable and perennial) of
all the resources (for example: "MIR:00100008" (bind) ).
|
static String |
getServicesVersion()
Retrieves the current version of MIRIAM Web Services.
|
static String |
getURI(String name,
String id)
Retrieves the unique MIRIAM URI of a specific entity (example: "urn:miriam:obo.go:GO%3A0045202").
|
static boolean |
isDeprecated(String uri)
To know if a URI of a data type is deprecated.
|
public static final String XML_LOCATION
public static final String BINDING
public static final String SCHEMA_LOCATION
public static boolean useObsoleteDatatypes
public static boolean useObsoleteResources
protected MiriamLink()
public static String getServicesVersion()
public static String getDataTypeURI(String datatypeKey)
datatypeKey - - ID, name, synonym, or (incl. deprecated) URI (URN or URL) of a data type (examples: "UniProt")IllegalArgumentException - when datatype not foundpublic static String[] getDataTypeURIs(String datatypeKey)
datatypeKey - name (or synonym), ID, or URI (URN or URL) of the data type (examples: "ChEBI", "UniProt")IllegalArgumentException - when datatype not foundpublic static String getResourceLocation(String resourceId)
resourceId - identifier of a resource (example: "MIR:00100009")public static String getResourceInstitution(String resourceId)
resourceId - identifier of a resource (example: "MIR:00100009")public static String getURI(String name, String id)
name - - name, URI/URL, or ID of a data type (examples: "ChEBI", "MIR:00000005")id - identifier of an entity within the data type (examples: "GO:0045202", "P62158")IllegalArgumentException - when datatype not foundpublic static String getDataTypeDef(String datatypeKey)
datatypeKey - - ID, name or URI (URN or URL) of a data typeIllegalArgumentException - when datatype not foundpublic static String[] getLocations(String datatypeKey, String entityId)
datatypeKey - name (can be a synonym), ID, or URI of a data type (examples: "Gene Ontology", "UniProt")entityId - identifier of an entity within the given data type (examples: "GO:0045202", "P62158")IllegalArgumentException - when datatype not foundpublic static String[] getDataResources(String datatypeKey)
datatypeKey - - name (can be a synonym), ID, or URI (URL or URN) of a data typeIllegalArgumentException - when datatype not foundpublic static boolean isDeprecated(String uri)
uri - (URN or URL) of a data typepublic static String getDataTypePattern(String datatypeKey)
datatypeKey - data type ID, name (or synonym), or URI (URL or URN)IllegalArgumentException - when datatype not foundpublic static String getName(String datatypeKey)
datatypeKey - URI (URL or URN), ID, or nickname of a data typeIllegalArgumentException - when not foundpublic static String[] getNames(String datatypeKey)
datatypeKey - ID, any name, or URI (URL or URN) of a data typepublic static String[] getDataTypesName()
public static String[] getDataTypesId()
public static String getOfficialDataTypeURI(String uri)
uri - deprecated URI (URN or URL) of a data typepublic static boolean checkRegExp(String identifier, String datatype)
identifier - internal identifier used by the data typedatatype - name, synonym or URI of a data typeIllegalArgumentException - when datatype not foundpublic static String getOfficialDataTypeURI(net.biomodels.miriam.Miriam.Datatype datatype)
datatype - net.biomodels.miriam.Miriam.Datatypepublic static net.biomodels.miriam.Miriam.Datatype getDatatype(String datatypeKey)
datatypeKey - - a datatype ID, name, synonym, or URIIllegalArgumentException - when not foundpublic static String[] getResourcesId()
public static net.biomodels.miriam.Resource getResource(String resourceId)
resourceId - - resource identifier (similar to, but not a data type identifier!)public static boolean containsIdOrName(String searchKey)
searchKey - - ID, name, or synonym (case insensitive)public static boolean containsUri(String searchUri)
searchUri - - URI (case sensitive)public static String convertUrn(String urn)
URLDecoder.decode(String) to the last part of the URN, which may not always work as expected (test yours!)urn - - an existing Miriam URN, e.g., "urn:miriam:obo.go:GO%3A0045202"- use this to get the URN,
- prefered URIpublic static String getIdentifiersOrgURI(String name, String id)
name - - name, URI/URL, or ID of a data type (examples: "ChEBI", "MIR:00000005")id - identifier of an entity within the data type (examples: "GO:0045202", "P62158")IllegalArgumentException - when datatype not foundCopyright © 2009-2015–2017 BioPAX. All rights reserved.