New ACM paper, free-tier cloud, and open-source license

Lesson 9: Modeling schemas

In this lesson, we’ll learn how to design TypeDB schemas using the conceptual PERA data model. We’ll start with an overview of the PERA model and see how it is implemented by TypeDB and TypeQL. We’ll then work through the design of a small part of the bookstore schema and cover major design decisions like choosing object types, using type hierarchies, and using interface hierarchies. We’ll also see how we can avoid some specific problems like data redundancies, inheritance overuse, and interface redundancies.

  • You should complete Lesson 7 before starting this lesson.

Lesson contents

Learn about the basic building blocks of TypeDB’s polymorphic data model.

Learn how to effectively choose entity and relation types.

Learn how to prevent redundant and inconsistent data.

Learn how to effectively arrange types into hierarchies.

Learn when not to use type hierarchies in data models.

Learn how to effectively use ownerships and roles in schemas.

Learn how to build schemas that maximise interface polymorphism.

Provide Feedback