Skip to content

Introduction

This is NOT the official GA4GH Phenopackets schema. For the true phenopackets see http://phenopackets.org/

About

This is a LinkML rendering of the Phenopackets schema. It demonstrates what the LinkML tooling adds to the Protobuf source: additional validation, Python classes, and conversion to and from RDF.

The schema corresponds to release 2.0.0 of phenopacket-schema. It is not edited by hand: a script converts the protobuf files of that release. The README of the repository describes how to generate it again, and lists the differences from protobuf.

Only the enumerations of ontology terms, such as HPOAbnormalityTerms, are curated by hand, in cv_terms.yaml.

On this site

  • The index lists the classes, slots, enumerations and types of the schema. These pages are generated from the schema.
  • The schema diagram shows all classes and the relationships between them.
  • The notebooks show how to validate a phenopacket, how to use the Pydantic classes, how to check and repair ontology terms using OAK, and how to generate RDF.

Generated artefacts

The following are generated from the schema, and are kept in the repository:

  • Python dataclasses and Pydantic classes
  • JSON-Schema
  • GraphQL
  • JSON-LD context
  • a spreadsheet of the classes and their attributes