-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase
137 lines (124 loc) · 6.02 KB
/
database
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
HOMES:
h1=createNode(graph,"HOME",name="bigboss",address="18th cross,rajivgandhi nagar,bomannahalli,bangalore,India,560068")
h2=createNode(graph,"HOME",name="tim",address="flat no.124,perl of paradise building,bomannahalli,bangalore,India,560068")
h3=createNode(graph,"HOME",name="bijay nivas",address="vill:uparhali,bijoynagar,guwahati,India,781122")
h4=createNode(graph,"HOME",name="bipin bhawan",address="vill:bharoob,daudnagar,patna,India,800001")
h5=createNode(graph,"HOME",name="shanti palace",address="vill:sakurabad,jahanabad,patna,India,800001")
DEVICES:
d1=createNode(graph,"DEVICE",name="car",address="BL-A1-1000")
d2=createNode(graph,"DEVICE",name="bike",address="BL-B1-1000")
d3=createNode(graph,"DEVICE",name="bulb",address="BU1")
d4=createNode(graph,"DEVICE",name="bulb",address="BU2")
d5=createNode(graph,"DEVICE",name="bulb",address="BU3")
d6=createNode(graph,"DEVICE",name="air conditioner",address="AC1")
d7=createNode(graph,"DEVICE",name="fan",address="FA1")
d8=createNode(graph,"DEVICE",name="fan",address="FA2")
d9=createNode(graph,"DEVICE",name="tv",address="TV1")
d10=createNode(graph,"DEVICE",name="washing machine",address="WM1")
d11=createNode(graph,"DEVICE",name="bulb",address="BU4")
d12=createNode(graph,"DEVICE",name="bulb",address="BU5")
d13=createNode(graph,"DEVICE",name="bulb",address="BU6")
d14=createNode(graph,"DEVICE",name="fan",address="FA3")
d15=createNode(graph,"DEVICE",name="fan",address="FA4")
d16=createNode(graph,"DEVICE",name="car",address="BL-A2-1000")
d17=createNode(graph,"DEVICE",name="bike",address="BL-B2-1000")
d18=createNode(graph,"DEVICE",name="bulb",address="BU7")
d19=createNode(graph,"DEVICE",name="bulb",address="BU8")
d20=createNode(graph,"DEVICE",name="fan",address="FA5")
d21=createNode(graph,"DEVICE",name="AC",address="AC2")
d22=createNode(graph,"DEVICE",name="freeze",address="FR1")
d23=createNode(graph,"DEVICE",name="tv",address="TV2")
d24=createNode(graph,"DEVICE",name="bulb",address="BU9")
d25=createNode(graph,"DEVICE",name="fan",address="FA6")
d26=createNode(graph,"DEVICE",name="fan",address="FA7")
d27=createNode(graph,"DEVICE",name="tv",address="TV3")
d28=createNode(graph,"DEVICE",name="freeze",address="FR2")
d29=createNode(graph,"DEVICE",name="bike",address="BL-B3-1000")
d30=createNode(graph,"DEVICE",name="car",address="BL-A3-1000")
d31=createNode(graph,"DEVICE",name="bulb",address="BU10")
d32=createNode(graph,"DEVICE",name="bulb",address="BU11")
d33=createNode(graph,"DEVICE",name="bulb",address="BU12")
d34=createNode(graph,"DEVICE",name="freeze",address="FR3")
d35=createNode(graph,"DEVICE",name="fan",address="FA8")
PERSONS:
sujeet=createNode(graph,"PERSON",name="sujeet pandey",email="[email protected]",mobile="8792179152")
prashant=createNode(graph,"PERSON",name="prashant kumar",email="[email protected]",mobile="8822704628")
avnish=createNode(graph,"PERSON",name="avnish raj",email="[email protected]",mobile="8743526189")
jhoni=createNode(graph,"PERSON",name="jhoni nath",email="[email protected]",mobile="8792134561")
deepak=createNode(graph,"PERSON",name="deepak kumar",email="[email protected]",mobile="8792134560")
rumit=createNode(graph,"PERSON",name="rumit verma",email="[email protected]",mobile="8792179153")
debu =createNode(graph,"PERSON",name="debprata dey",email="[email protected]",mobile="8822704620")
saurav=createNode(graph,"PERSON",name="saurav kant",email="[email protected]",mobile="8743526188")
raju=createNode(graph,"PERSON",name="raju yadav",email="[email protected]",mobile="8792134562")
samim=createNode(graph,"PERSON",name="samim ahmed",email="[email protected]",mobile="8792134563")
sumit=createNode(graph,"PERSON",name="sumit pandey",email="[email protected]",mobile="8792134564")
bijay=createNode(graph,"PERSON",name="bijay pandey",email="[email protected]",mobile="9864273353")
pinki=createNode(graph,"PERSON",name="priyanka pandey",email="[email protected]",mobile="9706643588")
abhay=createNode(graph,"PERSON",name="abhay kumar",email="[email protected]",mobile="9706643580")
john=createNode(graph,"PERSON",name="john wills",email="[email protected]",mobile="9706643543")
Relations:
createRel(d1,"Registered_with",sujeet)
createRel(d1,"Device_of",h1)
createRel(sujeet,"Member",h1)
createRel(d2,"Registered_with",avnish )
createRel(d2,"Device_of",h1)
createRel(prashant,"Owner",h1)
createRel(avnish,"Member",h1)
createRel(d3,"Device_of",h1)
createRel(d4,"Device_of",h1)
createRel(d5,"Device_of",h1)
createRel(d6,"Device_of",h1)
createRel(d7,"Device_of",h1)
createRel(d8,"Device_of",h1)
createRel(d9,"Device_of",h1)
createRel(d10,"Device_of",h1)
createRel(jhoni,"Member",h1)
createRel(deepak,"Member",h1)
createRel(deepak,"Friend",sujeet)
createRel(sujeet,"Friend",prashant)
createRel(prashant,"Friend",jhoni)
createRel(jhoni,"Friend",avnish)
createRel(avnish,"Friend",deepak)
createRel(debu,"Owner",h2)
createRel(rumit,"Member",h2)
createRel(saurav,"Member",h2)
createRel(raju,"Member",h2)
createRel(samim,"Member",h2)
createRel(rumit,"Friend",debu)
createRel(debu,"Friend",saurav)
createRel(saurav,"Friend",raju)
createRel(raju ,"Friend",samim)
createRel(samim,"Friend",rumit)
createRel(d11,"Device_of",h2)
createRel(d12,"Device_of",h2)
createRel(d13,"Device_of",h2)
createRel(d14,"Device_of",h2)
createRel(d15,"Device_of",h2)
createRel(bijay,"Owner",h3)
createRel(sumit,"Member",h3)
createRel(pinki,"Member",h3)
createRel(d16,"Registered_with",bijay)
createRel(d17,"Registered_with",sumit)
createRel(d16,"Device_of",h3)
createRel(d17,"Device_of",h3)
createRel(d18,"Device_of",h3)
createRel(d19,"Device_of",h3)
createRel(d20,"Device_of",h3)
createRel(d21,"Device_of",h3)
createRel(d22,"Device_of",h3)
createRel(d23,"Device_of",h3)
createRel(abhay,"Owner",h4)
createRel(d24,"Device_of",h4)
createRel(d25,"Device_of",h4)
createRel(d26,"Device_of",h4)
createRel(d27,"Device_of",h4)
createRel(d28,"Device_of",h4)
createRel(d29,"Device_of",h4)
createRel(john,"Owner",h5)
createRel(d30,"Registered_with",john)
createRel(d30,"Device_of",h5)
createRel(d31,"Device_of",h5)
createRel(d32,"Device_of",h5)
createRel(d33,"Device_of",h5)
createRel(d34,"Device_of",h5)
createRel(d35,"Device_of",h5)