Operations on SSSOM mapping tables
Actively maintained. Last release 7 days ago, commits in 6 of the last 26 weeks. A safe choice.
pip install sssomPython Utilities for SSSOM
A Python library and command line interface (CLI) for working with SSSOM (Simple Standard for Sharing Ontology Mappings).
Getting Started
A SSSOM TSV can be parsed with
import sssom
# other SSSOM files can be found on https://mapping-commons.github.io
url = "https://raw.githubusercontent.com/mapping-commons/mh_mapping_initiative/master/mappings/mp_hp_eye_impc.sssom.tsv"
# TSV can be parsed into a mapping set dataframe object,
# which includes a pandas DataFrame, a curies.Converter,
# and metadata
msdf = sssom.parse_tsv(url)
# SSSOM comes with several "write" functions
sssom.write_tsv(msdf, "test.tsv")
sssom.write_json(msdf, "test.json")
sssom.write_owl(msdf, "test.owl")
sssom.write_rdf(msdf, "test.ttl")
[!WARNING]
The export formats (json, rdf) of sssom-py are not yet finalised! Expect changes in future releases.
Documentation
See documentation
Deploy documentation
$ make sphinx
$ make deploy-docs
Schema
See the schema/ folder for source schema in YAML, plus derivations to JSON-Schema, ShEx, etc.