Create your first domain

This how-to walks you through the minimum steps required to define a domain before creating Views.

A domain lets you define business concepts (entities, attributes, relations) directly inside Sirius Web. Everything happens inside the browser—there is no code generation step, no external Eclipse install, and the resulting domain is immediately usable by the View editor and by end users who create instances. The domain targets tree-structured models (each element has at most one container), which map naturally to explorer trees, forms, and diagrams.

1. Steps

  1. Create a studio project

    1. Navigate to the Project Browser on the homepage and create a new Studio project dedicated to your DSL.

    2. Give it a meaningful name.

  2. Add a Domain model

    1. Create a new Domain model inside the studio project.

    2. Populate the domain with the main entities of your DSL (for example Database, Table, Column).

    3. Use the Explorer or the optional diagram view to add attributes and relations.

  3. Configure attributes

    1. Pick a name for the attribute.

    2. Choose the base type (string, integer, boolean…​).

    3. Indicate if the attribute is optional.

  4. Configure relations

    1. Pick a name for the relation.

    2. Decide whether the relation is containment (the element becomes a child in the project tree) or a plain reference.

    3. Indicate the multiplicity of the relation (one or many)

  5. Iterate quickly

    1. To test your changes, close any open instance projects and reopen them; Sirius Web reloads the latest domain automatically.

    2. Create sample instances inside a test project to ensure the domain constrains data exactly as expected.

For a detailed presentation of the Domain editor capabilities, see Domain.