linkml Logo

Contents:

  • LinkML at a glance
  • Quick Install Guide
  • Tutorial
    • Part 1: Creating your first LinkML schema
    • Part 2: Adding a container object
    • Part 3: Adding constraints and performing validation
    • Part 4: Working with RDF
    • Part 5: Using Python dataclasses
    • Part 6: Enumerations
    • Part 7: Slots and inheritance
    • Part 8: Generating Projects
    • Part 9: Working with SQL databases
  • LinkML Schemas
  • Working with Data
  • Generators
  • Examples of use
  • The LinkML Ecosystem
  • LinkML specification
  • FAQ

Developers guide:

  • Developers guide
  • Code
linkml
  • »
  • Tutorial
  • View page source

Tutorial

Contents:

  • Part 1: Creating your first LinkML schema
    • Your first schema
    • Converting to JSON-Schema
    • Creating and validating data
    • Working with JSON
    • Converting to RDF
    • Exercises
    • Collections of data
  • Part 2: Adding a container object
    • Example data file
    • Nesting lists of objects
    • Validating
    • Visualizing
    • Exercises
    • Further reading
    • Next
  • Part 3: Adding constraints and performing validation
    • Example schema
    • Example data
    • Exercises
    • Using the JSON Schema directly
    • Other validation strategies
    • Further reading
  • Part 4: Working with RDF
    • Example schema
    • Adding URIs to our schema
    • JSON-LD contexts
    • Using Shape Languages
    • More Info
  • Part 5: Using Python dataclasses
    • Generating a Python datamodel
    • LinkML runtime
    • Further reading
    • Next
  • Part 6: Enumerations
    • Mapping Enums to vocabularies
    • Use in Python
    • Further reading
  • Part 7: Slots and inheritance
    • Slots and attributes
    • Inheritance
    • Customizing slots in the context of classes: Slot Usage
  • Part 8: Generating Projects
    • Example
    • See Also
  • Part 9: Working with SQL databases
    • Converting LinkML Schemas to DDL
    • Using a SQL database as a backend for data
    • Object Relational Mapping (ORMs)

The tutorial is evolving, some things that will be covered in future versions:

  • Generating schemas from:

    • JSON Schema

    • OWL Ontologies

    • Instance data in JSON, TSV/spreadsheets, RDF

  • SQL databases

  • Using LinkML to organize spreadsheets

  • Change objects and diffs

  • Query APIs

Previous Next

© Copyright 2021, LinkML Authors.

Built with Sphinx using a theme provided by Read the Docs.