Skip to content

linkml-runtime

Details

GitHub linkml/linkml-runtime
Language Python
Description Runtime support for linkml generated models

Dependencies

External Dependencies

Package Version
python ^3.8
click *
deprecated *
hbreader *
json-flattener >=0.1.9
jsonasobj2 ==1.*,>=1.0.0,>=1.0.4
jsonschema >=3.2.0
prefixcommons >=0.1.12
pyyaml *
rdflib >=6.0.0
requests *
prefixmaps >=0.1.4
curies >=0.5.4
pydantic >=1.10.2, <3.0.0

Documentation

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