Package org.bridgedb.server
Class IDMapperService
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.Application
-
- org.bridgedb.server.IDMapperService
-
- All Implemented Interfaces:
org.restlet.Uniform
public class IDMapperService extends org.restlet.ApplicationServer component for ID mapping.Use
-DserverURL=http://to change the URL to the server. It defaults to http://bridgedb.org/wiki/BridgeWebservice and must be overwritten for custom installations.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONF_GDBSFileconfigFilestatic StringPAR_DATASOURCESstatic StringPAR_DEST_SYSTEMstatic StringPAR_IDstatic StringPAR_ORGANISMstatic StringPAR_QUERYstatic StringPAR_SOURCE_SYSTEMstatic StringPAR_SYSTEMstatic StringPAR_TARGET_ATTR_NAMEstatic StringPAR_TARGET_LIMITstatic StringPAR_TARGET_SYSTEMstatic StringURL_ATTRIBUTE_SEARCHURL pattern for searching by attribute.static StringURL_ATTRIBUTE_SETURL pattern for getting the supported attribute set.
/{organism}/attributeSetstatic StringURL_ATTRIBUTESURL pattern for getting attributes of an xref.static StringURL_BACK_PAGE_TEXTURL pattern for getting backpage HTML.
URL:
/{organism}/backPageText/{system}/{id}static StringURL_CONFIGURL pattern for getting the server configuration.
/configstatic StringURL_CONTENTSURL pattern for getting a list of species loaded in the server.
/contentsstatic StringURL_DATASOURCESURL pattern for getting the datasources.txt filestatic StringURL_HOMEURL pattern to redirect to home page.
{blank}static StringURL_IS_FREE_SEARCH_SUPPORTEDURL pattern for finding out if free search is supported.
/{organism}/isFreeSearchSupportedstatic StringURL_IS_MAPPING_SUPPORTEDURL pattern to find out if a mapping is supported.
/{organism}/isMappingSupported/{source_system}/{target_system}static StringURL_NO_MATCHURL pattern to catch a misformed query.
{unmatched patter}static StringURL_PROPERTIESURL pattern for getting IDMapper properties.static StringURL_SEARCHURL pattern for searching xrefs.
/{organism}/search/{query}[?limit={limit}]static StringURL_SUPPORTED_SOURCE_DATASOURCESURL pattern for getting the supported source datasources for this database.
/{organism}/sourceDataSourcesstatic StringURL_SUPPORTED_TARGET_DATASOURCESURL pattern for getting the supported target datasources for this database.
/{organism}/targetDataSourcesstatic StringURL_XREF_EXISTSURL pattern for finding out if an xref exists in the database.
/{organism}/xrefExists/{system}/{id}static StringURL_XREFSURL pattern for mapping xrefs.
/{organism}/xrefs/{system}/{id}[?dataSource={dsName}]
-
Constructor Summary
Constructors Constructor Description IDMapperService(File aConfigFile, boolean transitive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.restlet.RestletcreateRoot()GdbProvidergetGdbProvider()voidstart()-
Methods inherited from class org.restlet.Application
createInboundRoot, createOutboundRoot, getConnectorService, getConverterService, getCurrent, getDecoderService, getFinderClass, getInboundRoot, getMetadataService, getOutboundRoot, getRangeService, getRole, getRoles, getRoot, getServices, getStatusService, getTaskService, getTunnelService, handle, setClientRoot, setConnectorService, setContext, setConverterService, setCurrent, setDecoderService, setFinderClass, setInboundRoot, setInboundRoot, setMetadataService, setOutboundRoot, setRangeService, setRoles, setRoot, setRoot, setStatusService, setTaskService, setTunnelService, stop
-
-
-
-
Field Detail
-
CONF_GDBS
public static final String CONF_GDBS
- See Also:
- Constant Field Values
-
PAR_ORGANISM
public static final String PAR_ORGANISM
- See Also:
- Constant Field Values
-
PAR_ID
public static final String PAR_ID
- See Also:
- Constant Field Values
-
PAR_SYSTEM
public static final String PAR_SYSTEM
- See Also:
- Constant Field Values
-
PAR_QUERY
public static final String PAR_QUERY
- See Also:
- Constant Field Values
-
PAR_DATASOURCES
public static final String PAR_DATASOURCES
- See Also:
- Constant Field Values
-
PAR_TARGET_SYSTEM
public static final String PAR_TARGET_SYSTEM
- See Also:
- Constant Field Values
-
PAR_TARGET_ATTR_NAME
public static final String PAR_TARGET_ATTR_NAME
- See Also:
- Constant Field Values
-
PAR_TARGET_LIMIT
public static final String PAR_TARGET_LIMIT
- See Also:
- Constant Field Values
-
PAR_SOURCE_SYSTEM
public static final String PAR_SOURCE_SYSTEM
- See Also:
- Constant Field Values
-
PAR_DEST_SYSTEM
public static final String PAR_DEST_SYSTEM
- See Also:
- Constant Field Values
-
configFile
public final File configFile
-
URL_HOME
public static final String URL_HOME
URL pattern to redirect to home page.
{blank}- See Also:
- Constant Field Values
-
URL_NO_MATCH
public static final String URL_NO_MATCH
URL pattern to catch a misformed query.
{unmatched patter}- See Also:
- Constant Field Values
-
URL_XREFS
public static final String URL_XREFS
URL pattern for mapping xrefs.
/{organism}/xrefs/{system}/{id}[?dataSource={dsName}]
-
URL_SEARCH
public static final String URL_SEARCH
URL pattern for searching xrefs.
/{organism}/search/{query}[?limit={limit}]
-
URL_XREF_EXISTS
public static final String URL_XREF_EXISTS
URL pattern for finding out if an xref exists in the database.
/{organism}/xrefExists/{system}/{id}
-
URL_PROPERTIES
public static final String URL_PROPERTIES
URL pattern for getting IDMapper properties. Returns tab delimited text with a property on each line, where the first column is the property key, the second is the property value.
/{organism}/properties
-
URL_SUPPORTED_SOURCE_DATASOURCES
public static final String URL_SUPPORTED_SOURCE_DATASOURCES
URL pattern for getting the supported source datasources for this database.
/{organism}/sourceDataSources
-
URL_SUPPORTED_TARGET_DATASOURCES
public static final String URL_SUPPORTED_TARGET_DATASOURCES
URL pattern for getting the supported target datasources for this database.
/{organism}/targetDataSources
-
URL_IS_FREE_SEARCH_SUPPORTED
public static final String URL_IS_FREE_SEARCH_SUPPORTED
URL pattern for finding out if free search is supported.
/{organism}/isFreeSearchSupported
-
URL_IS_MAPPING_SUPPORTED
public static final String URL_IS_MAPPING_SUPPORTED
URL pattern to find out if a mapping is supported.
/{organism}/isMappingSupported/{source_system}/{target_system}
-
URL_ATTRIBUTE_SEARCH
public static final String URL_ATTRIBUTE_SEARCH
URL pattern for searching by attribute. Returns tab delimited text with an xref result on each line, where the first column is the identifier, the second column is the datasource and the third column is the attribute value.
/{organism}/attributeSearch/{query}?[limit={limit}][&attrName={attrName}]
-
URL_ATTRIBUTES
public static final String URL_ATTRIBUTES
URL pattern for getting attributes of an xref. If attrName is supplied, this method returns plain text with an attribute value on each line. If attrName is not supplied, this method returns tab delimited text with an attribute key-value pair on each line.
/{organism}/attributes/{system}/{id}[?attrName={attrName}]
-
URL_ATTRIBUTE_SET
public static final String URL_ATTRIBUTE_SET
URL pattern for getting the supported attribute set.
/{organism}/attributeSet
-
URL_CONFIG
public static final String URL_CONFIG
URL pattern for getting the server configuration.
/config- See Also:
Config.getConfig(), Constant Field Values
-
URL_CONTENTS
public static final String URL_CONTENTS
URL pattern for getting a list of species loaded in the server.
/contents- See Also:
Contents.getContents(), Constant Field Values
-
URL_BACK_PAGE_TEXT
public static final String URL_BACK_PAGE_TEXT
URL pattern for getting backpage HTML.
URL:
/{organism}/backPageText/{system}/{id}- See Also:
- Constant Field Values
-
URL_DATASOURCES
public static final String URL_DATASOURCES
URL pattern for getting the datasources.txt file- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IDMapperService
public IDMapperService(File aConfigFile, boolean transitive)
-
-
Method Detail
-
start
public void start() throws Exception- Overrides:
startin classorg.restlet.Application- Throws:
Exception
-
createRoot
public org.restlet.Restlet createRoot()
- Overrides:
createRootin classorg.restlet.Application
-
getGdbProvider
public GdbProvider getGdbProvider()
-
-