-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathldbc-snb-ontology.gql
More file actions
218 lines (189 loc) · 5.65 KB
/
Copy pathldbc-snb-ontology.gql
File metadata and controls
218 lines (189 loc) · 5.65 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
insert
#string, long, double, boolean
# some generic resources
id "name" isa resource-type datatype string;
id "title" isa resource-type datatype string;
id "creation-date" isa resource-type datatype string;
id "browser-used" isa resource-type datatype string;
id "location-ip" isa resource-type datatype string;
# some basic entity-type with resource name
id "place" isa entity-type
has-resource name;
id "organization" isa entity-type
has-resource name;
id "language" isa entity-type
has-resource name;
id "tag" isa entity-type
has-resource name;
id "category" isa entity-type
has-resource name;
# relation resides
id "location" isa role-type is-abstract;
place plays-role location;
id "subject-location" ako location;
id "located-subject" isa role-type;
id "resides" isa relation-type
has-role subject-location
has-role located-subject;
person plays-role located-subject;
message plays-role located-subject;
organization plays-role located-subject;
# place and relation sublocate
id "continent" ako place;
id "country" ako place;
id "city" ako place;
id "member-location" ako location;
id "container-location" ako location;
id "sublocate" isa relation-type
has-role member-location
has-role container-location;
# organization
id "university" ako organization;
id "company" ako organization;
# language
id "speaker" isa role-type;
id "language-spoken" isa role-type;
id "speaks" isa relation-type
has-role speaker
has-role language-spoken;
person plays-role speaker;
language plays-role language-spoken;
id "post-with-language" isa role-type;
id "language-written" isa role-type;
id "written-in" isa relation-type
has-role post-with-language
has-role language-written;
post plays-role post-with-language;
language plays-role language-written;
# person
id "firstname" isa resource-type datatype string;
id "lastname" isa resource-type datatype string;
id "gender" isa resource-type datatype string;
id "birthday" isa resource-type datatype string;
id "email" isa resource-type datatype string;
id "age" isa resource-type datatype long;
id "person" isa entity-type
has-resource firstname
has-resource lastname
has-resource gender
has-resource birthday
has-resource email
has-resource age
has-resource creation-date
has-resource browser-used
has-resource location-ip;
id "acquaintance" isa role-type is-abstract;
id "acquaintance1" ako acquaintance;
id "acquaintance2" ako acquaintance;
id "knows" isa relation-type
has-role acquaintance1
has-role acquaintance2
has-resource creation-date;
person plays-role acquaintance;
# relation attends
id "student" isa role-type;
id "enrolled-university" isa role-type;
id "class-year" isa resource-type datatype string;
id "attends" isa relation-type
has-role student
has-role enrolled-university
has-resource class-year;
person plays-role student;
university plays-role enrolled-university;
# relation employment
id "employee" isa role-type;
id "employer" isa role-type;
id "employment-startdate" isa resource-type datatype string;
id "employment" isa relation-type
has-role employee
has-role employer
has-resource employment-startdate;
person plays-role employee;
company plays-role employer;
# message
"content" isa resource-type datatype string;
"length" isa resource-type datatype string;
id "message" isa entity-type is-abstract
has-resource creation-date
has-resource browser-used
has-resource location-ip
has-resource content
has-resource length;
# relation likes
id "liked" isa role-type;
id "liker" isa role-type;
id "likes" isa relation-type
has-role liked
has-role liker
has-resource creation-date;
message plays-role liked;
person plays-role liker;
# relation writes
id "written" isa role-type;
id "writer" isa role-type;
id "writes" isa relation-type
has-role written
has-role writer;
message plays-role written;
person plays-role writer;
id "comment" ako message;
id "reply-owner" isa role-type;
id "reply-content" isa role-type;
id "reply" isa relation-type
has-role reply-content
has-role reply-owner;
comment plays-role reply-content;
message plays-role reply-owner;
"image-file" isa resource-type datatype string;
id "post" ako message has-resource image-file;
# forum
id "forum" isa entity-type
has-resource title
has-resource creation-date;
id "moderator" isa role-type;
id "moderated" isa role-type;
id "moderates" isa relation-type
has-role moderator
has-role moderated;
person plays-role moderator;
forum plays-role moderated;
id "forum-member" isa role-type;
id "membered-forum" isa role-type;
id "membership" isa relation-type
has-role forum-member
has-role membered-forum
has-resource creation-date;
person plays-role forum-member;
forum plays-role membered-forum;
id "post-container" isa role-type;
id "contained-post" isa role-type;
id "containing" isa relation-type
has-role post-container
has-role contained-post;
post plays-role contained-post;
forum plays-role post-container;
# tag
id "subject-tag" isa role-type;
id "tagged-subject" isa role-type;
id "tagging" isa relation-type
has-role tagged-subject
has-role subject-tag;
tag plays-role subject-tag;
forum plays-role tagged-subject;
message plays-role tagged-subject;
person plays-role tagged-subject;
# tag class
id "group" isa role-type is-abstract;
id "subgroup" ako group;
id "supergroup" ako group;
id "subgrouping" isa relation-type
has-role subgroup
has-role supergroup;
category plays-role group;
id "grouped-tag" isa role-type;
id "tag-group" isa role-type;
id "grouping" isa relation-type
has-role grouped-tag
has-role tag-group;
tag plays-role grouped-tag;
category plays-role tag-group