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
| Step | What you do | Admin tool |
|---|---|---|
| 1. Genre Enum | Create the list of genres | Enums, Property Types |
| 2. Entity Types | Create Actor and Movie with their properties | Entity Types |
| 3. Cast Relationship | Connect movies and actors, with the role | Relationship Types |
| 4. Label Scripts | Show readable names | Script editor |
| 5. Import Data | Import movies and actors from CSV | Import Mapper |
| 6. Menu Entry | Add Movies and Actors to the sidebar | Menu Builder |
| 7. Explore in the Graph | See data and model together, starting from one movie | Graph 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:
- movies.csv — 10 movies
- actors.csv — 16 actors
- cast.csv — who played whom, for linking actors to movies
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:
| Kind | Technical name | Label |
|---|---|---|
| Enum | genre | Genre |
| Entity type | actor | Actor / Actors |
| Entity type | movie | Movie / Movies |
| Relationship type | has_cast | Cast |
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.