prefixcommons
A python API for working with ID prefixes
Decision gist · record as of 2026-08-14
Yes, if you work with biomedical ontologies or need CURIE-to-URI conversion. The package is stable, has no known vulnerabilities, and low install friction. The dormant maintenance status is a minor concern for a specialized tool—monitor the repository if you depend on current ontology prefix definitions, but core functionality is unlikely to break.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with four common runtime dependencies (requests, click, pytest-logging, PyYAML).
- Maintenance is dormant—last release 2022-07-19, though repository has recent commits.
License · maintenance · safety
permissive license (permissive) — Licensed under BSD (permissive), so you can use and modify the package freely in most contexts without restriction.
last release 2022-07-19 (1487 days) · last repo commit 2024-07-05 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 307,179 downloads/mo, #7,778 on PyPI
Alternatives
Verify before relying
pip install prefixcommons
from prefixcommons import expand_uri, contract_uri
print(expand_uri('GO:0008150'))
print(contract_uri('http://purl.obolibrary.org/obo/GO_0008150'))- Whether the standard JSON-LD context files are kept current with latest ontology prefix definitions.
- Performance characteristics when expanding or contracting large batches of identifiers.
- Whether custom context maps support the full JSON-LD specification or a subset.
What it is and what it does
prefixcommons is a Python library that converts between compact identifier notation (CURIEs) and their full Uniform Resource Identifiers (URIs) using JSON-LD context files. It ships with standard contexts that map biomedical ontology prefixes to their canonical URIs—for example, GO:0008150 expands to http://purl.obolibrary.org/obo/GO_0008150. The core functions are expand_uri (CURIE to URI) and contract_uri (URI to CURIE), and you can supply your own context maps as dictionaries if the built-in ones don't fit your use case.
The package is designed for workflows where you need to normalize identifier formats across biomedical ontologies. It depends on requests, click, pytest-logging, and PyYAML. The codebase is dormant (last release 2022-07-19), though the repository remains active, so it is not abandoned but not actively developed.
Use it for
- Normalize biomedical ontology identifiers in data pipelines by converting CURIEs to full URIs.
- Batch expand or contract identifiers when integrating data from multiple ontology sources.
- Define custom prefix-to-URI mappings for domain-specific identifier schemes.
- Validate and standardize identifier formats in bioinformatics ETL workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with biomedical ontologies or need CURIE-to-URI conversion.
The package is stable, has no known vulnerabilities, and low install friction. The dormant maintenance status is a minor concern for a specialized tool—monitor the repository if you depend on current ontology prefix definitions, but core functionality is unlikely to break.
Install
prefixcommons on PyPI
Before you install
Low friction: pure Python wheel with four common runtime dependencies (requests, click, pytest-logging, PyYAML). Maintenance is dormant—last release 2022-07-19, though repository has recent commits.
License in practice
Licensed under BSD (permissive), so you can use and modify the package freely in most contexts without restriction.
Quickstart
pip install prefixcommons
from prefixcommons import expand_uri, contract_uri
print(expand_uri('GO:0008150'))
print(contract_uri('http://purl.obolibrary.org/obo/GO_0008150'))
Verify before relying
- Whether the standard JSON-LD context files are kept current with latest ontology prefix definitions.
- Performance characteristics when expanding or contracting large batches of identifiers.
- Whether custom context maps support the full JSON-LD specification or a subset.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7,<4.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesrequestsclickpytest-loggingPyYAML |
| Maintenance | Dormant 1,487 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 307,179 / month, #7,778 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Bio-InformaticsTopic :: Scientific/Engineering :: Information Analysis |
Evidence: prefixcommons-0.1.12-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ontology identifier expansion”
- prefixcommonsConverts between CURIEs (compact URI identifiers like GO:0008150) and…
- prefixmapsRetrieves and manages semantic prefix maps that convert compact URIs…
- bioregistryBioregistry provides a unified Python interface to query, normalize,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Information Analysis packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.
Install it if you use Snowflake and want to process data without moving it to your application layer.
See also curies · prefixmaps · prison · uri-template · bioregistry · rison · uritools · lazr.uri · pronto · rdflib-jsonld