Skip to content

Browse Entity

VinceZK edited this page Jul 19, 2020 · 6 revisions

Once you have your entity modeled, you can use Entity Browser tool to maintain your entity instances.

Search & List

Access http://localhost:3000/entity/list, you can search and list existing entity instances. You need first select an Entity, and then choose one of its Relation. Then you can pick up attributes to compose your search criteria. The result is given based on the Relation definition. Instance Search and List

Instance Detail

Let's check the detail of the first person by clicking the link of 'ENTITY_UUID'. The information is organized by Relations and Relationships. If the Relation has cardinality '[0..1]' or '[1..1]', it is shown as a form. If the Relation has cardinality '[0..n]' or '[1..n]', it is shown as a table. Person Instance

In the Relationship blocks, you can check the detail of relationship by hitting the glass icon. A dialog will popup which shows the validity, the partner instance(s), and relationship attributes. Person Instance Relationship

Create a New Instance

In the instance detail page, you can create, change, delete, and copy the instances. When you create a new instance, you have to make sure some entity relation attributes are given proper values. For example, you need to give values to the GENDER and TYPE attributes for a person, otherwise, the attribute-driven roles are disabled. After you assign the values, click the button 'Refresh Roles' in the upper-right of the entity relation block, the attribute-driven roles are then enabled. Create a New Instance

In the bottom-left of the detail page, there is a button 'Add Relationship'. By clicking this button, a dialog will popup to let you first pick up a role and a relationship. After you confirmed the dialog, you can then assign partner instances in the detail page. Add a Relationship Instance