1
00:00:00,000 --> 00:00:01,000
Hello guys.

2
00:00:01,000 --> 00:00:08,000
So in this section of the video we are going to discuss about Neo4j's property Graph data model.

3
00:00:08,000 --> 00:00:12,000
Now this Neo4j's graph database

4
00:00:14,000 --> 00:00:26,000
uses something called as property graph model property graph model.

5
00:00:27,000 --> 00:00:34,000
And this model is specifically used to store.

6
00:00:36,000 --> 00:00:39,000
And manage data.

7
00:00:41,000 --> 00:00:41,000
Okay.

8
00:00:42,000 --> 00:00:46,000
So we'll get an idea about it as we go ahead as we proceed okay.

9
00:00:47,000 --> 00:00:48,000
Now this is very much important.

10
00:00:48,000 --> 00:00:51,000
What exactly is property graph model.

11
00:00:51,000 --> 00:00:56,000
Now this model represents three main important thing.

12
00:00:56,000 --> 00:00:59,000
One is nodes.

13
00:01:00,000 --> 00:01:03,000
Second one is something called as relationships.

14
00:01:06,000 --> 00:01:09,000
And the third is nothing.

15
00:01:09,000 --> 00:01:12,000
But let me write it in another color so it looks good.

16
00:01:12,000 --> 00:01:14,000
So the first is nothing.

17
00:01:14,000 --> 00:01:17,000
But over here I will go ahead and write.

18
00:01:17,000 --> 00:01:18,000
It is nothing but nodes.

19
00:01:18,000 --> 00:01:18,000
notes.

20
00:01:20,000 --> 00:01:24,000
Second is relationships.

21
00:01:27,000 --> 00:01:33,000
Third is something called as properties.

22
00:01:34,000 --> 00:01:43,000
So this property graph model or this model represents the data, the entire data, whatever data you

23
00:01:43,000 --> 00:01:51,000
have right over here in this three important in in in in specifically this three important things that

24
00:01:51,000 --> 00:01:53,000
is nodes relationships and properties.

25
00:01:54,000 --> 00:01:57,000
Properties are just like rows and records.

26
00:01:57,000 --> 00:02:00,000
So this will specifically be having key value pairs.

27
00:02:01,000 --> 00:02:02,000
Okay.

28
00:02:02,000 --> 00:02:04,000
It will be having key value pairs.

29
00:02:05,000 --> 00:02:11,000
And one more thing that you really need to understand when we talk about this relationship.

30
00:02:11,000 --> 00:02:15,000
This is both uni directional.

31
00:02:17,000 --> 00:02:21,000
And bi directional.

32
00:02:22,000 --> 00:02:27,000
So whenever we go ahead and create any kind of relationship, you can actually create it in the form

33
00:02:27,000 --> 00:02:28,000
of uni directional.

34
00:02:28,000 --> 00:02:33,000
And you can also create it in the form of bi directional okay.

35
00:02:33,000 --> 00:02:35,000
And every relationship okay.

36
00:02:35,000 --> 00:02:37,000
Every relationship.

37
00:02:37,000 --> 00:02:41,000
See if I probably consider this relationship, let's say this is my node one.

38
00:02:41,000 --> 00:02:43,000
This is my node two.

39
00:02:43,000 --> 00:02:44,000
Right.

40
00:02:44,000 --> 00:02:46,000
So let's go ahead and write node one.

41
00:02:47,000 --> 00:02:49,000
Node two okay.

42
00:02:49,000 --> 00:02:55,000
Now with respect to this node one and node two, whenever we create any relationship let's say this

43
00:02:55,000 --> 00:02:57,000
is having a relationship of this.

44
00:02:57,000 --> 00:03:00,000
Let's say node one is the parent.

45
00:03:01,000 --> 00:03:04,000
Or I can go ahead and write node one is the parent of node two.

46
00:03:04,000 --> 00:03:07,000
Right now in this relationship.

47
00:03:07,000 --> 00:03:12,000
This node one is just like your start node.

48
00:03:14,000 --> 00:03:20,000
And if I probably consider this node two, it is nothing but it is my two node.

49
00:03:20,000 --> 00:03:25,000
Or it can we can also say two or uh end node.

50
00:03:25,000 --> 00:03:26,000
Okay.

51
00:03:26,000 --> 00:03:29,000
Since we are basically going to write this right.

52
00:03:30,000 --> 00:03:32,000
See this is this is also called a start node.

53
00:03:32,000 --> 00:03:36,000
It can also be called as something called as from node okay.

54
00:03:36,000 --> 00:03:38,000
This can also be called as two node.

55
00:03:39,000 --> 00:03:43,000
So this is really important for you all to understand okay.

56
00:03:43,000 --> 00:03:48,000
But if I probably consider the entire graph DB data model.

57
00:03:48,000 --> 00:03:56,000
So if I probably consider graph DB data model.

58
00:03:57,000 --> 00:03:57,000
Okay.

59
00:03:58,000 --> 00:04:03,000
Here there are three important blocks okay.

60
00:04:03,000 --> 00:04:05,000
One is nodes.

61
00:04:06,000 --> 00:04:09,000
One is relationship.

62
00:04:10,000 --> 00:04:14,000
And the third one is something called as properties.

63
00:04:15,000 --> 00:04:15,000
Okay.

64
00:04:16,000 --> 00:04:20,000
As I said, uh, I've given you multiple examples over here.

65
00:04:20,000 --> 00:04:22,000
So let's say this is one of my node.

66
00:04:22,000 --> 00:04:24,000
This is my another node.

67
00:04:24,000 --> 00:04:26,000
This is my third node.

68
00:04:26,000 --> 00:04:26,000
Okay.

69
00:04:27,000 --> 00:04:30,000
Here, uh, I will go ahead and take one movie.

70
00:04:30,000 --> 00:04:31,000
Right.

71
00:04:31,000 --> 00:04:33,000
So let's say Avenger okay.

72
00:04:34,000 --> 00:04:38,000
So let's say Avenger and Tony Stark okay.

73
00:04:38,000 --> 00:04:41,000
So I will say hey Tony Stark.

74
00:04:42,000 --> 00:04:45,000
Tony Stark was an actor in Avenger, right?

75
00:04:45,000 --> 00:04:47,000
So this is one kind of relationship.

76
00:04:48,000 --> 00:04:48,000
Okay.

77
00:04:49,000 --> 00:04:53,000
Um, like, Tony Stark was an actor in Avenger.

78
00:04:53,000 --> 00:04:56,000
They can be another movie where Tony Stark was again an actor.

79
00:04:56,000 --> 00:04:57,000
Right here.

80
00:04:57,000 --> 00:04:59,000
I guess he was a villain.

81
00:04:59,000 --> 00:05:00,000
I'm just putting.

82
00:05:00,000 --> 00:05:00,000
Okay.

83
00:05:00,000 --> 00:05:04,000
There was a villain relationship with respect to one of the movie.

84
00:05:04,000 --> 00:05:06,000
This movie can be any other movie, right?

85
00:05:06,000 --> 00:05:07,000
Movie two.

86
00:05:07,000 --> 00:05:12,000
So this way you'll be able to see at any point of time this pink color node.

87
00:05:12,000 --> 00:05:15,000
This pink color circle is basically called as node.

88
00:05:15,000 --> 00:05:17,000
This is called as relationship.

89
00:05:18,000 --> 00:05:20,000
Relationship.

90
00:05:20,000 --> 00:05:20,000
Right.

91
00:05:21,000 --> 00:05:27,000
This actor is basically a kind of uh, you can just consider that it is a kind of property, but we

92
00:05:27,000 --> 00:05:31,000
can define this property in key value pairs also, which I will probably be showing you.

93
00:05:31,000 --> 00:05:32,000
Right.

94
00:05:32,000 --> 00:05:41,000
So, uh, this is what is entirely, uh, you know, the understanding of the graph, uh, node go for

95
00:05:41,000 --> 00:05:44,000
sorry Neo4j's property graph data model.

96
00:05:44,000 --> 00:05:45,000
And again, uh, I said you right.

97
00:05:45,000 --> 00:05:47,000
This can be bidirectional.

98
00:05:47,000 --> 00:05:49,000
Also it can be a relationship.

99
00:05:49,000 --> 00:05:50,000
It can be unidirectional.

100
00:05:50,000 --> 00:05:51,000
It can be bidirectional.

101
00:05:51,000 --> 00:05:51,000
Okay.

102
00:05:52,000 --> 00:05:57,000
So like this, uh, if we have an entire NLP text data, right.

103
00:05:57,000 --> 00:06:02,000
Just imagine an NLP text data then just by using.

104
00:06:02,000 --> 00:06:06,000
And this internally uses something called as graph neural network.

105
00:06:07,000 --> 00:06:14,000
With the help of this graph neural network we will be able to create this right now from where we will

106
00:06:14,000 --> 00:06:15,000
be getting this graph neural network.

107
00:06:15,000 --> 00:06:17,000
For this we will be using link chain.

108
00:06:17,000 --> 00:06:18,000
Okay.

109
00:06:18,000 --> 00:06:26,000
Um again, Lang Chin has a good graph DB functionalities which will be able to take that particular

110
00:06:26,000 --> 00:06:26,000
text data.

111
00:06:26,000 --> 00:06:31,000
And uh, we will be able to convert this entire into this particular nodes.

112
00:06:31,000 --> 00:06:32,000
Okay.

113
00:06:32,000 --> 00:06:33,000
But for that again we right.

114
00:06:33,000 --> 00:06:35,000
We need to write Cypher query.

115
00:06:35,000 --> 00:06:39,000
But if you just directly want to convert it with the help of model we can use a graph neural network.

116
00:06:39,000 --> 00:06:45,000
And I think graph neural network uh functionalities this also you can probably go ahead and train it

117
00:06:45,000 --> 00:06:46,000
from completely scratch.

118
00:06:46,000 --> 00:06:51,000
But right now we'll focus more on to the long chain, uh, which has features to convert this particular

119
00:06:51,000 --> 00:06:54,000
data insert into a graph DB database itself.

120
00:06:54,000 --> 00:06:55,000
So yeah.

121
00:06:55,000 --> 00:06:59,000
Uh, this was all about graph data model.

122
00:06:59,000 --> 00:07:04,000
Now, uh, in the next section of the video, we will go ahead and do some variety of practicals and

123
00:07:04,000 --> 00:07:08,000
we'll try to insert some data in our Neo4j's RDB.

124
00:07:08,000 --> 00:07:09,000
So yes, this was it.

125
00:07:09,000 --> 00:07:10,000
I will see you all in the next video.

