OmniGaggle icon

OmniGaggle is a desktop editor built for one job: drawing entity-relationship diagrams that are correct, readable, and ready to hand in. You take the requirements of a real-world domain and turn them into a conceptual data model on a visual canvas, before you write a single line of SQL.

In a typical diagram drawing tool, you must create every element, including rectangles, diamonds, double lines, and underlines, by hand. OmniGaggle knows Chen and extended Chen notation and greatly simplifies the process of creating an ER diagram. You choose what you mean, such as a primary key, mandatory participation, a weak entity, or a total specialization, and the editor draws the right symbol for you. Your time goes into the modeling decisions, and the notation takes care of itself.

OmniGaggle with a Student entity connected to a Course

  • Draw at the speed you think. Each tool has one key: press E for an entity, A for an association, T for an attribute, and keep going.
  • Say exactly what you mean. The inspector sets names, key types, cardinality, participation, data types, and descriptions for every element.
  • Use the whole notation. Weak entities, specializations, aggregations, domains, and written constraints are all built in.
  • Keep your work safe. Auto-save and rolling backups of your model are built in.
  • Hand in a clean figure. Export a PNG for your report and keep the editable .erd.json file to continue later.
  • Work on your own computer. OmniGaggle runs on macOS, Windows, and Linux.

Download OmniGaggle, then build your first diagram with the exercise at the end of this page.

Running example: Student enrolls in Course

Create the entities Student and Course, then connect them with an association named “enrolls in”. Set its reading direction from Student toward Course. Add student number as an attribute of Student and set its Key type to primary in the properties panel. A primary attribute has a solid underline.

Each end of an association has two independent settings:

  • Cardinality: any means zero or more when considered by itself (N or M); exactly-one means one (1).
  • Participation: mandatory means every instance participates and produces a double line; optional allows instances that do not participate and produces a single line.

On the Student side, choose any and mandatory. Together, these settings mean: each Student enrolls in one or more Courses.

On the Course side, choose any and optional. Together, these settings mean: a Course may have zero or more Students.

Download and open

Download OmniGaggle for your operating system.

Installation

  • macOS: open the disk image and move OmniGaggle to Applications. This universal build supports Intel and Apple silicon and requires macOS 11 or later. If macOS blocks the first launch, right-click OmniGaggle and choose Open. The illustrated steps are in the macOS install guide (PDF).
  • Windows: run the downloaded setup program.
  • Linux: install the .deb package on a 64-bit Debian-based distribution such as Debian or Ubuntu.

Files and shortcuts

Use File, Save to create an editable .erd.json model. Auto-save is available from the File menu. Export a PNG when you need an image for a report or submission.

The main tool keys are V (select and move), E (entity), A (association), S (specialization), T (attribute), D (domain), and C (constraint). Open Help, Keyboard Shortcuts for the complete list. Enable snap to grid when you want to align shapes quickly.

How the marks change this drawing

Weak entities and fixed value sets

Model CourseSection as a weak entity of Course. Set the section number’s Key type to weak-primary to give it a dashed underline. Connect CourseSection to Course with an identifying association and set the diamond type to weak to display a double diamond.

For a fixed set of named values, such as the campuses where a course can be taught, use a fixed value set entity. It appears as a rectangle with rounded corners.

Association and attribute details

Grade belongs to the enrollment itself, so attach it as an attribute of “enrolls in”. A derived attribute, such as age calculated from a birth date, has a dashed oval and may include its formula. A sensitive attribute, such as an identity number, shows a lock. You can also hide an attribute’s oval while keeping it in the model, record a data type such as VARCHAR(255) or DATE, and add a short business description.

Specializations

A specialization is a triangle, and its children inherit the parent’s attributes and associations. Connect Person to Student and Professor. Choose overlapping if one person may be both, and partial if a person may be neither. In a second specialization, connect Student to GradStudent and UndergradStudent. Choose exclusive if a student can belong to at most one subtype, and total if every student must belong to one of them.

Aggregations, domains, and constraints

Suppose an enrollment may require a textbook. Mark “enrolls in” as an aggregation. OmniGaggle draws a dashed box around the association and its connected entities; connect Textbook to that box. This differs from a ternary association, which would include a textbook in every association instance.

A domain is a named visual region for organizing a large diagram. Add a domain named People and place Student inside it. Domains organize the drawing; they do not change the database model.

Use a constraint text box for a rule that the diagram does not express by itself, such as “A student may not enroll twice in the same course.” You can also store a short constraint in an entity’s or attribute’s properties.

First exercise

Recreate the running example:

  1. Add the entities Student and Course.
  2. Add student number to Student and set its Key type to primary.
  3. Add the association “enrolls in” and set its reading direction from Student toward Course.
  4. On the Student side, choose any and mandatory.
  5. On the Course side, choose any and optional.
  6. Check that your diagram says each Student enrolls in one or more Courses, while a Course may have zero or more Students.
  7. Save the editable model as an .erd.json file and export a PNG.