Skip to content

Abstract and Virtual Entity

CIRCLES ARROWS LIMITED edited this page Oct 18, 2018 · 1 revision

Creating Entities

Abstract Entity

  1. Insert a new entity and name it as “Base” and add new properties (Uid and Description).
Name Is Key Optional Type Index
Uid True False string Unique
Description False True string None

Insert New Entity

  1. Set the “Base” as an Abstract entity type.

Check Static Data

  1. Remove the Uid property in the "Person", "Movie" and "Genre" entity.

Remove property

Remove property

Remove property

  1. In the properties pane, set the base entity of "Person", "Movie" and "Genre" as "Base".

Set Base Entity

You can now see in the properties pane that "Person", "Movie" and "Genre" inherit the properties from "Base" entity.

Inherits Properties

Inherits Properties

Inherits Properties

You have successfully created an Abstract entity type and used it as a base entity of the other entities.

Virtual Entity

If you don't want to store the "Base" label on the graph database, you can check the "Virtual" to make it as Virtual entity type.

Inherits Properties

Now, you can see that the "Base" entity has changed its color to white displaying as Virtual entity.

Inherits Properties

You have successfully created a Virtual entity type and have used it as a base entity.

Let's take a look at how to create relationships between entities.