This repository was archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonto.ttl
More file actions
401 lines (324 loc) · 8.98 KB
/
onto.ttl
File metadata and controls
401 lines (324 loc) · 8.98 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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
# The main prefix
@prefix : <https://knowledge.express/> .
# Prerequisites for basic definition
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
# Reuse schema.org types. We cannot include the ontology directly yet because of rangeIncludes/domainIncludes
@prefix schema: <http://schema.org/> .
# We might want to move this into the default prefix
@prefix mag: <http://academic.microsoft.com/> .
# Annotations
@prefix oa: <http://www.w3.org/ns/oa#> .
# Licensing. We cannot include this ontology yet (I think) because the localname 'license' would be ambiguous
@prefix cc: <http://creativecommons.org/ns#> .
# Unused, might be useful in the future for knowledge organisation
# @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
:Annotation
a owl:Class ;
rdfs:subClassOf :Tag .
:startPosition
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Annotation ;
rdfs:range xsd:integer .
:confidence
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Annotation ;
rdfs:range xsd:decimal .
:detectedAs
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Annotation ;
rdfs:range xsd:string .
:VideoAnnotation
a owl:Class ;
rdfs:subClassOf :Annotation .
:startDuration
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :VideoAnnotation ;
rdfs:range xsd:duration .
:DocumentAnnotation
a owl:Class ;
rdfs:subClassOf :Annotation .
:pageNumber
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :DocumentAnnotation ;
rdfs:range xsd:integer .
# Should be comma or whitespace separated coordinates
# See https://github.com/schemaorg/schemaorg/issues/113
:boundingBox
a owl:ObjectProperty ;
rdfs:domain :DocumentAnnotation ;
rdfs:range xsd:string .
cc:License
a owl:Class .
:Document
a owl:Class ;
rdfs:subClassOf :Resource, :Taggable, schema:MediaObject .
# :section
# a owl:ObjectProperty ;
# rdfs:domain :Document ;
# rdfs:range :DocumentSection ;
# owl:inverseOf :sectionOf .
#
# :DocumentSection
# a owl:Class ;
# rdfs:subClassOf schema:MediaObject .
#
# :sectionOf
# a owl:ObjectProperty ;
# rdfs:domain :DocumentSection ;
# rdfs:range :Document ;
# owl:inverseOf :section .
#
# :startPosition
# a owl:ObjectProperty, owl:FunctionalProperty ;
# rdfs:domain :DocumentSection ;
# rdfs:range xsd:integer .
#
# :endPosition
# a owl:ObjectProperty, owl:FunctionalProperty ;
# rdfs:domain :DocumentSection ;
# rdfs:range xsd:integer .
:Resource
a owl:Class ;
rdfs:subClassOf schema:CreativeWork .
:topic
a owl:ObjectProperty ;
rdfs:domain :Resource ;
rdfs:range :Topic ;
owl:inverseOf :resource .
:tag
a owl:ObjectProperty ;
rdfs:domain :Resource ;
rdfs:range :Tag ;
owl:inverseOf :resource .
:annotation
a owl:ObjectProperty ;
rdfs:subPropertyOf :tag ;
rdfs:domain :Resource ;
rdfs:range :Annotation ;
owl:inverseOf :resource .
:contentLength
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Resource ;
rdfs:range xsd:integer .
:contentDuration
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Resource ;
rdfs:range xsd:duration .
:Video
a owl:Class ;
rdfs:subClassOf schema:VideoObject, :Resource, :Taggable .
:caption
a owl:ObjectProperty ;
rdfs:domain :Video ;
rdfs:range :VideoCaption ;
owl:inverseOf :captionOf .
:VideoCaption
a owl:Class ;
rdfs:subClassOf schema:CreativeWork, :Taggable .
:captionOf a
owl:ObjectProperty ;
rdfs:domain :VideoCaption ;
rdfs:range :Video ;
owl:inverseOf :caption .
:startsAfter
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :VideoCaption ;
rdfs:range xsd:duration .
:duration
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :VideoCaption ;
rdfs:range xsd:duration .
:language
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf schema:inLanguage ;
rdfs:domain :VideoCaption ;
rdfs:range xsd:string .
:Entity
a owl:Class ;
rdfs:subClassOf owl:Thing .
# This is temporary until the name clashing with owl:sameAs is fixed
:sameAsFieldOfStudy
a owl:ObjectProperty ;
rdfs:subPropertyOf owl:sameAs ;
rdfs:domain :Entity ;
rdfs:range mag:FieldOfStudy ;
owl:inverseOf :sameAsEntity .
:subjectOf
a owl:ObjectProperty ;
rdfs:subPropertyOf schema:subjectOf ;
rdfs:domain :Entity ;
rdfs:range :Tag ;
owl:inverseOf :about .
schema:name
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Entity ;
rdfs:range xsd:string .
schema:description
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Entity ;
rdfs:range xsd:string .
mag:FieldOfStudy
a owl:Class ;
rdfs:subClassOf owl:Thing .
# This is temporary until the name clashing with owl:sameAs is fixed
:sameAsEntity
a owl:ObjectProperty ;
rdfs:subPropertyOf owl:sameAs ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range :Entity ;
owl:inverseOf :sameAsFieldOfStudy .
:resource
a owl:ObjectProperty ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range :Resource ;
owl:inverseOf :topic .
mag:fieldLevel
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range xsd:integer .
mag:parentFieldOfStudy
a owl:ObjectProperty ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range mag:FieldOfStudy ;
owl:inverseOf mag:childFieldOfStudy .
mag:childFieldOfStudy
a owl:ObjectProperty ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range mag:FieldOfStudy ;
owl:inverseOf mag:parentFieldOfStudy .
mag:relatedFieldOfStudy
a owl:ObjectProperty ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range mag:FieldOfStudy ;
owl:inverseOf mag:relatesToFieldOfStudy .
mag:relatesToFieldOfStudy
a owl:ObjectProperty ;
rdfs:domain mag:FieldOfStudy ;
rdfs:range mag:FieldOfStudy ;
owl:inverseOf mag:relatedFieldOfStudy .
# This file becomes obsolete once we can load the schema.org ontology into semantic graphql
# Organization
schema:Organization
a owl:Class ;
rdfs:subClassOf owl:Thing .
# CreativeWork
schema:CreativeWork
a owl:Class ;
rdfs:subClassOf owl:Thing .
schema:name
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain schema:CreativeWork, mag:FieldOfStudy ;
rdfs:range xsd:string .
schema:description
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain schema:CreativeWork, mag:FieldOfStudy ;
rdfs:range xsd:string .
schema:image
a owl:ObjectProperty ;
rdfs:domain schema:CreativeWork, mag:FieldOfStudy ;
rdfs:range schema:ImageObject .
schema:license
a owl:ObjectProperty ;
rdfs:domain schema:CreativeWork ;
rdfs:range cc:License .
schema:sourceOrganization
a owl:ObjectProperty ;
rdfs:domain schema:CreativeWork ;
rdfs:range schema:Organization .
schema:text
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain schema:CreativeWork ;
rdfs:range xsd:string .
schema:encoding
a owl:ObjectProperty ;
rdfs:domain schema:CreativeWork ;
rdfs:range schema:MediaObject ;
owl:inverseOf schema:encodesCreativeWork .
# MediaObject
schema:MediaObject
a owl:Class ;
rdfs:subClassOf schema:CreativeWork .
schema:encodesCreativeWork
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain schema:MediaObject ;
rdfs:range schema:CreativeWork ;
owl:inverseOf schema:encoding .
schema:contentUrl
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain schema:MediaObject ;
rdfs:range owl:Thing .
schema:encodingFormat
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain schema:MediaObject ;
rdfs:range xsd:string .
# ImageObject
schema:ImageObject
a owl:Class ;
rdfs:subClassOf schema:MediaObject .
# VideoObject
schema:VideoObject
a owl:Class ;
rdfs:subClassOf schema:MediaObject .
:Tag
a owl:Class ;
rdfs:subClassOf owl:Thing, oa:SemanticTag .
:tagOf
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Tag ;
rdfs:range :Taggable ;
owl:inverseOf :tag .
:about
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:subPropertyOf schema:about ;
rdfs:domain :Tag ;
rdfs:range :Entity ;
owl:inverseOf :subjectOf .
:score
a owl:ObjectProperty, owl:FunctionalProperty ;
rdfs:domain :Tag ;
rdfs:range xsd:decimal .
:Taggable
a owl:Class ;
rdfs:subClassOf owl:Thing .
:tag
a owl:ObjectProperty ;
rdfs:domain :Taggable ;
rdfs:range :Tag ;
owl:inverseOf :subjectOf .
:annotation
a owl:ObjectProperty ;
rdfs:subPropertyOf :tag ;
rdfs:domain :Taggable ;
rdfs:range :Annotation ;
owl:inverseOf :about .
:Topic
a owl:Class ;
rdfs:subClassOf schema:CreativeWork .
:resource
a owl:ObjectProperty ;
rdfs:domain :Topic ;
rdfs:range :Resource ;
owl:inverseOf :topic .
:previous
a owl:ObjectProperty ;
rdfs:domain :Topic ;
rdfs:range :Topic ;
owl:inverseOf :next .
:next
a owl:ObjectProperty ;
rdfs:domain :Topic ;
rdfs:range :Topic ;
owl:inverseOf :previous .
:parent
a owl:ObjectProperty ;
rdfs:domain :Topic ;
rdfs:range :Topic ;
owl:inverseOf :child .
:child
a owl:ObjectProperty ;
rdfs:domain :Topic ;
rdfs:range :Topic ;
owl:inverseOf :parent .