ArticleslgStudy

computer science

LinkML

LinkML is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand LinkML rather than just read about it. In short: The Linked Data Modeling Language, or LinkML, is a data modeling framework based on YAML that aims to "bring semantic web standards to the masses, simplifying the production of FAIR, ontology-ready data." It can be used to specify data schemas that can be used for validating data via formats like JSON-LD and ShEx. Description The Linked data Modeling Language is an object-oriented data modeling framework aiming to s…

LinkML — main illustration
LinkML — illustration

Key takeaways

  • LinkML belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect LinkML to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of LinkML from memory before moving on to harder problems.

Reference excerpt

The Linked Data Modeling Language, or LinkML, is a data modeling framework based on YAML that aims to "bring semantic web standards to the masses, simplifying the production of FAIR, ontology-ready data." It can be used to specify data schemas that can be used for validating data via formats like JSON-LD and ShEx.

Description The Linked data Modeling Language is an object-oriented data modeling framework aiming to simplify the production of FAIR data. It is intended to be used for schematizing a variety of kinds of data, ranging from simple flat checklist-style standards to complex interrelated normalized data utilizing polymorphism/inheritance.

LinkML structure

LinkML is designed to be aligned with the standards used by modern software developers and database engineers, including JSON files, relational databases, document stores and object models in Python, while providing a semantic web underpinning, mapping all elements to Resource Description Framework (RDF) Uniform Resource Identifiers (URIs). LinkML's formal RDF-based framework aims at abstracting the complexity and allow semantics to "hide in plain sight".

The basic structure is a schema plus associated metadata (including namespace to URI mapping), a set of classes, plus their attributes. Classes follow object-oriented semantics rather than OWL semantics, allowing classes to also be metaclasses, enabling the modeling of design patterns used in some computational ontologies. Each element in the schema can be assigned URIs from existing vocabularies, allowing for increased interoperability. The LinkML schema tries to anchor the meaning of free text strings by establishing identity via resolvable URIs. Technically, the framework allows the models using both open and closed world assumptions, and when operating in a closed world provides ways to validate schema instances and their relations, using modeling paradigms like JSON-Schema and SQL-DDL. The language itself reuses terms from other ontologies, such as the Simple Knowledge Organization System Namespace (SKOS). The formalims allow users to extend or reuse existing object definitions while at the mapping data to existing standards where appropriate (for example, a "gene" object in one LinkML schema can be mapped directly to another LinkML schema's representation of a "gene" via the "skos:exact_match" predicate).

Generators Tooling referred to as LinkML generators can translate from the schema YAML to a growing number of other formats, including JSON-schema, JSON-LD, SQL DDL, ShEx, GraphQL, Python data classes, Markdown and UML diagrams.The LinkML runtime provides loaders and dumpers to convert instances of the schema between these formats.

Use cases LinkML is used in a range of projects in biomedical research, including:

The United States National Microbiome Data Collaborativem for storing data related to microbiome studies. The Center for Cancer Data Harmonization. The NCATS Biomedical Data Translator. The Alliance of Genome Resources. The Monarch Initiative. LinkML also being discussed as a way to model to store microscopy research data in schemas that allow exports in diverse data formats, including JSON-LD and SQL, particularly in the context of the German NFDI4BIOIMAGE. Its usage includes basic research on biocuration and the semantic web, e.g in the context of data integration using Shape Expressions, in the development of standards for mapping ontologies or on integration of LLMs into biocuration practice. The Biolink Model, a schema for knowledge graphs in the clinical and biomedical sciences, is built upon LinkML.

Notes This page contains text in CC-BY 4.0 from Sierra Moxon and colleagues, from the publication The Linked Data Modeling Language (LinkML): A General-Purpose Data Modeling Framework Grounded in Machine-Readable Semantics, in the proceedings of the International Conference on Biomedical Ontologies in 2021.

References

External links Official website Official documentation LinkML registry

Illustrations

LinkML: Overview of the LinkML framework components, including the modelling language, the schemas, the ontology integration and the tooling.[1]
Overview of the LinkML framework components, including the modelling language, the schemas, the ontology integration and the tooling.[1]
LinkML: LinkML's design goals of supporting semantic expressivity and ease of use.
LinkML's design goals of supporting semantic expressivity and ease of use.
LinkML: An overview of the LinkML schema, including the metadata for the file itself, the namespaces used, dependencies on other schemas and the actual model, with links to RDF URIs (here exemplified by schema.org).
An overview of the LinkML schema, including the metadata for the file itself, the namespaces used, dependencies on other schemas and the actual model, with links to RDF URIs (here exemplified by schema.org).

Worked examples

Example 1 — a first encounter with LinkML

Start with the simplest possible case. Write down what LinkML claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to LinkML before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about LinkML ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of LinkML

In research
LinkML appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses LinkML in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
LinkML is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer science, so understanding it makes those chapters shorter.
In everyday life
Look for LinkML outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “LinkML” →

How to study LinkML in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what LinkML means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain LinkML out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is LinkML in simple terms?

The Linked Data Modeling Language, or LinkML, is a data modeling framework based on YAML that aims to "bring semantic web standards to the masses, simplifying the production of FAIR, ontology-ready data." It can be used to specify data schemas that can be used for validating data via formats like J…

Why does LinkML matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study LinkML?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on LinkML.

Tags

  • Computer science

Keep exploring