Skip to content

linkml/linkml-runtime

Repository files navigation

linkml-runtime

Pyversions badge PyPi PyPIDownloadsTotal PyPIDownloadsMonth codecov

Runtime support for linkml generated data classes

About

This python library provides runtime support for LinkML datamodels.

See the LinkML repo for the Python Dataclass Generator which will convert a schema into a Python object model. That model will have dependencies on functionality in this library.

The library also provides

  • loaders: for loading from external formats such as json, yaml, rdf, tsv into LinkML instances
  • dumpers: the reverse operation

See working with data in the documentation for more details

This repository also contains the Python dataclass representation of the LinkML metamodel, and various utility functions that are useful for working with LinkML data and schemas.

It also includes the SchemaView class for working with LinkML schemas

Notebooks

See the notebooks folder for examples