{ "info": { "author": "Laurent-Philippe Albou", "author_email": "laurent.albou@lbl.gov", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Curie Util\nPython Library to translate CURIEs to IRIs and vice versa. Python version based on the Java Implementation: https://github.com/prefixcommons/curie-util and the JavaScript Implementation: https://github.com/geneontology/curie-util-es5 \n\n## Install\n```\npip install curieutil\n```\n\n## Usage\nRetrieve a JSON-LD file such as: https://github.com/prefixcommons/biocontext/blob/master/registry/go_context.jsonld\n\n```python\nimport requests\nurl = 'https://raw.githubusercontent.com/prefixcommons/biocontext/master/registry/go_context.jsonld'\nr = requests.get(url)\n```\n\nThen create a CurieUtil object:\n```python\nfrom curieutil import CurieUtil\nmapping = CurieUtil.parseContext(r.json())\ncurie = CurieUtil(mapping)\n```\n\n### Get IRI\n```python\ncurie.getIri(\"ZFIN:ZDB-GENE-031112-7\")\ncurie.getIri(\"MGI:MGI:34340\")\n```\n\n### Get CURIE\n```python\ncurie.getCurie(\"http://identifiers.org/zfin/ZDB-GENE-031112-7\")\ncurie.getCurie(\"http://identifiers.org/mgi/MGI:34340\")\n```\n\n## Notes\n* Learn about [JSON-LD](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=2ahUKEwjOtNqao7ncAhX3IjQIHXhIAOcQFjADegQIAxAB&url=https%3A%2F%2Fjson-ld.org%2F&usg=AOvVaw0KYV5lDp9ZQ0M18tp93C6E)\n* Learn about [IRI](https://www.w3.org/International/iri-edit/draft-duerst-iri.html)\n* Learn about [CURIE](https://www.w3.org/TR/2010/NOTE-curie-20101216/)\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/geneontology/curie-util-py", "keywords": "CURIE,URI,IRI,RDF,OWL", "license": "", "maintainer": "", "maintainer_email": "", "name": "curieutil", "package_url": "https://pypi.org/project/curieutil/", "platform": "", "project_url": "https://pypi.org/project/curieutil/", "project_urls": { "Homepage": "https://github.com/geneontology/curie-util-py" }, "release_url": "https://pypi.org/project/curieutil/0.0.5/", "requires_dist": [ "bidict" ], "requires_python": "", "summary": "Python Library to translate CURIEs to IRIs and vice versa. Python version based on the Java Implementation: https://github.com/prefixcommons/curie-util and the JavaScript Implementation: https://github.com/geneontology/curie-util-es5", "version": "0.0.5" }, "last_serial": 4643106, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "04863802ba5e76a1cea4e7c33a5b7887", "sha256": "30c3cd2a63ca0e990e3cf5a09b477af2c1c4424c6895d92263210e0d15433257" }, "downloads": -1, "filename": "curieutil-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "04863802ba5e76a1cea4e7c33a5b7887", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3537, "upload_time": "2018-12-29T02:27:41", "url": "https://files.pythonhosted.org/packages/3d/94/d5f2ad99c6133030f6d6a09efbe0731361a96229bef509c89f5e4db905d7/curieutil-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d36db0c5e772cfdbd47500a96a00253d", "sha256": "9eda5d22d8f40a5b3dda020a69d23d0acabe79a673a24bf4f881b750c3653782" }, "downloads": -1, "filename": "curieutil-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d36db0c5e772cfdbd47500a96a00253d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3117, "upload_time": "2018-12-29T02:27:43", "url": "https://files.pythonhosted.org/packages/10/1e/9a0ed238dbec71d4a0f144a718fc81a961c9ef55bd02064c2f040adc993b/curieutil-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "bda865b5ec106979c4d714fba515cca8", "sha256": "0b44435ca3e827258600c8dfb16333b5506cf94193451ac7c92e97bbf3d8421f" }, "downloads": -1, "filename": "curieutil-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bda865b5ec106979c4d714fba515cca8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3530, "upload_time": "2018-12-29T02:39:16", "url": "https://files.pythonhosted.org/packages/3c/82/e45836963d4d5ee7d3ac7624c9212dff1682edbf6d6706f820b34f4d70b4/curieutil-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3998cb5a22ca5d77af131953371a82bf", "sha256": "4c401fcddfbf6d47852542f4583d1a1e9cf902a765068e308cccde7fe6eef24c" }, "downloads": -1, "filename": "curieutil-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3998cb5a22ca5d77af131953371a82bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3111, "upload_time": "2018-12-29T02:39:18", "url": "https://files.pythonhosted.org/packages/be/e7/162b56f6b7ef42a0391e4cfb5ebc7be27ff1ed6f531355015fbec52988a5/curieutil-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "c1f80eb7e568931b44221506349d5bd7", "sha256": "045310045401b2451fd935c127f3399844bae8b8b8c2c6ea6e65b60acc22f33a" }, "downloads": -1, "filename": "curieutil-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c1f80eb7e568931b44221506349d5bd7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3381, "upload_time": "2018-12-29T02:44:20", "url": "https://files.pythonhosted.org/packages/13/27/204dfbb2a55559bef755149cb566c409a2ad7f12714b9da668535b7214d2/curieutil-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d9f146ec5662e4e62bc1fbfd6c0e872", "sha256": "db23c40a935a486b1b60b7e746beaf553cb9efeea0b1157a246db07215f237ee" }, "downloads": -1, "filename": "curieutil-0.0.3.tar.gz", "has_sig": false, "md5_digest": "7d9f146ec5662e4e62bc1fbfd6c0e872", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3103, "upload_time": "2018-12-29T02:44:22", "url": "https://files.pythonhosted.org/packages/2b/21/095ee0b603c45124c4665b178531b3ba30d5cf06b83ba101bd2ec988666c/curieutil-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "aab9af8ff839f2715dbde15b5bd9937d", "sha256": "f8ce79d611f89a6fe82c717983f51960e3e664e051cb160fda1b3befc8b39935" }, "downloads": -1, "filename": "curieutil-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "aab9af8ff839f2715dbde15b5bd9937d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4198, "upload_time": "2018-12-29T03:00:10", "url": "https://files.pythonhosted.org/packages/3f/02/aa02d71cdf89dabf0c922c52c56bf0967a74440168d0d990413019eb3b23/curieutil-0.0.4-py3-none-any.whl" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "e4330ab428f3e0f0002f0878a916efcf", "sha256": "9fc035ce86b30abddad0d7b8c8aa27c52a62e2377e72c306d5ff33224d0b8c92" }, "downloads": -1, "filename": "curieutil-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "e4330ab428f3e0f0002f0878a916efcf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4214, "upload_time": "2018-12-29T03:09:35", "url": "https://files.pythonhosted.org/packages/b7/f1/661eb081e452e4b4ad78939ca3bcd5bebb600e078fcaaa061618f68a3fb3/curieutil-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "100d68216ca25da55f629dd364569a72", "sha256": "f05630ecb2e2b7daf230836cc349dd7dff082d63d120936ac367d3e0fd1c8b6e" }, "downloads": -1, "filename": "curieutil-0.0.5.tar.gz", "has_sig": false, "md5_digest": "100d68216ca25da55f629dd364569a72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3597, "upload_time": "2018-12-29T03:09:37", "url": "https://files.pythonhosted.org/packages/eb/a1/27ac82b3eb4fb5c86e486370b470ab393b3b68985c38d16487df08e1ddd1/curieutil-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4330ab428f3e0f0002f0878a916efcf", "sha256": "9fc035ce86b30abddad0d7b8c8aa27c52a62e2377e72c306d5ff33224d0b8c92" }, "downloads": -1, "filename": "curieutil-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "e4330ab428f3e0f0002f0878a916efcf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4214, "upload_time": "2018-12-29T03:09:35", "url": "https://files.pythonhosted.org/packages/b7/f1/661eb081e452e4b4ad78939ca3bcd5bebb600e078fcaaa061618f68a3fb3/curieutil-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "100d68216ca25da55f629dd364569a72", "sha256": "f05630ecb2e2b7daf230836cc349dd7dff082d63d120936ac367d3e0fd1c8b6e" }, "downloads": -1, "filename": "curieutil-0.0.5.tar.gz", "has_sig": false, "md5_digest": "100d68216ca25da55f629dd364569a72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3597, "upload_time": "2018-12-29T03:09:37", "url": "https://files.pythonhosted.org/packages/eb/a1/27ac82b3eb4fb5c86e486370b470ab393b3b68985c38d16487df08e1ddd1/curieutil-0.0.5.tar.gz" } ] }