Table of Contents |
---|
Info |
---|
Info |
Since version 3.1.0-KickOff, Ontologies have been referred to as "Entities" in the Control Panel. This does not alter any functionality; the nomenclature has simply been changed for a better understanding of the concept. |
Tip |
---|
Available since version 4.2.0 and higher-Predator. |
Table of Contents | ||
---|---|---|
|
User Interface: 5.3.2-Ultimate
Introduction
In this post article we are going to explain how to work with stored entities on Nebula Graph, for the cases in which you want to work with graph-based storage technologies.
Steps
Entity creation
Create the Entity
From the Control Panel, navigate to the Development > My Entities menu.
...
This will take us to the list of available Entities. To create the entity, we will have to select the option 'Create entity in network database'.
...
Entity, click on the "+" button at the top right of the screen.
...
From the different Entities that we will be able to create, we will select the "Creation Entity in Graph Database" one:
...
Fill in general information
In the first tab we will fill in the basic data about the entity, which will represent a space in Nebula Graph, that is, it will contain the definition of the vertices and edges. We will have to choose the number of partitions and replicas for the entity (space) that we are going to create, by default 15 and 1 respectively.
...
If we access the 'view entity' icon (eye) we will be able to see the definition of vertices and edges.
...
Entering data
Once the entity is created, we can execute all types of nGQL queries from query tool.
...
With this we will now have data to perform queries.
Queries
As we have said before, we can make any type of query in nGQL format, let's see some examples:
...
Code Block |
---|
GO FROM "player101" OVER follow YIELD dst(edge) AS id | GO FROM $-.id OVER serve YIELD properties($$).name AS Team, properties($^).name AS Player; |
...
Apification
We can also apify the entity to perform queries via HTTP.
When we select a network type entity to qualify, only one operation will be available.
...
Nebula Graph UI
From the entity list, when an entity is stored in Nebula Graph, you will have an option to access the Nebula UI.
...