Skip to content

Model and Entity

CIRCLES ARROWS LIMITED edited this page Aug 6, 2019 · 17 revisions

What is a Model and Entity?

In the graph database, data is presented as nodes and can have labels on it.

Labels represent as roles of the data in the database.

Nodes can contain properties and can have relationships to the other nodes.

Graph Database image from www.neo4j.com

When defining the database in the Graph Modeller, a Model represents the database schema and Entity represents as labels of the nodes.

Person Model

The Graph Modeller helps you maintain the models explicitly in a metadata format.

Types of Model

  • Main Model - contains all the entities and relationships
  • Sub-Model - is used to limit the display of the entities and relationships for a specific domain requirements

Types of Entity

  • Normal Entity - it is the basic entity and can't be used as a base entity
  • Abstract Entity - it can be used as a base entity
  • Virtual Entity - it can be used as a base entity but can't be stored in the graph database
  • StaticData Entity - it can't be used as a base entity but can contain static data

Now, we're ready to get started with Graph Modeller.