This package has been deprecated

Author message:

Install @geneontology/curie-util-es5 instead

curie-util-es5

1.2.0 • Public • Published

curie-util-js

Javascript Library to translate CURIEs to IRIs and vice versa. ES5 Version based on the Java Implementation: https://github.com/prefixcommons/curie-util

Usage

Retrieve a JSON-LD file such as: https://github.com/prefixcommons/biocontext/blob/master/registry/go_context.jsonld

var map = parseContext(json);
var curie = new CurieUtil(map);

Get IRI

curie.getIri("ZFIN:ZDB-GENE-031112-7");
curie.getIri("MGI:MGI:34340");

Get CURIE

curie.getCurie("http://identifiers.org/zfin/ZDB-GENE-031112-7");
curie.getCurie("http://identifiers.org/mgi/MGI:34340");

Notes

Package Sidebar

Install

npm i curie-util-es5

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

7.39 kB

Total Files

5

Last publish

Collaborators

  • lpalbou