rdf 1.1.4 → 1.1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,382 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # This file generated automatically using vocab-fetch from etc/data-vocab.ttl
3
+ require 'rdf'
4
+ module RDF
5
+ class VMD < StrictVocabulary("http://data-vocabulary.org/")
6
+
7
+ # Class definitions
8
+ term :Address,
9
+ comment: %(Postal address for a Person or Organization.).freeze,
10
+ label: "Address".freeze,
11
+ type: "rdfs:Class".freeze
12
+ term :Breadcrumb,
13
+ comment: %(Represents a single Breadcrumb in a Breadcrumb trail.).freeze,
14
+ label: "Breadcrumb".freeze,
15
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
16
+ term :Instructions,
17
+ comment: %(Represents the steps to make a dish.).freeze,
18
+ label: "Instructions".freeze,
19
+ type: "rdfs:Class".freeze
20
+ term :Nutrition,
21
+ comment: %(Represents the nutrition information about a recipe.).freeze,
22
+ label: "Nutrition".freeze,
23
+ type: "rdfs:Class".freeze
24
+ term :Offer,
25
+ comment: %(Represents an offer to sell a product.).freeze,
26
+ label: "Offer".freeze,
27
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
28
+ term :OfferAggregate,
29
+ comment: %(Represents a collection of offers to sell a product.).freeze,
30
+ label: "OfferAggregate".freeze,
31
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
32
+ term :Organization,
33
+ comment: %(An Organization is a business, agency, school, etc.).freeze,
34
+ label: "Organization".freeze,
35
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
36
+ term :Person,
37
+ comment: %(Represents a Person, living/dead/fictional.).freeze,
38
+ label: "Person".freeze,
39
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
40
+ term :Product,
41
+ comment: %(Represents a product or service in a Review or Review-aggregate.).freeze,
42
+ label: "Product".freeze,
43
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
44
+ term :Rating,
45
+ comment: %(Represents a rating in a Review or Review-aggregate.).freeze,
46
+ label: "Rating".freeze,
47
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
48
+ term :Recipe,
49
+ comment: %(A single instance of a Recipe.).freeze,
50
+ label: "Recipe".freeze,
51
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
52
+ term :RecipeIngredient,
53
+ comment: %(Represents ingredients used in a recipe.).freeze,
54
+ label: "RecipeIngredient".freeze,
55
+ type: "rdfs:Class".freeze
56
+ term :Review,
57
+ comment: %(A single instance of a Review.).freeze,
58
+ label: "Review".freeze,
59
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
60
+ term :"Review-aggregate",
61
+ comment: %(Represents data from a collection of reviews.
62
+ Can be used whether or not there is instance-level Review data on the page.
63
+ ).freeze,
64
+ label: "Review-aggregate".freeze,
65
+ subClassOf: "vmd:Review".freeze,
66
+ type: "rdfs:Class".freeze
67
+ term :TimeRange,
68
+ comment: %(Represents the length of time it takes to prepare a recipe.).freeze,
69
+ label: "TimeRange".freeze,
70
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
71
+
72
+ # Property definitions
73
+ property :acquaintance,
74
+ domain: "vmd:Person".freeze,
75
+ label: "acquaintance".freeze,
76
+ type: "rdf:Property".freeze
77
+ property :address,
78
+ label: "address".freeze,
79
+ range: "vmd:Address".freeze,
80
+ type: "rdf:Property".freeze
81
+ property :affiliation,
82
+ comment: %(An affiliation can be specified by a string literal or an Organization instance.).freeze,
83
+ domain: "vmd:Person".freeze,
84
+ label: "affiliation".freeze,
85
+ type: "rdf:Property".freeze
86
+ property :amount,
87
+ domain: "vmd:RecipeIngredient".freeze,
88
+ label: "amount".freeze,
89
+ type: "rdf:Property".freeze
90
+ property :author,
91
+ comment: %(An author of the recipe can be specified by a string literal or a Person instance.).freeze,
92
+ domain: "vmd:Recipe".freeze,
93
+ label: "author".freeze,
94
+ type: "rdf:Property".freeze
95
+ property :availability,
96
+ domain: "vmd:Offer".freeze,
97
+ label: "availability".freeze,
98
+ type: "rdf:Property".freeze
99
+ property :average,
100
+ comment: %(The average of an aggregate value.).freeze,
101
+ domain: "vmd:Rating".freeze,
102
+ label: "average".freeze,
103
+ type: "rdf:Property".freeze
104
+ property :best,
105
+ comment: %(The best value of a rating scale \(default 5\).).freeze,
106
+ domain: "vmd:Rating".freeze,
107
+ label: "best".freeze,
108
+ type: "rdf:Property".freeze
109
+ property :brand,
110
+ domain: "vmd:Product".freeze,
111
+ label: "brand".freeze,
112
+ type: "rdf:Property".freeze
113
+ property :calories,
114
+ domain: "vmd:Nutrition".freeze,
115
+ label: "calories".freeze,
116
+ type: "rdf:Property".freeze
117
+ property :carbohydrates,
118
+ domain: "vmd:Nutrition".freeze,
119
+ label: "carbohydrates".freeze,
120
+ type: "rdf:Property".freeze
121
+ property :category,
122
+ label: "category".freeze,
123
+ type: "rdf:Property".freeze
124
+ property :child,
125
+ domain: "vmd:Breadcrumb".freeze,
126
+ label: "child".freeze,
127
+ type: "rdf:Property".freeze
128
+ property :cholesterol,
129
+ domain: "vmd:Nutrition".freeze,
130
+ label: "cholesterol".freeze,
131
+ type: "rdf:Property".freeze
132
+ property :colleague,
133
+ domain: "vmd:Person".freeze,
134
+ label: "colleague".freeze,
135
+ type: "rdf:Property".freeze
136
+ property :condition,
137
+ label: "condition".freeze,
138
+ type: "rdf:Property".freeze
139
+ property :contact,
140
+ domain: "vmd:Person".freeze,
141
+ label: "contact".freeze,
142
+ type: "rdf:Property".freeze
143
+ property :cookTime,
144
+ domain: "vmd:Recipe".freeze,
145
+ label: "cookTime".freeze,
146
+ type: "rdf:Property".freeze
147
+ property :count,
148
+ comment: %(The total number of items used in an aggregate \(e.g., number of reviews\).).freeze,
149
+ domain: "vmd:Review-aggregate".freeze,
150
+ label: "count".freeze,
151
+ type: "rdf:Property".freeze
152
+ property :"country-name",
153
+ domain: "vmd:Address".freeze,
154
+ label: "country-name".freeze,
155
+ type: "rdf:Property".freeze
156
+ property :currency,
157
+ label: "currency".freeze,
158
+ type: "rdf:Property".freeze
159
+ property :description,
160
+ label: "description".freeze,
161
+ type: "rdf:Property".freeze
162
+ property :dtreviewed,
163
+ comment: %(The date of the review.).freeze,
164
+ domain: "vmd:Review".freeze,
165
+ label: "dtreviewed".freeze,
166
+ type: "rdf:Property".freeze
167
+ property :duration,
168
+ domain: "vmd:Recipe".freeze,
169
+ label: "duration".freeze,
170
+ type: "rdf:Property".freeze
171
+ property :fat,
172
+ domain: "vmd:Nutrition".freeze,
173
+ label: "fat".freeze,
174
+ type: "rdf:Property".freeze
175
+ property :fiber,
176
+ domain: "vmd:Nutrition".freeze,
177
+ label: "fiber".freeze,
178
+ type: "rdf:Property".freeze
179
+ property :friend,
180
+ domain: "vmd:Person".freeze,
181
+ label: "friend".freeze,
182
+ type: "rdf:Property".freeze
183
+ property :highprice,
184
+ domain: "vmd:OfferAggregate".freeze,
185
+ label: "highprice".freeze,
186
+ type: "rdf:Property".freeze
187
+ property :identifier,
188
+ label: "identifier".freeze,
189
+ type: "rdf:Property".freeze
190
+ property :image,
191
+ domain: "vmd:Product".freeze,
192
+ label: "image".freeze,
193
+ type: "rdf:Property".freeze
194
+ property :ingredient,
195
+ comment: %(Represents ingredients used in a recipe.).freeze,
196
+ domain: "vmd:Recipe".freeze,
197
+ label: "ingredient".freeze,
198
+ range: "vmd:RecipeIngredient".freeze,
199
+ type: "rdf:Property".freeze
200
+ property :instruction,
201
+ domain: "vmd:Instructions".freeze,
202
+ label: "instruction".freeze,
203
+ type: "rdf:Property".freeze
204
+ property :instructions,
205
+ comment: %(Represents the steps to make a dish.).freeze,
206
+ domain: "vmd:Recipe".freeze,
207
+ label: "instructions".freeze,
208
+ range: "vmd:Instructions".freeze,
209
+ type: "rdf:Property".freeze
210
+ property :itemoffered,
211
+ label: "itemoffered".freeze,
212
+ type: "rdf:Property".freeze
213
+ property :itemreviewed,
214
+ domain: "vmd:Review".freeze,
215
+ label: "itemreviewed".freeze,
216
+ type: "rdf:Property".freeze
217
+ property :locality,
218
+ domain: "vmd:Address".freeze,
219
+ label: "locality".freeze,
220
+ type: "rdf:Property".freeze
221
+ property :lowprice,
222
+ domain: "vmd:OfferAggregate".freeze,
223
+ label: "lowprice".freeze,
224
+ type: "rdf:Property".freeze
225
+ property :max,
226
+ comment: %(The maximum value of an aggregated Rating.).freeze,
227
+ label: "max".freeze,
228
+ type: "rdf:Property".freeze
229
+ property :min,
230
+ comment: %(The minimum value of an aggregated Rating.).freeze,
231
+ label: "min".freeze,
232
+ type: "rdf:Property".freeze
233
+ property :name,
234
+ label: "name".freeze,
235
+ type: "rdf:Property".freeze
236
+ property :nickname,
237
+ domain: "vmd:Person".freeze,
238
+ label: "nickname".freeze,
239
+ type: "rdf:Property".freeze
240
+ property :nutrition,
241
+ comment: %(Represents the nutrition information about a recipe.).freeze,
242
+ domain: "vmd:Recipe".freeze,
243
+ label: "nutrition".freeze,
244
+ range: "vmd:Nutrition".freeze,
245
+ type: "rdf:Property".freeze
246
+ property :offercount,
247
+ domain: "vmd:OfferAggregate".freeze,
248
+ label: "offercount".freeze,
249
+ type: "rdf:Property".freeze
250
+ property :offerdetails,
251
+ domain: "vmd:Product".freeze,
252
+ label: "offerdetails".freeze,
253
+ type: "rdf:Property".freeze
254
+ property :offerurl,
255
+ label: "offerurl".freeze,
256
+ type: "rdf:Property".freeze
257
+ property :photo,
258
+ label: "photo".freeze,
259
+ type: "rdf:Property".freeze
260
+ property :"postal-code",
261
+ domain: "vmd:Address".freeze,
262
+ label: "postal-code".freeze,
263
+ type: "rdf:Property".freeze
264
+ property :prepTime,
265
+ domain: "vmd:Recipe".freeze,
266
+ label: "prepTime".freeze,
267
+ type: "rdf:Property".freeze
268
+ property :price,
269
+ domain: "vmd:Offer".freeze,
270
+ label: "price".freeze,
271
+ type: "rdf:Property".freeze
272
+ property :pricerange,
273
+ comment: %(The price range of products and services offered
274
+ by a restaurant, business or other organization.
275
+ ).freeze,
276
+ domain: "vmd:Organization".freeze,
277
+ label: "pricerange".freeze,
278
+ type: "rdf:Property".freeze
279
+ property :pricevaliduntil,
280
+ domain: "vmd:Offer".freeze,
281
+ label: "pricevaliduntil".freeze,
282
+ type: "rdf:Property".freeze
283
+ property :protein,
284
+ domain: "vmd:Nutrition".freeze,
285
+ label: "protein".freeze,
286
+ type: "rdf:Property".freeze
287
+ property :published,
288
+ domain: "vmd:Recipe".freeze,
289
+ label: "published".freeze,
290
+ type: "rdf:Property".freeze
291
+ property :quantity,
292
+ domain: "vmd:Offer".freeze,
293
+ label: "quantity".freeze,
294
+ type: "rdf:Property".freeze
295
+ property :rating,
296
+ comment: %(A rating can be specified by a string literal or a Rating instance.).freeze,
297
+ domain: "vmd:Review".freeze,
298
+ label: "rating".freeze,
299
+ type: "rdf:Property".freeze
300
+ property :recipeType,
301
+ domain: "vmd:Recipe".freeze,
302
+ label: "recipeType".freeze,
303
+ type: "rdf:Property".freeze
304
+ property :region,
305
+ domain: "vmd:Address".freeze,
306
+ label: "region".freeze,
307
+ type: "rdf:Property".freeze
308
+ property :reviewer,
309
+ comment: %(A reviewer can be specified by a string literal or a Person instance.).freeze,
310
+ domain: "vmd:Review".freeze,
311
+ label: "reviewer".freeze,
312
+ type: "rdf:Property".freeze
313
+ property :role,
314
+ domain: "vmd:Person".freeze,
315
+ label: "role".freeze,
316
+ type: "rdf:Property".freeze
317
+ property :saturatedFat,
318
+ domain: "vmd:Nutrition".freeze,
319
+ label: "saturatedFat".freeze,
320
+ type: "rdf:Property".freeze
321
+ property :seller,
322
+ domain: "vmd:Offer".freeze,
323
+ label: "seller".freeze,
324
+ type: "rdf:Property".freeze
325
+ property :servingSize,
326
+ domain: "vmd:Nutrition".freeze,
327
+ label: "servingSize".freeze,
328
+ type: "rdf:Property".freeze
329
+ property :"street-address",
330
+ domain: "vmd:Address".freeze,
331
+ label: "street-address".freeze,
332
+ type: "rdf:Property".freeze
333
+ property :sugar,
334
+ domain: "vmd:Nutrition".freeze,
335
+ label: "sugar".freeze,
336
+ type: "rdf:Property".freeze
337
+ property :summary,
338
+ label: "summary".freeze,
339
+ type: "rdf:Property".freeze
340
+ property :tag,
341
+ domain: "vmd:Recipe".freeze,
342
+ label: "tag".freeze,
343
+ type: "rdf:Property".freeze
344
+ property :tel,
345
+ label: "tel".freeze,
346
+ type: "rdf:Property".freeze
347
+ property :timeRange,
348
+ comment: %(Represents the length of time it takes to prepare a recipe.).freeze,
349
+ domain: "vmd:Recipe".freeze,
350
+ label: "timeRange".freeze,
351
+ range: "vmd:TimeRange".freeze,
352
+ type: "rdf:Property".freeze
353
+ property :title,
354
+ label: "title".freeze,
355
+ type: "rdf:Property".freeze
356
+ property :totalTime,
357
+ domain: "vmd:Recipe".freeze,
358
+ label: "totalTime".freeze,
359
+ type: "rdf:Property".freeze
360
+ property :unsaturatedFat,
361
+ domain: "vmd:Nutrition".freeze,
362
+ label: "unsaturatedFat".freeze,
363
+ type: "rdf:Property".freeze
364
+ property :url,
365
+ label: "url".freeze,
366
+ type: "rdf:Property".freeze
367
+ property :value,
368
+ comment: %(The value of a single Rating.).freeze,
369
+ domain: "vmd:Rating".freeze,
370
+ label: "value".freeze,
371
+ type: "rdf:Property".freeze
372
+ property :worst,
373
+ comment: %(The poorest value of a rating scale \(default 1\).).freeze,
374
+ domain: "vmd:Rating".freeze,
375
+ label: "worst".freeze,
376
+ type: "rdf:Property".freeze
377
+ property :yield,
378
+ domain: "vmd:Recipe".freeze,
379
+ label: "yield".freeze,
380
+ type: "rdf:Property".freeze
381
+ end
382
+ end
@@ -8,21 +8,21 @@ module RDF
8
8
  term :Dataset,
9
9
  comment: %(A set of RDF triples that are published, maintained or aggregated by a single provider.).freeze,
10
10
  label: "dataset".freeze,
11
- type: "rdfs:Class".freeze
11
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
12
12
  term :DatasetDescription,
13
13
  comment: %(A web resource whose foaf:primaryTopic or foaf:topics include void:Datasets.).freeze,
14
14
  label: "dataset description".freeze,
15
15
  subClassOf: "foaf:Document".freeze,
16
- type: "rdfs:Class".freeze
16
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
17
17
  term :Linkset,
18
18
  comment: %(A collection of RDF links between two void:Datasets.).freeze,
19
19
  label: "linkset".freeze,
20
20
  subClassOf: "void:Dataset".freeze,
21
- type: "rdfs:Class".freeze
21
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
22
22
  term :TechnicalFeature,
23
23
  comment: %(A technical feature of a void:Dataset, such as a supported RDF serialization format.).freeze,
24
24
  label: "technical feature".freeze,
25
- type: "rdfs:Class".freeze
25
+ type: ["rdfs:Class".freeze, "owl:Class".freeze]
26
26
 
27
27
  # Property definitions
28
28
  property :class,
@@ -30,7 +30,7 @@ module RDF
30
30
  domain: "void:Dataset".freeze,
31
31
  label: "class".freeze,
32
32
  range: "rdfs:Class".freeze,
33
- type: "rdf:Property".freeze
33
+ type: ["rdf:Property".freeze, "owl:FunctionalProperty".freeze]
34
34
  property :classPartition,
35
35
  comment: %(A subset of a void:Dataset that contains only the entities of a certain rdfs:Class.).freeze,
36
36
  domain: "void:Dataset".freeze,
@@ -43,7 +43,7 @@ module RDF
43
43
  domain: "void:Dataset".freeze,
44
44
  label: "classes".freeze,
45
45
  range: "xsd:integer".freeze,
46
- type: "rdf:Property".freeze
46
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
47
47
  property :dataDump,
48
48
  comment: %(An RDF dump, partial or complete, of a void:Dataset.).freeze,
49
49
  domain: "void:Dataset".freeze,
@@ -55,25 +55,25 @@ module RDF
55
55
  domain: "void:Dataset".freeze,
56
56
  label: "distinct objects".freeze,
57
57
  range: "xsd:integer".freeze,
58
- type: "rdf:Property".freeze
58
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
59
59
  property :distinctSubjects,
60
60
  comment: %(The total number of distinct subjects in a void:Dataset. In other words, the number of distinct resources that occur in the subject position of triples in the dataset.).freeze,
61
61
  domain: "void:Dataset".freeze,
62
62
  label: "distinct subjects".freeze,
63
63
  range: "xsd:integer".freeze,
64
- type: "rdf:Property".freeze
64
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
65
65
  property :documents,
66
66
  comment: %(The total number of documents, for datasets that are published as a set of individual documents, such as RDF/XML documents or RDFa-annotated web pages. Non-RDF documents, such as web pages in HTML or images, are usually not included in this count. This property is intended for datasets where the total number of triples or entities is hard to determine. void:triples or void:entities should be preferred where practical.).freeze,
67
67
  domain: "void:Dataset".freeze,
68
68
  label: "number of documents".freeze,
69
69
  range: "xsd:integer".freeze,
70
- type: "rdf:Property".freeze
70
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
71
71
  property :entities,
72
72
  comment: %(The total number of entities that are described in a void:Dataset.).freeze,
73
73
  domain: "void:Dataset".freeze,
74
74
  label: "number of entities".freeze,
75
75
  range: "xsd:integer".freeze,
76
- type: "rdf:Property".freeze
76
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
77
77
  property :exampleResource,
78
78
  domain: "void:Dataset".freeze,
79
79
  label: "example resource of dataset".freeze,
@@ -101,7 +101,7 @@ module RDF
101
101
  label: "Objects Target".freeze,
102
102
  range: "void:Dataset".freeze,
103
103
  subPropertyOf: "void:target".freeze,
104
- type: "rdf:Property".freeze
104
+ type: ["rdf:Property".freeze, "owl:FunctionalProperty".freeze]
105
105
  property :openSearchDescription,
106
106
  comment: %(An OpenSearch description document for a free-text search service over a void:Dataset.).freeze,
107
107
  domain: "void:Dataset".freeze,
@@ -113,13 +113,13 @@ module RDF
113
113
  domain: "void:Dataset".freeze,
114
114
  label: "number of properties".freeze,
115
115
  range: "xsd:integer".freeze,
116
- type: "rdf:Property".freeze
116
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
117
117
  property :property,
118
118
  comment: %(The rdf:Property that is the predicate of all triples in a property-based partition.).freeze,
119
119
  domain: "void:Dataset".freeze,
120
120
  label: "property".freeze,
121
121
  range: "rdf:Property".freeze,
122
- type: "rdf:Property".freeze
122
+ type: ["rdf:Property".freeze, "owl:FunctionalProperty".freeze]
123
123
  property :propertyPartition,
124
124
  comment: %(A subset of a void:Dataset that contains only the triples of a certain rdf:Property.).freeze,
125
125
  domain: "void:Dataset".freeze,
@@ -142,7 +142,7 @@ module RDF
142
142
  label: "Subjects Target".freeze,
143
143
  range: "void:Dataset".freeze,
144
144
  subPropertyOf: "void:target".freeze,
145
- type: "rdf:Property".freeze
145
+ type: ["rdf:Property".freeze, "owl:FunctionalProperty".freeze]
146
146
  property :subset,
147
147
  domain: "void:Dataset".freeze,
148
148
  label: "has subset".freeze,
@@ -159,7 +159,7 @@ module RDF
159
159
  domain: "void:Dataset".freeze,
160
160
  label: "number of triples".freeze,
161
161
  range: "xsd:integer".freeze,
162
- type: "rdf:Property".freeze
162
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
163
163
  property :uriLookupEndpoint,
164
164
  comment: %(Defines a simple URI look-up protocol for accessing a dataset.).freeze,
165
165
  domain: "void:Dataset".freeze,
@@ -175,7 +175,7 @@ module RDF
175
175
  domain: "void:Dataset".freeze,
176
176
  label: "URI space".freeze,
177
177
  range: "rdfs:Literal".freeze,
178
- type: "rdf:Property".freeze
178
+ type: ["rdf:Property".freeze, "owl:DatatypeProperty".freeze]
179
179
  property :vocabulary,
180
180
  comment: %(A vocabulary that is used in the dataset.).freeze,
181
181
  domain: "void:Dataset".freeze,