Skip to main content

linkml-map

Pyversions PyPi codecov

LinkML Map is a framework for specifying and executing declarative mappings between data models. At its core is the TransformationSpecification — a YAML-based language for describing how to map one data model to another, independent of serialization format or execution engine.

Features:

  • YAML-based lightweight transformation syntax
  • Python library for executing mappings on data files
  • Tabular data support (TSV/CSV) with streaming for large datasets
  • Experimental SQL compilation backend (DuckDB) for set-based transforms
  • Derivation of target (implicit) schemas, allowing easy customization of data models (profiling)
  • Simple YAML dictionaries for simple mappings
  • Automatic unit conversion
  • Use of subset of Python to specify complex mappings
  • Visualizations of mappings
  • Mappings are reversible (provided all expressions used are reversible)
  • Multiple output formats (YAML, JSON, JSONL, TSV, CSV)

For full documentation see linkml.io/linkml-map/.

Status:

The transformation data model is not yet fully stable, and may be subject to change. Not all parts of the model are implemented in the reference Python framework.

Quickstart

Install:

pip install linkml-map
# or, in a uv-managed project: uv add linkml-map

When using uv, prefix CLI invocations with uv run (e.g. uv run linkml-map --help).

Run the included example (the example files live in this repo):

git clone https://github.com/linkml/linkml-map.git
cd linkml-map/tests/input/examples/personinfo_basic
linkml-map map-data --unrestricted-eval \
  -T transform/personinfo-to-agent.transform.yaml \
  -s source/personinfo.yaml \
  data/Container-001.yaml

See the Quick Start guide for the expected output and next steps.

More

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linkml_map-0.5.3.tar.gz (585.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linkml_map-0.5.3-py3-none-any.whl (151.1 kB view details)

Uploaded Python 3

File details

Details for the file linkml_map-0.5.3.tar.gz.

File metadata

  • Download URL: linkml_map-0.5.3.tar.gz
  • Upload date:
  • Size: 585.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for linkml_map-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2bdb16bc9546280cf03bbe9476ed3460795d612004b61e810d4206d7830093b4
MD5 436453ce0db862de62965402f98ebfd9
BLAKE2b-256 216592e03bbaa3f70c215b44729e1adc37795a01ace438f44a99f30af84f4e8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for linkml_map-0.5.3.tar.gz:

Publisher: pypi-publish.yaml on linkml/linkml-map

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file linkml_map-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: linkml_map-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 151.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for linkml_map-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 937beba0e2ce54f669e873f80166dda9e198068eed2338e032d5a1309251556c
MD5 ecca71b7a78d144a506171d49c32bacb
BLAKE2b-256 11011d8e9f0c1e51475275d9393154a69e86170e7d4a7ab17fa568935d1c24ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for linkml_map-0.5.3-py3-none-any.whl:

Publisher: pypi-publish.yaml on linkml/linkml-map

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page