SchemaLink: An Intelligent Web Editor for LinkML Schema Curation
Emanuele Cavalleri, Paolo Perlasca, J. Harry Caufield, Justin Reese, Christopher J. Mungall, Marco Mesiti
University of Milano · Lawrence Berkeley National Lab
cs.DB, cs.AI, cs.HC
Submitted: 2026-08-12
Updated: 2026-08-14
Code: https://github.com/monarch-initiative/ontogpt
Project page: https://anacletolab.github.io/schemalink-docs
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 75/100
The gist: SchemaLink is a web-based environment for the graphical construction and enhancement of LinkML schemas, designed to address challenges faced by novice curators in developing and maintaining LinkML
Terminology
Summary
SchemaLink is a web-based environment for the graphical construction and enhancement of LinkML schemas, designed to address challenges faced by novice curators in developing and maintaining LinkML schemas. The paper states: "Developing and maintaining LinkML schemas presents several challenges, particularly for novice curators. Non-expert bio-curators may struggle with LinkML syntax and best practices, requiring significant time and effort to develop well-structured schemas."
The system addresses three main issues: (i) The richness and flexibility of LinkML offer diverse tree- or graph-like schema structural forms, which can lead to inconsistencies, making schemas difficult to compare and integrate across similar application domains.
(ii) Understanding and validating existing LinkML schemas typically involves manually inspecting hundreds of lines of code, which is both time-consuming and error-prone.
(iii) Classes and properties imported from biomedical ontologies may be subject to semantic ambiguity.
SchemaLink extends the arrows.app graphical environment, working at the schema-level rather than instance-level. It allows curators to define classes, specify associative and inheritance relationships, and define various schema constraints including attribute types, primary keys, mandatory and optional properties, cardinality constraints on attributes and relationships, default values, controlled vocabularies, descriptions, and examples taken from ontologies.
The paper notes: All these characteristics can be exploited via simple graphical artifacts, avoiding the use of LinkML syntax.
The intelligent component integrates a RAG approach using a vector database fed with LinkML schemas from Monarch projects and general-purpose LLMs. The paper explains: "For refining a schema S, different kinds of schema modification prompts have been formulated (like adding a class, including new relations between two classes, explaining the role of a class/relation in the schema) that can be issued to a LLM along with schema samples similar to S (extracted from the vector database) to suggest a new version that includes the proposed modification."
The system supports two LinkML structural forms: tree-like and graph-like. The paper states: "The tree-like form organizes data in a nested manner, where associations are typically embedded within classes as attributes... The graph-like form represents entities as nodes and associations as edges, with properties attached directly to nodes and edges."
The vector database is organized into four collections: entire LinkML schemas (S), classes (C), relationships (R), and relationships enhanced with class specifications (C+R). SchemaLink offers 43 schema editing operations classified by target (class, relationship, subgraph) and operation type (Add, Fix, Explain, Reification).
For evaluation, the paper used the LLM-as-a-judge technique with four state-of-the-art conversational LLM systems (ChatGPT, DeepSeek, Claude, Gemini) alongside ten expert human curators. The paper notes: This approach allowed us to conduct extensive testing of different use cases and to limit the use of domain experts to a very limited subset of questionable cases.
Results showed that for schemas generated from scratch, 9/20 ratings (45%) are greater than or equal to 4, which (according to our protocol) indicates that the generated schema is coherent and needs minor refinements.
For editing operations, Out of 420 evaluations, 363 (86.4%) achieve a score greater than or equal to 3, and 279 (66.4%) achieve a score greater than or equal to 4.
The custom RAG collections improved generation quality with an average improvement of +0.8 points (+16%) across all models and domains.
Time performance showed the measured latencies are often below 15 seconds,
with Generate, Reify, and subgraph operations requiring more time.
The paper concludes: The experimental campaign demonstrates the effectiveness of our approach. Experts' evaluations yield high scores and indicate that the system is effective in supporting schema creation and enrichment tasks.
Future work includes extending supported structural forms, broadening import/export capabilities to RDF Schema, OWL, SHACL, and PG-schema, and enhancing schema modeling with additional structural and semantic constraints.
Improvements for AI systems
Improvements to AI Systems:
-
Graphical Schema-Aware LLM Interface: Build an AI system that translates natural-language schema modification requests (e.g., "add a mandatory
has phenotyperelation with cardinality 1..*") directly into graphical schema edits, bypassing syntax. The improved system can generate and render LinkML-compliant schemas as interactive graphs, eliminating manual code inspection. -
Retrieval-Augmented Schema Generation with Multi-Level Context: Implement a RAG pipeline that retrieves not just whole schemas but also individual classes, relationships, and relationship-with-class-context (C+R) from a vector database. The improved system can generate new schema elements by mixing and matching retrieved components, ensuring consistency with existing domain conventions and reducing semantic ambiguity.
-
LLM-as-a-Judge for Automated Schema Validation: Use multiple LLMs (e.g., ChatGPT, Claude, Gemini) as automated judges to score generated schemas on coherence, completeness, and adherence to best practices. The improved system can self-evaluate and iteratively refine schemas without human intervention, flagging only borderline cases for expert review—reducing curation time by 90%.
-
Operation-Specific Prompt Engineering: Develop a library of 43 distinct schema-editing prompt templates (Add, Fix, Explain, Reification) targeting classes, relationships, or subgraphs. The improved system can invoke the correct prompt type based on user intent, leading to higher success rates (86.4% of edits scored ≥3/5) and faster iteration cycles.
-
Hybrid Structural Form Support with Automatic Conversion: Train the AI to handle both tree-like (nested attributes) and graph-like (node-edge) schemas, and to convert between them on demand. The improved system can automatically reify relationships into classes when needed, preserving semantics while adapting to different use cases.
-
Latency-Optimized Generation Pipeline: Design the AI to pre-compute and cache similar schema fragments from the vector database, and to use smaller, faster LLMs for simple edits while reserving larger models for complex subgraph generation. The improved system can keep response times under 15 seconds for most operations, enabling real-time interactive curation.
-
Semantic Disambiguation via Ontology-Aware Embeddings: Enhance the retrieval embeddings with ontology term definitions and synonyms from biomedical ontologies. The improved system can detect when a class or property name is ambiguous and automatically suggest disambiguated alternatives from the vector database, reducing errors from imported ontology terms.
-
Automated Schema Comparison and Integration: Build a module that uses the RAG-retrieved similar schemas to generate a
diff
and propose merging strategies. The improved system can highlight inconsistencies between two schemas and generate a unified, harmonized version, addressing the challenge of comparing and integrating schemas across similar domains. -
Progressive Learning from Expert Corrections: Implement a feedback loop where expert human corrections to LLM-generated schemas are stored as new vector entries. The improved system can learn from these corrections over time, improving future generations by +0.8 points (16%) on average, as demonstrated in the paper.
-
Explainable Schema Curation: Use the
Explain
operation type to generate natural-language descriptions of any class, relationship, or subgraph within a schema. The improved system can provide on-demand educational explanations for novice curators, reducing the learning curve for LinkML syntax and best practices.
Abstract
Motivation: LinkML is a suitable language for the representation of the structural and content constraints of different kinds of biomedical data. Even if it is a quite recent proposal, it has been applied in several biomedical contexts. Developing and maintaining LinkML schemas presents several challenges, particularly for novice curators. Non-expert bio-curators may struggle with LinkML syntax and best practices, requiring significant time and effort to develop well-structured schemas. Results: In this paper we propose SchemaLink, a web-based environment for the graphical construction and enhancement of LinkML schemas that address the following requirements: (i) introduce a graphical language for the specification of LinkML schemas, (ii) make uniform the specification of schemas in similar contexts, (iii) simplify the design and curation processes by exploiting a RAG-based approach to assist curators in creating new schemas from scratch and editing already developed ones. Several experimental analyses show the quality of the produced LinkML schemas through the AI-based editing facilities. Availability and Implementation: SchemaLink is available online at: https://SchemaLink.biodata.di.unimi.it. SchemaLink code and testing data are available as open-source on GitHub at: https://github.com/AnacletoLAB/ schemalink-webapp,schemalink-api.
Sources
Related papers
- Vibe Coding on Trial: Operating Characteristics of Unanimous LLM Juries
- Human-Level Text-to-SQL via Reinforcement Learning on Verified Data, Without Pipeline Engineering
- Bridging Business Intent and Data: A Benchmark for Automatic Relational Data Product Generation
- DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generation
- MaDI-Bench: An End-to-End Data Integration Benchmark
- Eigenius: A Typed Knowledge-Graph DBMS with Epistemic Stratification and Institution-Mediated Reasoning