--- id: linkml-runtime version: "1.11.1" license: CC0-1.0 license_treatment: permissive maintenance: active --- # linkml-runtime — Runtime environment for LinkML, the Linked open data modeling language License: permissive · Maintenance: active · Downloads: 466.8K/mo ## What it is and what it does linkml-runtime is the companion library for LinkML, a linked data modeling language. When you use LinkML's schema compiler to generate Python dataclasses from a schema definition, those generated classes depend on this package to function. It provides the machinery to load data from external formats (JSON, YAML, RDF, TSV) into your generated dataclass instances and dump them back out, making it easy to work with structured data that conforms to a LinkML schema. The package also bundles the Python representation of the LinkML metamodel itself and includes SchemaView, a utility for programmatically inspecting and manipulating LinkML schemas. It's designed for developers building data pipelines, knowledge graphs, or domain-specific data systems where schema-driven serialization and deserialization are central to the workflow. Use it for: - Load YAML or JSON configuration files into strongly-typed Python objects generated from a LinkML schema. - Convert RDF data into Python dataclass instances for easier manipulation in application code. - Serialize Python objects back to JSON, YAML, or RDF for storage or downstream processing. - Programmatically inspect and validate LinkML schemas using SchemaView for code generation or documentation. - Build data pipelines that move data between multiple formats (TSV, JSON, RDF) while maintaining schema compliance. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides runtime support for LinkML-generated Python dataclasses, including loaders and dumpers for converting between JSON, YAML, RDF, TSV, and LinkML object instances. Yes, if you are using LinkML to generate Python dataclasses from schemas. This package is a required dependency for any generated model to work. It is actively maintained, has low install friction, carries a permissive license, and has no known security vulnerabilities. Install it as part of your LinkML workflow. ## Install pip install linkml-runtime uv add linkml-runtime poetry add linkml-runtime ## Installing linkml-runtime Before you install: Low install friction with a pure-Python wheel and active maintenance status. The package carries 14 runtime dependencies including jsonschema, pydantic, rdflib, and requests, which are all widely-used libraries. License in practice: Licensed under CC0-1.0 (public domain equivalent), permissive treatment means you can use, modify, and distribute this package with minimal restrictions. Quickstart: pip install linkml-runtime from linkml_runtime.loaders import yaml_loader from linkml_runtime.dumpers import yaml_dumper # Load YAML data into a LinkML-generated dataclass instance instance = yaml_loader.load(yaml_string, MyDataClass) # Dump instance back to YAML output = yaml_dumper.dumps(instance) Requires Python 3.10 or later; designed to work with dataclasses generated by the LinkML schema compiler. Verify before relying: - Whether the package is actively maintained by the LinkML project or community-driven; maintenance.status shows 'active' but repo metadata is unavailable. - Performance characteristics when handling large RDF graphs or deeply nested YAML structures. - Whether all 14 runtime dependencies are always required or if some are optional for specific loaders/dumpers. ## Package facts - License: CC0-1.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 466.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags linkml dataclass runtime support, load yaml json rdf into python objects, schema-driven data serialization, linked data modeling runtime, metamodel instance handling, schema-driven-data, linked-data, serialization [View on SkillFed](https://skillfed.io/packages/linkml-runtime) · [View on PyPI](https://pypi.org/project/linkml-runtime/)