-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolf.ttl
478 lines (412 loc) · 13.2 KB
/
golf.ttl
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
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
@prefix schema: <http://schema.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix golf: <https://michaud.inrupt.net/public/golfvocab/> .
golf: rdf:type owl:Ontology ;
# Description
dcterms:title "Golf ontology" ;
dcterms:description """
# The golf ontology aims at describing golf.
""" ;
.
golf:fieldLabel a rdfs:label .
#player definition
golf:Player a schema:Person ;
rdfs:label "Player"@en ;
golf:fieldLabel "Player"@en ;
rdfs:comment "player in a golf game"@en ;
.
golf:givenName a rdf:Property;
rdfs:label "givenName"@en ;
golf:fieldLabel "Given name"@en ;
rdfs:comment "Given name of the player"@en ;
rdfs:range schema:Text ;
rdfs:domain golf:Player;
.
golf:familyName a rdf:Property;
rdfs:label "familyName"@en ;
golf:fieldLabel "Family name"@en ;
rdfs:comment "Family name of the player"@en ;
rdfs:range schema:Text ;
rdfs:domain golf:Player;
.
golf:handicap a rdf:Property ;
rdfs:label "handicap"@en ;
golf:fieldLabel "Player handicap"@en ;
rdfs:comment "handicap of the player"@en ;
rdfs:range xsd:integer ;
rdfs:domain golf:Player ;
.
golf:Marker a golf:Player .
#club definition
golf:Club a rdfs:Class ;
rdfs:label "Club"@en ;
golf:fieldLabel "Club"@en ;
rdfs:comment "golf club"@en ;
.
golf:clubName a rdf:Property ;
rdfs:label "clubName"@en ;
golf:fieldLabel "Club name"@en ;
rdfs:comment "name of the club"@en ;
rdfs:range xsd:string ;
rdfs:domain golf:Club ;
.
golf:clubType a rdf:Property ;
rdfs:label "clubType"@en ;
golf:fieldLabel "Club type"@en ;
rdfs:comment "name of the club type"@en ;
rdfs:range golf:Club ;
rdfs:domain golf:Club ;
.
golf:clubBrand a rdf:Property ;
rdfs:label "clubBrand"@en ;
golf:fieldLabel "Club brand"@en ;
rdfs:comment "name of the brand of the club"@en ;
rdfs:range xsd:string ;
rdfs:domain golf:Club ;
.
#bag definition
golf:Bag a rdfs:Class ;
rdfs:label "Bag"@en ;
golf:fieldLabel "Bag"@en ;
rdfs:comment "the bag which contains the clubs while the player plays a game of golf"@en ;
.
golf:clubs a rdf:Property ;
rdfs:label "clubs"@en ;
golf:fieldLabel "Clubs"@en ;
rdfs:comment "list of Clubs in the bag"@en ;
rdfs:range golf:Club ;
rdfs:domain golf:Bag ;
.
#course definition
golf:Course a rdfs:Class ;
rdfs:label "Course"@en ;
golf:fieldLabel "Course"@en ;
rdfs:comment "A course is a terrain where players hit a ball into a hole."@en ;
.
golf:courseSlope a rdf:Property ;
rdfs:label "courseSlope"@en ;
golf:fieldLabel "Slope"@en ;
rdfs:commemt "slope is a difficult indication of a course"@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:Course;
.
golf:courseName a rdf:Property ;
rdfs:label "courseName"@en ;
golf:fieldLabel "Name"@en ;
rdfs:commemt "name of the course"@en ;
rdfs:range xsd:string ;
rdfs:domain golf:Course;
.
golf:courseHoles a rdf:Property ;
rdfs:label "courseHoles"@en ;
golf:fieldLabel "Holes"@en ;
rdfs:commemt "the holes in a golf course"@en ;
rdfs:range golf:Hole;
rdfs:domain golf:Course ;
.
#hole definition
golf:Hole a rdfs:Class ;
rdfs:label "Hole"@en ;
golf:fieldLabel "Hole"@en ;
rdfs:comment "A hole is a target for players to hit a ball into."@en ;
.
golf:holeNumber a rdf:Property ;
rdfs:label "holeNumber" ;
golf:fieldLabel "Hole number"@en ;
rdfs:comment "the sequential number of the hole."@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:Hole ;
.
golf:holeStrokeIndex a rdf:Property ;
rdfs:label "holeStrokeIndex"@en ;
golf:fieldLabel "Stroke index"@en ;
rdfs:comment "an indication of how difficult the hole is."@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:Hole ;
.
golf:holeName a rdf:Property ;
rdfs:label "holeName"@en ;
golf:fieldLabel "Hole name"@en ;
rdfs:comment "name of the hole."@en ;
rdfs:range xsd:string ;
rdfs:domain golf:Hole ;
.
golf:holePar a rdf:Property ;
rdfs:label "holePar"@en ;
golf:fieldLabel "Clubs"@en ;
rdfs:comment "par count of a hole."@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:Hole ;
.
golf:holeLength a rdf:Property ;
rdfs:label "holeLength"@en ;
golf:fieldLabel "Length"@en ;
rdfs:comment "length of a hole."@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:Hole ;
.
# game definition
golf:Game a rdfs:Class ;
rdfs:label "Game"@en ;
golf:fieldLabel "Game"@en ;
rdfs:comment "a nine or 18 holes game of golf."@en ;
.
golf:gameName a rdf:Property ;
rdfs:label "gameName"@en ;
golf:fieldLabel "Name"@en ;
rdfs:comment "Name of the game played."@en ;
rdfs:range xsd:string ;
rdfs:domain golf:Game ;
.
golf:gameDate a rdf:Property ;
rdfs:label "gameDate"@en ;
golf:fieldLabel "Date"@en ;
rdfs:comment "Date of the game played."@en ;
rdfs:range schema:DateTime ;
rdfs:domain golf:Game ;
.
golf:gameBag a rdf:Property ;
rdfs:label "gameBag"@en ;
golf:fieldLabel "Bag"@en ;
rdfs:comment "Bag contains the clubs used when playing the specific game."@en ;
rdfs:range golf:Bag ;
rdfs:domain golf:Game ;
.
golf:gamePlayer a rdf:Property ;
rdfs:label "gamePlayer"@en ;
golf:fieldLabel "Player"@en ;
rdfs:comment "player playing the specific game."@en ;
rdfs:range golf:Player ;
rdfs:domain golf:Game ;
.
golf:gamePlayingHandicap a rdf:Property;
rdfs:label "gamePlayingHandicap"@en ;
golf:fieldLabel "Playing handicap"@en ;
rdfs:comment "Handicap used for a course in a game by a marker, handicap of the player or marker calculated from the players handicap and the difficulty of the course"@en ;
rdfs:range golf:GamePlayingHandicap ;
rdfs:domain golf:Game ;
.
golf:GamePlayingHandicap a rdfs:Class;
rdfs:label "GamePlayingHandicap"@en ;
golf:fieldLabel "Playing handicap"@en ;
rdfs:comment "Handicap used for a course in a game for player and marker."@en ;
.
golf:playerPlayingHandicap a rdf:Property;
rdfs:label "playerPlayingHandicap"@en ;
golf:fieldLabel "Player"@en ;
rdfs:comment "Handicap used for a course in a game by a marker, handicap of the player or marker calculated from the players handicap and the difficulty of the course"@en ;
rdfs:range xsd:integer ;
rdfs:domain golf:GamePlayingHandicap ;
.
golf:markerPlayingHandicap a rdf:Property;
rdfs:label "markerPlayingHandicap"@en ;
golf:fieldLabel "Marker"@en ;
rdfs:comment "Handicap used for a course in a game by a marker, handicap of the player or marker calculated from the players handicap and the difficulty of the course"@en ;
rdfs:range xsd:integer ;
rdfs:domain golf:GamePlayingHandicap;
.
golf:gameMarker a rdf:Property ;
rdfs:label "gameMarker"@en ;
golf:fieldLabel "Marker"@en ;
rdfs:comment "marker for the player playing the specific game."@en ;
rdfs:range golf:Player ;
rdfs:domain golf:Game ;
.
golf:gameCourse a rdf:Property ;
rdfs:label "gameCourse"@en ;
golf:fieldLabel "Course"@en ;
rdfs:comment "course played in the specific game."@en ;
rdfs:range golf:Course ;
rdfs:domain golf:Game ;
.
golf:gameVerified a rdf:Property ;
rdfs:label "gameVerified"@en ;
golf:fieldLabel "Verified"@en ;
rdfs:comment "is the game verified and therefore locked."@en ;
rdfs:range xsd:boolean ;
rdfs:domain golf:Game ;
.
golf:gameStarted a rdf:Property ;
rdfs:label "gameStarted"@en ;
golf:fieldLabel "Started"@en ;
rdfs:comment "is the game started and therefore locked."@en ;
rdfs:range xsd:boolean ;
rdfs:domain golf:Game ;
.
golf:GameHole a rdfs:Class;
rdfs:label "gameHole"@en ;
golf:fieldLabel "Hole"@en ;
rdfs:comment "hole played during a golf game."@en ;
rdfs:subClassOf golf:Hole ;
.
# could be derived from golf:gameStrokes
golf:gameStrokeCount a rdf:Property ;
rdfs:label "gameStrokeCount"@en ;
golf:fieldLabel "Stroke count"@en ;
rdfs:comment "The amount of strokes a player hit to get the golf ball into the hole."@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:GameHole ;
.
golf:gameMarkerStrokeCount a rdf:Property ;
rdfs:label "gameMarkerStrokeCount"@en ;
golf:fieldLabel "Stroke count"@en ;
rdfs:comment "The amount of strokes the marker hit to get the golf ball into the hole."@en ;
rdfs:range xsd:nonNegativeInteger ;
rdfs:domain golf:GameHole ;
.
golf:gameStrokes a rdf:Property ;
rdfs:label "gameStrokeCount"@en ;
golf:fieldLabel "Stroke count"@en ;
rdfs:comment "List of strokes a player hits to get the golf ball into the hole."@en ;
rdfs:range golf:Stroke ;
rdfs:domain golf:GameHole ;
.
# stroke definition
golf:Stroke a rdfs:Class;
rdfs:label "Stroke"@en ;
golf:fieldLabel "Stroke"@en ;
rdfs:comment "A stroke a player hit to get the golf ball into the hole."@en ;
.
#latitude Number or Text The latitude of a location. For example 37.42242 (WGS 84).
#longitude Number or Text The longitude of a location. For example -122.08585 (WGS 84).
golf:strokeLocation a rdf:Property ;
rdfs:label "strokeLocation"@en ;
golf:fieldLabel "location"@en ;
rdfs:comment "The location a stroke was hit."@en ;
rdfs:range schema:GeoCoordinates ;
rdfs:domain golf:Stroke ;
.
golf:strokeClub a rdf:Property;
rdfs:label "strokeClub"@en ;
golf:fieldLabel "location"@en ;
rdfs:comment "The club a stroke was hit with."@en ;
rdfs:range golf:Club ;
rdfs:domain golf:Stroke ;
.
#[-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]
golf:strokeDate a rdf:Property;
rdfs:label "strokeDate"@en ;
golf:fieldLabel "date"@en ;
rdfs:comment "The Moment a stroke was hit with."@en ;
rdfs:range schema:DateTime ;
rdfs:domain golf:Stroke ;
.
#club types
golf:Driver a rdfs:Class ;
rdfs:label "Driver"@en ;
golf:fieldLabel "Driver"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:TwoWood a rdfs:Class ;
rdfs:label "TwoWood"@en ;
golf:fieldLabel "Two Wood"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:ThreeWood a rdfs:Class ;
rdfs:label "ThreeWood"@en ;
golf:fieldLabel "Three Wood"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:FourWood a rdfs:Class ;
rdfs:label "FourWood"@en ;
golf:fieldLabel "Four Wood"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:FiveWood a rdfs:Class ;
rdfs:label "FiveWood"@en ;
golf:fieldLabel "Five Wood"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:Hybrid a rdfs:Class ;
rdfs:label "Hybrid"@en ;
golf:fieldLabel "Hybrid"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:TwoIron a rdfs:Class ;
rdfs:label "TwoIron"@en ;
golf:fieldLabel "Two Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:ThreeIron a rdfs:Class ;
rdfs:label "ThreeIron"@en ;
golf:fieldLabel "Three Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:FourIron a rdfs:Class ;
rdfs:label "FourIron"@en ;
golf:fieldLabel "Four Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:FiveIron a rdfs:Class ;
rdfs:label "FiveIron"@en ;
golf:fieldLabel "Five Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:SixIron a rdfs:Class ;
rdfs:label "SixIron"@en ;
golf:fieldLabel "Six Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:SevenIron a rdfs:Class ;
rdfs:label "SevenIron"@en ;
golf:fieldLabel "Seven Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:EightIron a rdfs:Class ;
rdfs:label "EightIron"@en ;
golf:fieldLabel "Eight Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:NineIron a rdfs:Class ;
rdfs:label "NineIron"@en ;
golf:fieldLabel "Nine Iron"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:PitchingWedge a rdfs:Class ;
rdfs:label "PitchingWedge"@en ;
golf:fieldLabel "Pitching Wedge"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:GapWedge a rdfs:Class ;
rdfs:label "GapWedge"@en ;
golf:fieldLabel "Gap Wedge"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:SandWedge a rdfs:Class ;
rdfs:label "SandWedge"@en ;
golf:fieldLabel "Sand Wedge"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:LobWedge a rdfs:Class ;
rdfs:label "LobWedge"@en ;
golf:fieldLabel "Lob Wedge"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.
golf:Putter a rdfs:Class ;
rdfs:label "Putter"@en ;
golf:fieldLabel "Putter"@en ;
rdfs:comment "a club with a specific loft."@en ;
rdfs:subClassOf golf:Club ;
.