Skip to content

LinkML Visual Schema Editor — User Guide ​

A graphical tool for creating and editing LinkML schemas without hand-editing YAML.


Getting Started ​

Open the app in your browser at http://localhost:5173 (run pnpm dev) or use the live demo. A demo schema loads automatically so you can explore before creating your own.


Interface Overview ​

┌─────────────────────────────────────────────────────────────────┐
│  ⬡ LinkML Visual Schema Editor          [Validate] [Git] [⚙]   │  ← Header
├──────────────┬──────────────────────────────┬────────┬──────────┤
│              │   [Focus Mode Toolbar]        │        │          │
│   Project    │                              │ Props  │  YAML    │
│   Panel      │         Canvas               │ Panel  │ Preview  │
│              │                              │        │          │
├──────────────┴──────────────────────────────┴────────┴──────────┤
│  [Validation Panel] [Git Panel]                                 │  ← Bottom panels
├─────────────────────────────────────────────────────────────────┤
│  personinfo.yaml · 2 class(es) · 1 enum(s)    [keyboard hints] │  ← Status bar
└─────────────────────────────────────────────────────────────────┘

Panels ​

PanelLocationPurpose
Project PanelLeft sidebarNavigate between schemas in a project; switch active schema
CanvasCenterVisual ERD diagram of your schema — drag, zoom, connect nodes
Properties PanelRight sidebarEdit the selected class, slot, or enum
YAML PreviewFar rightLive read-only view of the YAML being generated
Validation PanelBottom (toggle)Errors and warnings from schema validation
Git PanelBottom (toggle)Stage, commit, and push changes when Git is available

Working with the Canvas ​

ActionHow
PanClick and drag on empty canvas space
ZoomScroll wheel or pinch
Fit all nodes in viewPress F
Select a nodeClick it
Select multiple nodesShift-click or drag a selection box

Adding Nodes ​

  • Right-click anywhere on the canvas to open the context menu.
  • Choose Add Class or Add Enum.

Connecting Classes ​

  • Hover over a class node — connection handles (small dots) appear on its edges.
  • Drag from a handle on one class to a handle on another to create an is_a (inheritance) relationship.

Deleting Nodes or Edges ​

  • Select a node or edge, then press Delete (or Backspace).

Undo / Redo ​

  • Ctrl+Z / Cmd+Z — undo
  • Ctrl+Y / Cmd+Shift+Z — redo

Editing Schema Elements ​

Classes ​

Click a class node to select it. The Properties Panel on the right shows:

  • Name and Description
  • is_a — parent class (inheritance)
  • Mixins — list of mixin classes to apply
  • Abstract / Mixin flags
  • Attributes/Slots — add, rename, delete, and configure each slot's range, cardinality, and identifiers

Enumerations ​

Click an enum node. The Properties Panel shows:

  • Name and Description
  • Permissible values — add or remove values, set meaning URIs

Schema Settings ​

Click ⚙ Schema Settings in the header to edit the active schema's top-level metadata:

  • Schema name, title, and description
  • Default prefix and URI
  • Additional prefixes
  • Imports list

Projects and Multi-Schema Support ​

A project is a collection of related schema files sharing a namespace hierarchy.

  • The Project Panel on the left lists all schemas in the current project.
  • Click a schema name to switch to it.
  • One schema can import another — imported classes appear as read-only references.

Focus Modes ​

The Focus Mode Toolbar (above the canvas) lets you isolate a subset of the schema:

  • No Focus — show all classes and enums
  • Class Focus — show only the selected class and its direct relationships
  • Subset Focus — show only elements tagged with a specific LinkML subset

Use focus modes when working on large schemas to reduce visual clutter.


Importing and Exporting YAML ​

Import (load an existing schema) ​

Use the Project Panel or the platform file dialog (varies by browser/desktop) to open an existing .yaml or .yml LinkML schema file.

Export (save your work) ​

  • Click ⚙ Schema Settings → Export (or use the keyboard shortcut shown in the status bar).
  • The YAML Preview panel always shows the exact YAML that will be saved.
  • The status bar shows ● unsaved changes when there are edits not yet written to disk.

Git Integration ​

When Git is available (Electron desktop, or a browser with OPFS support), the Git Panel provides:

  • Status — staged, unstaged, and untracked files
  • Stage / Unstage files
  • Commit — write a commit message and commit staged changes
  • Push — push to the configured remote (prompts for credentials if needed)

Note: Git features require a Git repository to be initialised in the project directory (git init).


Validation ​

Click ✓ Validate in the header to open the Validation Panel. It checks your schema for:

  • Missing required fields (e.g. a slot with no range)
  • Invalid references (e.g. is_a pointing to a class that doesn't exist)
  • Structural issues (circular inheritance, duplicate identifiers)

Errors appear in red; warnings appear in yellow. The status bar also summarises the error/warning counts.


Keyboard Shortcuts ​

KeyAction
FFit all nodes in view
Delete / BackspaceDelete selected node or edge
Ctrl+Z / Cmd+ZUndo
Ctrl+Y / Cmd+Shift+ZRedo
Right-click canvasOpen context menu (add class/enum)