Skip to main content
Version: Next

Movie Database: Overview

In this tutorial you build a small movie database in EP — entirely by hand, with the admin tools of the user interface. At the end you have:

  • an enum Genre with a fixed list of genres,
  • the entity types Movie and Actor with their properties,
  • the relationship has_cast from a movie to its actors, with the actor's role as a property of the relationship,
  • label scripts, so movies appear as The Matrix (1999) and actors as Keanu Reeves,
  • ten movies and sixteen actors imported from CSV files,
  • a menu group Movie Database in the sidebar,
  • a graph that shows data and model together — movie, actors, entity types, properties and relationship type,
  • a custom overview page for movies, built in the View Designer.

Time: 60–90 minutes. You need: access to the menu Administration, ideally on a test system.

Steps​

StepWhat you doAdmin tool
1. Genre EnumCreate the list of genresEnums, Property Types
2. Entity TypesCreate Actor and Movie with their propertiesEntity Types
3. Cast RelationshipConnect movies and actors, with the roleRelationship Types
4. Label ScriptsShow readable namesScript editor
5. Import DataImport movies and actors from CSVImport Mapper
6. Menu EntryAdd Movies and Actors to the sidebarMenu Builder
7. Explore in the GraphSee data and model together, starting from one movieGraph Browser

An eighth step — a custom overview page in the View Designer — follows.

Sample Data​

Download the sample files now; you need them in step 5:

Names Used in This Tutorial​

Technical names must consist of letters, digits and _ only. Use exactly these names, so the scripts and CSV files fit:

KindTechnical nameLabel
EnumgenreGenre
Entity typeactorActor / Actors
Entity typemovieMovie / Movies
Relationship typehas_castCast
Already exists?

If a name is already taken on your system (for example because a colleague did this tutorial before), add a suffix such as movie_2 — and use it consistently in all steps.