universalizer
The KG-Hub Universalizer provides functions for knowledge graph cleanup and identifier normalization.
Installation
Install with pip:
pip install universalizer
OR
Install with Poetry.
git clone https://github.com/Knowledge-Graph-Hub/universalizer.git
cd universalizer
poetry install
Usage
With KGX format node and edge files in the same directory:
universalizer run path/to/directory
Or, if they're in a single tar.gz file:
universalizer run -c graph.tar.gz
ID and category mapping
SSSOM-format maps are supported. Use a single map file:
univeralizer run -m poro-mp-exact-1.0.sssom.tsv path/to/directory
or a whole directory of them:
univeralizer run -m path/to/mapfiles path/to/directory
To map node categories as well as identifiers, use the -u flag:
univeralizer run -m path/to/mapfiles path/to/directory -u
For SSSOM maps from subject_id to object_id, subject node IDs will be remapped to object IDs.
If the object_category value is specified the node's category ID will be remapped as well.
Note that this will complete node normalization and ID remapping.
Maps should use the normalized form (e.g., specify "FBbt:00005201", not "FBBT:00005201", even if the latter form is in the input graph.)
Metadata
Release files for universalizer 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| universalizer-0.0.12.tar.gz | 10.6 kB | Without provenance | Details for universalizer-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| universalizer-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for universalizer-0.0.12-py3-none-any.whl |
Total release size: 22.7 kB
Release files / universalizer-0.0.12.tar.gz
| Download URL | universalizer-0.0.12.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3d8de28c5c7c4e161d63b90dc10df08ea796985dba00f356a7787fb0894213d
|
|
BLAKE2b-256 checksum How to use checksums |
6daedd5262a01ba0d1b3cb6b6dea81d383b053d9c04fcd605b94c08f5e053e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
|
Release files / universalizer-0.0.12-py3-none-any.whl
| Download URL | universalizer-0.0.12-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9edc2686b7f0c1c670a21b43b1c0c7bddf5dd674b17c03559722227e6316d4b
|
|
BLAKE2b-256 checksum How to use checksums |
6e4148c1494ccd8addaf2e12c5bb47e12007b4f037b026ccd0944f329474c488
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
|
Security for universalizer 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.