Dbfetch URL Syntax
The general format of the dbfetch URL is:
Where the parameters are:
If omitted the
style parameters use default values:
For the default database (ENA Sequence) an abbreviated syntax can be used:
To support old links and applications a series of alternative endpoints are provided which have appropriate defaults:
Details of the databases, formats and styles available in dbfetch in a range of formats:
The following information is provided for each of the available databases:
- aliasList: list of other names for the database.
- alias: alternative name for the database, can be used in requests.
- databaseTerms: list of ontology terms describing the database. Typically from EDAM, MIRIAM Registry and/or DRCAT.
- dataResourceInfoList: list of summary information describing the data resources used to obtain entry data.
- dataResourceInfo: details of a data resource.
- href: URL of data resource main page or documentation.
- name: data resource name.
- defaultFormat: name of the data format used when a format name is not supplied or the value "default" is used.
- description: a short description of the database, suitable for use in help documentation.
- displayName: name of the database to be displayed in user interfaces. Not to be used for retrieval.
- exampleIdentifiers: a set of example identifiers for entries appearing in the database.
- accessionList: list of example accession numbers.
- accession: example accession number.
- entryVersionList: list of example entry version identifiers.
- entryVersion: example entry version identifier.
- idList: list of example Ids.
- nameList: list of example entry names.
- name: example entry name.
- sequenceVersionList: list of sequence version identifiers.
- sequenceVersion: sequence version identifier.
- formatInfoList: list of available data formats.
- formatInfo: details of an available data format.
- aliases: list of other names for this data format, can be used in requests.
- alias: an alternative name for the data format.
- dataTerms: list of ontology terms describing the content of the data format. Typically from EDAM.
- name: name for the data format, used in requests.
- styleInfoList: list of details of available result styles.
- styleInfo: details of an available result style.
- mimeType: MIME type for results in this format and style.
- name: name of this result style, to be used in requests.
- syntaxTerms: list of ontology terms describing the syntax of the data format. Typically from EDAM.
- href: URL to the main database web site, for use in help or documentation.
- name: name for the database, used in requests.
Entries can also be retrieved using RESTful URLs, of the form:
Where the parameters are:
If omitted the
style parameters use default values.
See the WSDbfetch (REST) documentation for more details.
The Open Biological Database Access (OBDA) specifications provide standardised interfaces for accessing sequence data resources. The biofetch and Registry specifications are implemented by dbfetch.
The OBDA biofetch specification describes the behaviour of a generic database entry retrival system.
For details see:
Dbfetch provides a partial implementation of the OBDA biofetch specification.
In addition to dbfetch the biofetch specification has also been implemented elsewhere:
In addition to the data access methods detailed above the BioRuby biofetch implementation defines additional methods to access meta-information describing the available databases and formats. Dbfetch has been extended to also support these methods:
The biofetch specification defines a set of error messages:
- Error 1: Unknown database.
- Error 2: Unknown style.
- Error 3: Unknown format.
- Error 4: ID not found.
- Note: the use of batch queries in dbfetch means that identifiers which occur in the request but not in the result cannot easily be identified. Thus this error is not used and a "no entries" found error is used instead.
- Error 5: Too many identifiers.
The BioRuby biofetch implementation adds another error message for use in meta-information responses:
Dbfetch also uses some additional error messages, which are of the same form as the biofetch messages:
- Error 11: Unable to connect to database.
- Error 12: No entries found.
- Error 0: Unknown error.
OBDA registry defintion for databases available through dbfetch: seqdatabase.ini
Support for using the OBDA registry to access databases is available in:
The EMBOSS suite can use dbfetch as a data source, see Sequence Databases and Data Resources in the EMBOSS documentation. To simplify the use of dbfetch with EMBOSS the following sample configurations are available:
These configurations are derived from the dbfetch configration and are automatically updated as databases and formats are added to or removed from dbfetch.
Note: with EMBOSS 6.4.0 (Release Notes) support for database servers has been added to EMBOSS (see servertell and showserver) and the USA syntax extended to provide query access to named database servers (see Data Resources). This includes support for both the dbfetch and WSDbfetch (SOAP) services at EMBL-EBI.