@geneontology/dbxrefs
This is a simple package using the Gene Ontology dbxrefs (json | yaml) to translate CURIE into URLs.
This is different from CURIE <-> IRI conversion used in the Semantic Web to provide universal and unique identifiers over the web, please refer to: prefixcommons/biocontext or curie-util-py.
Initializes the dbxrefs package. This should be called before using any other functions.
Returns a promise that resolves when the initialization is complete. If the initialization was successful, the promise resolves to the complete list of dbxrefs. If there was an error, the promise resolves to undefined
Returns true
if the dbxrefs package has been successfully initialized, false
otherwise.
Returns true
if there was an error during initialization, false
otherwise.
Returns the URL for a given database, entity type, and ID. If the entityType
parameter is undefined
, the first entity type for the given database is used.
If a matching database or entity type cannot be found in the dbxref list, the function returns undefined
.
Returns the complete list of dbxrefs as an array of objects.
If you have questions regarding dbxrefs, please address them to the GO helpdesk.