rdf 1.1.0p4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +6 -14
  2. data/README +33 -33
  3. data/VERSION +1 -1
  4. data/lib/rdf.rb +60 -12
  5. data/lib/rdf/cli.rb +7 -1
  6. data/lib/rdf/cli/vocab-loader.rb +240 -0
  7. data/lib/rdf/format.rb +2 -2
  8. data/lib/rdf/mixin/enumerable.rb +12 -4
  9. data/lib/rdf/mixin/queryable.rb +13 -13
  10. data/lib/rdf/model/graph.rb +5 -4
  11. data/lib/rdf/model/list.rb +15 -4
  12. data/lib/rdf/model/literal.rb +2 -1
  13. data/lib/rdf/model/statement.rb +10 -1
  14. data/lib/rdf/model/term.rb +8 -0
  15. data/lib/rdf/model/uri.rb +107 -2
  16. data/lib/rdf/model/value.rb +8 -0
  17. data/lib/rdf/ntriples/reader.rb +5 -4
  18. data/lib/rdf/query.rb +47 -12
  19. data/lib/rdf/query/solutions.rb +29 -29
  20. data/lib/rdf/reader.rb +13 -3
  21. data/lib/rdf/repository.rb +1 -0
  22. data/lib/rdf/util/file.rb +86 -6
  23. data/lib/rdf/vocab.rb +158 -58
  24. data/lib/rdf/vocab/cc.rb +28 -11
  25. data/lib/rdf/vocab/cert.rb +127 -9
  26. data/lib/rdf/vocab/dc.rb +242 -60
  27. data/lib/rdf/vocab/dc11.rb +42 -20
  28. data/lib/rdf/vocab/doap.rb +121 -42
  29. data/lib/rdf/vocab/exif.rb +540 -165
  30. data/lib/rdf/vocab/foaf.rb +353 -66
  31. data/lib/rdf/vocab/geo.rb +40 -10
  32. data/lib/rdf/vocab/gr.rb +1094 -0
  33. data/lib/rdf/vocab/http.rb +81 -23
  34. data/lib/rdf/vocab/ical.rb +361 -0
  35. data/lib/rdf/vocab/ma.rb +281 -69
  36. data/lib/rdf/vocab/og.rb +98 -0
  37. data/lib/rdf/vocab/owl.rb +226 -56
  38. data/lib/rdf/vocab/prov.rb +489 -0
  39. data/lib/rdf/vocab/rdfs.rb +38 -14
  40. data/lib/rdf/vocab/rsa.rb +25 -9
  41. data/lib/rdf/vocab/rss.rb +29 -11
  42. data/lib/rdf/vocab/schema.rb +3729 -647
  43. data/lib/rdf/vocab/sioc.rb +224 -89
  44. data/lib/rdf/vocab/skos.rb +141 -33
  45. data/lib/rdf/vocab/skosxl.rb +43 -0
  46. data/lib/rdf/vocab/v.rb +154 -0
  47. data/lib/rdf/vocab/vcard.rb +337 -0
  48. data/lib/rdf/vocab/void.rb +142 -0
  49. data/lib/rdf/vocab/wdrs.rb +129 -0
  50. data/lib/rdf/vocab/wot.rb +52 -18
  51. data/lib/rdf/vocab/xhtml.rb +3 -6
  52. data/lib/rdf/vocab/xhv.rb +239 -0
  53. data/lib/rdf/writer.rb +3 -3
  54. metadata +81 -14
@@ -1,26 +1,84 @@
1
+ # This file generated automatically using vocab-fetch from http://www.w3.org/2006/http#
2
+ require 'rdf'
1
3
  module RDF
2
- ##
3
- # Hypertext Transfer Protocol (HTTP) vocabulary.
4
- #
5
- # @see http://www.w3.org/2006/http
6
- class HTTP < Vocabulary("http://www.w3.org/2006/http#")
7
- property :abs_path
8
- property :absoluteURI
9
- property :authority
10
- property :body
11
- property :connectionAuthority
12
- property :elementName
13
- property :elementValue
14
- property :fieldName
15
- property :fieldValue
16
- property :header
17
- property :param
18
- property :paramName
19
- property :paramValue
20
- property :request
21
- property :requestURI
22
- property :response
23
- property :responseCode
24
- property :version
4
+ class HTTP < StrictVocabulary("http://www.w3.org/2006/http#")
5
+
6
+ # Class definitions
7
+ property :ConnectRequest, :label => 'Connect', :comment =>
8
+ %(The CONNECT request)
9
+ property :Connection, :label => 'Connection', :comment =>
10
+ %(An HTTP connection)
11
+ property :DeleteRequest, :label => 'Delete', :comment =>
12
+ %(The DELETE request)
13
+ property :GetRequest, :label => 'Get', :comment =>
14
+ %(The GET request)
15
+ property :HeadRequest, :label => 'Head', :comment =>
16
+ %(The HEAD request)
17
+ property :HeaderElement, :label => 'Header element', :comment =>
18
+ %(An element of a comma-separated list in a field value)
19
+ property :MessageHeader, :label => 'Message header', :comment =>
20
+ %(A message header according to section 4.2 of HTTP 1.1)
21
+ property :NewResponseCode, :label => 'New Response Code', :comment =>
22
+ %(New HTTP Response Code. If you want to define new header
23
+ names, subclass this stub.)
24
+ property :OptionsRequest, :label => 'Options', :comment =>
25
+ %(The OPTIONS request)
26
+ property :Param, :label => 'Parameter', :comment =>
27
+ %(A parameter for a header element)
28
+ property :PostRequest, :label => 'Post', :comment =>
29
+ %(The POST request)
30
+ property :PutRequest, :label => 'Put', :comment =>
31
+ %(The PUT request)
32
+ property :Request, :label => 'Request', :comment =>
33
+ %(An HTTP request)
34
+ property :RequestURI, :label => 'Request URI', :comment =>
35
+ %(The HTTP request URI)
36
+ property :Response, :label => 'Response', :comment =>
37
+ %(The HTTP Response)
38
+ property :ResponseCode, :label => 'Response code', :comment =>
39
+ %(The HTTP Response Code)
40
+ property :ResponseCode, :label => 'Response code', :comment =>
41
+ %(The HTTP Response Code)
42
+ property :TraceRequest, :label => 'Trace', :comment =>
43
+ %(The TRACE request)
44
+ property :HeaderName
45
+
46
+ # Property definitions
47
+ property :abs_path, :label => 'Absolute path', :comment =>
48
+ %(An absolute path used as request URI)
49
+ property :absoluteURI, :label => 'Absolute request URI', :comment =>
50
+ %(An absolute request URI)
51
+ property :authority, :label => 'Authority', :comment =>
52
+ %(An authority used as request URI)
53
+ property :connectionAuthority, :label => 'Connection authority', :comment =>
54
+ %(An HTTP Connection authority)
55
+ property :elementName, :label => 'Element name', :comment =>
56
+ %(Has an element name)
57
+ property :elementValue, :label => 'Element value', :comment =>
58
+ %(Has an element value)
59
+ property :body, :label => 'Entity body', :comment =>
60
+ %(The HTTP entity body)
61
+ property :fieldName, :label => 'Field name', :comment =>
62
+ %(Has a field name)
63
+ property :fieldValue, :label => 'Field value', :comment =>
64
+ %(Has a field value)
65
+ property :header, :label => 'Header', :comment =>
66
+ %(Has a header)
67
+ property :param, :label => 'Parameter', :comment =>
68
+ %(Has a parameter)
69
+ property :paramName, :label => 'Parameter name', :comment =>
70
+ %(Has a parameter name)
71
+ property :paramValue, :label => 'Parameter value', :comment =>
72
+ %(Has a parameter value)
73
+ property :request, :label => 'Request', :comment =>
74
+ %(Has an HTTP request)
75
+ property :requestURI, :label => 'Request URI', :comment =>
76
+ %(Has an HTTP request URI)
77
+ property :response, :label => 'Response', :comment =>
78
+ %(Has an HTTP response)
79
+ property :responseCode, :label => 'Response code', :comment =>
80
+ %(Has an HTTP response code)
81
+ property :version, :label => 'Version', :comment =>
82
+ %(The HTTP version)
25
83
  end
26
84
  end
@@ -0,0 +1,361 @@
1
+ # This file generated automatically using vocab-fetch from http://www.w3.org/2002/12/cal/icaltzd#
2
+ require 'rdf'
3
+ module RDF
4
+ class ICAL < StrictVocabulary("http://www.w3.org/2002/12/cal/icaltzd#")
5
+
6
+ # Class definitions
7
+ property :Vevent, :label => 'Event', :comment =>
8
+ %(Provide a grouping of component properties that describe an
9
+ event.)
10
+ property :Vtodo, :label => 'To-do', :comment =>
11
+ %(Provide a grouping of calendar properties that describe a
12
+ to-do.)
13
+ property :Vcalendar, :label => 'VCALENDAR'
14
+ property :DomainOf_rrule
15
+ property :List_of_Float
16
+ property :Valarm, :comment =>
17
+ %(Provide a grouping of component properties that define an
18
+ alarm.)
19
+ property :"Value_CAL-ADDRESS"
20
+ property :Value_DATE
21
+ property :Value_DURATION
22
+ property :Value_PERIOD
23
+ property :Value_RECUR
24
+ property :Vfreebusy, :comment =>
25
+ %(Provide a grouping of component properties that describe
26
+ either a request for free/busy time, describe a response to a
27
+ request for free/busy time or describe a published set of busy
28
+ time.)
29
+ property :Vjournal, :comment =>
30
+ %(Provide a grouping of component properties that describe a
31
+ journal entry.)
32
+ property :Vtimezone, :comment =>
33
+ %(Provide a grouping of component properties that defines a time
34
+ zone.)
35
+
36
+ # Property definitions
37
+ property :byday, :label => 'BYDAY'
38
+ property :byhour, :label => 'BYHOUR'
39
+ property :byminute, :label => 'BYMINUTE'
40
+ property :bymonth, :label => 'BYMONTH'
41
+ property :bysecond, :label => 'BYSECOND'
42
+ property :bysetpos, :label => 'BYSETPOS'
43
+ property :byweekno, :label => 'BYWEEKNO'
44
+ property :byyearday, :label => 'BYYEARDAY'
45
+ property :count, :label => 'COUNT'
46
+ property :freq, :label => 'FREQ'
47
+ property :interval, :label => 'INTERVAL'
48
+ property :until, :label => 'UNTIL'
49
+ property :wkst, :label => 'WKST'
50
+ property :dtend, :label => 'end', :comment =>
51
+ %(This property specifies the date and time that a calendar
52
+ component ends.)
53
+ property :dtend, :label => 'end', :comment =>
54
+ %(default value type: DATE-TIME)
55
+ property :"X-", :comment =>
56
+ %(value type: TEXT)
57
+ property :"X-", :comment =>
58
+ %(This class of property provides a framework for defining
59
+ non-standard properties.)
60
+ property :action, :comment =>
61
+ %(This property defines the action to be invoked when an alarm
62
+ is triggered.)
63
+ property :action, :comment =>
64
+ %(value type: TEXT)
65
+ property :altrep, :comment =>
66
+ %(To specify an alternate text representation for the property
67
+ value.)
68
+ property :calscale, :comment =>
69
+ %(value type: TEXT)
70
+ property :calscale, :comment =>
71
+ %(This property defines the calendar scale used for the calendar
72
+ information specified in the iCalendar object.)
73
+ property :categories, :comment =>
74
+ %(value type: TEXT)
75
+ property :categories, :comment =>
76
+ %(This property defines the categories for a calendar component.)
77
+ property :class, :comment =>
78
+ %(value type: TEXT)
79
+ property :class, :comment =>
80
+ %(This property defines the access classification for a calendar
81
+ component.)
82
+ property :cn, :comment =>
83
+ %(To specify the common name to be associated with the calendar
84
+ user specified by the property.)
85
+ property :comment, :comment =>
86
+ %(value type: TEXT)
87
+ property :comment, :comment =>
88
+ %(This property specifies non-processing information intended to
89
+ provide a comment to the calendar user.)
90
+ property :completed, :comment =>
91
+ %(This property defines the date and time that a to-do was
92
+ actually completed.)
93
+ property :completed, :comment =>
94
+ %(value type: DATE-TIME)
95
+ property :contact, :comment =>
96
+ %(value type: TEXT)
97
+ property :contact, :comment =>
98
+ %(The property is used to represent contact information or
99
+ alternately a reference to contact information associated with
100
+ the calendar component.)
101
+ property :created, :comment =>
102
+ %(value type: DATE-TIME)
103
+ property :created, :comment =>
104
+ %(This property specifies the date and time that the calendar
105
+ information was created by the calendar user agent in the
106
+ calendar store. Note: This is analogous to the creation date
107
+ and time for a file in the file system.)
108
+ property :cutype, :comment =>
109
+ %(To specify the type of calendar user specified by the
110
+ property.)
111
+ property :delegatedFrom, :comment =>
112
+ %(To specify the calendar users that have delegated their
113
+ participation to the calendar user specified by the property.)
114
+ property :delegatedTo, :comment =>
115
+ %(To specify the calendar users to whom the calendar user
116
+ specified by the property has delegated participation.)
117
+ property :description, :comment =>
118
+ %(value type: TEXT)
119
+ property :description, :comment =>
120
+ %(This property provides a more complete description of the
121
+ calendar component, than that provided by the "SUMMARY"
122
+ property.)
123
+ property :dir, :comment =>
124
+ %(To specify reference to a directory entry associated with the
125
+ calendar user specified by the property.)
126
+ property :dtstamp, :comment =>
127
+ %(value type: DATE-TIME)
128
+ property :dtstamp, :comment =>
129
+ %(The property indicates the date/time that the instance of the
130
+ iCalendar object was created.)
131
+ property :due, :comment =>
132
+ %(default value type: DATE-TIME)
133
+ property :due, :comment =>
134
+ %(This property defines the date and time that a to-do is
135
+ expected to be completed.)
136
+ property :encoding, :comment =>
137
+ %(To specify an alternate inline encoding for the property
138
+ value.)
139
+ property :exdate, :comment =>
140
+ %(default value type: DATE-TIME)
141
+ property :exdate, :comment =>
142
+ %(This property defines the list of date/time exceptions for a
143
+ recurring calendar component.)
144
+ property :fbtype, :comment =>
145
+ %(To specify the free or busy time type.)
146
+ property :fmttype, :comment =>
147
+ %(To specify the content type of a referenced object.)
148
+ property :language, :comment =>
149
+ %(To specify the language for text values in a property or
150
+ property parameter.)
151
+ property :lastModified, :comment =>
152
+ %(The property specifies the date and time that the information
153
+ associated with the calendar component was last revised in the
154
+ calendar store. Note: This is analogous to the modification
155
+ date and time for a file in the file system.)
156
+ property :lastModified, :comment =>
157
+ %(value type: DATE-TIME)
158
+ property :member, :comment =>
159
+ %(To specify the group or list membership of the calendar user
160
+ specified by the property.)
161
+ property :method, :comment =>
162
+ %(value type: TEXT)
163
+ property :method, :comment =>
164
+ %(This property defines the iCalendar object method associated
165
+ with the calendar object.)
166
+ property :partstat, :comment =>
167
+ %(To specify the participation status for the calendar user
168
+ specified by the property.)
169
+ property :percentComplete, :comment =>
170
+ %(This property is used by an assignee or delegatee of a to-do
171
+ to convey the percent completion of a to-do to the Organizer.)
172
+ property :percentComplete, :comment =>
173
+ %(value type: INTEGER)
174
+ property :priority, :comment =>
175
+ %(value type: INTEGER)
176
+ property :priority, :comment =>
177
+ %(The property defines the relative priority for a calendar
178
+ component.)
179
+ property :prodid, :comment =>
180
+ %(value type: TEXT)
181
+ property :prodid, :comment =>
182
+ %(This property specifies the identifier for the product that
183
+ created the iCalendar object.)
184
+ property :range, :comment =>
185
+ %(To specify the effective range of recurrence instances from
186
+ the instance specified by the recurrence identifier specified
187
+ by the property.)
188
+ property :rdate, :comment =>
189
+ %(This property defines the list of date/times for a recurrence
190
+ set.)
191
+ property :rdate, :comment =>
192
+ %(default value type: DATE-TIME)
193
+ property :recurrenceId, :comment =>
194
+ %(default value type: DATE-TIME)
195
+ property :recurrenceId, :comment =>
196
+ %(This property is used in conjunction with the "UID" and
197
+ "SEQUENCE" property to identify a specific instance of a
198
+ recurring "VEVENT", "VTODO" or "VJOURNAL" calendar component.
199
+ The property value is the effective value of the "DTSTART"
200
+ property of the recurrence instance.)
201
+ property :related, :comment =>
202
+ %(To specify the relationship of the alarm trigger with respect
203
+ to the start or end of the calendar component.)
204
+ property :relatedTo, :comment =>
205
+ %(value type: TEXT)
206
+ property :relatedTo, :comment =>
207
+ %(The property is used to represent a relationship or reference
208
+ between one calendar component and another.)
209
+ property :reltype, :comment =>
210
+ %(To specify the type of hierarchical relationship associated
211
+ with the calendar component specified by the property.)
212
+ property :repeat, :comment =>
213
+ %(This property defines the number of time the alarm should be
214
+ repeated, after the initial trigger.)
215
+ property :repeat, :comment =>
216
+ %(value type: INTEGER)
217
+ property :requestStatus, :comment =>
218
+ %(value type: TEXT)
219
+ property :requestStatus, :comment =>
220
+ %(This property defines the status code returned for a
221
+ scheduling request.)
222
+ property :resources, :comment =>
223
+ %(value type: TEXT)
224
+ property :resources, :comment =>
225
+ %(This property defines the equipment or resources anticipated
226
+ for an activity specified by a calendar entity..)
227
+ property :role, :comment =>
228
+ %(To specify the participation role for the calendar user
229
+ specified by the property.)
230
+ property :rsvp, :comment =>
231
+ %(To specify whether there is an expectation of a favor of a
232
+ reply from the calendar user specified by the property value.)
233
+ property :sentBy, :comment =>
234
+ %(To specify the calendar user that is acting on behalf of the
235
+ calendar user specified by the property.)
236
+ property :sequence, :comment =>
237
+ %(value type: integer)
238
+ property :sequence, :comment =>
239
+ %(This property defines the revision sequence number of the
240
+ calendar component within a sequence of revisions.)
241
+ property :status, :comment =>
242
+ %(This property defines the overall status or confirmation for
243
+ the calendar component.)
244
+ property :status, :comment =>
245
+ %(value type: TEXT)
246
+ property :transp, :comment =>
247
+ %(This property defines whether an event is transparent or not
248
+ to busy time searches.)
249
+ property :transp, :comment =>
250
+ %(value type: TEXT)
251
+ property :tzid, :comment =>
252
+ %(This property specifies the text value that uniquely
253
+ identifies the "VTIMEZONE" calendar component.)
254
+ property :tzid, :comment =>
255
+ %(To specify the identifier for the time zone definition for a
256
+ time component in the property value.)
257
+ property :tzid, :comment =>
258
+ %(value type: TEXT)
259
+ property :tzname, :comment =>
260
+ %(This property specifies the customary designation for a time
261
+ zone description.)
262
+ property :tzname, :comment =>
263
+ %(value type: TEXT)
264
+ property :tzoffsetfrom, :comment =>
265
+ %(value type: UTC-OFFSET)
266
+ property :tzoffsetfrom, :comment =>
267
+ %(This property specifies the offset which is in use prior to
268
+ this time zone observance.)
269
+ property :tzoffsetto, :comment =>
270
+ %(value type: UTC-OFFSET)
271
+ property :tzoffsetto, :comment =>
272
+ %(This property specifies the offset which is in use in this
273
+ time zone observance.)
274
+ property :uid, :comment =>
275
+ %(value type: TEXT)
276
+ property :uid, :comment =>
277
+ %(This property defines the persistent, globally unique
278
+ identifier for the calendar component.)
279
+ property :version, :comment =>
280
+ %(This property specifies the identifier corresponding to the
281
+ highest version number or the minimum and maximum range of the
282
+ iCalendar specification that is required in order to interpret
283
+ the iCalendar object.)
284
+ property :version, :comment =>
285
+ %(value type: TEXT)
286
+ property :location, :label => 'location', :comment =>
287
+ %(value type: TEXT)
288
+ property :location, :label => 'location', :comment =>
289
+ %(The property defines the intended venue for the activity
290
+ defined by a calendar component.)
291
+ property :dtstart, :label => 'start', :comment =>
292
+ %(default value type: DATE-TIME)
293
+ property :dtstart, :label => 'start', :comment =>
294
+ %(This property specifies when the calendar component begins.)
295
+ property :summary, :label => 'summary', :comment =>
296
+ %(This property defines a short summary or subject for the
297
+ calendar component.)
298
+ property :summary, :label => 'summary', :comment =>
299
+ %(value type: TEXT)
300
+ property :daylight, :label => 'DAYLIGHT'
301
+ property :standard, :label => 'STANDARD'
302
+ property :attendee, :label => 'attendee', :comment =>
303
+ %(The property defines an "Attendee" within a calendar
304
+ component.)
305
+ property :attendee, :label => 'attendee', :comment =>
306
+ %(value type: CAL-ADDRESS)
307
+ property :attach, :comment =>
308
+ %(default value type: URI)
309
+ property :attach, :comment =>
310
+ %(The property provides the capability to associate a document
311
+ object with a calendar component.)
312
+ property :calAddress
313
+ property :component
314
+ property :duration, :comment =>
315
+ %(The property specifies a positive duration of time.)
316
+ property :duration, :comment =>
317
+ %(value type: DURATION)
318
+ property :exrule, :comment =>
319
+ %(value type: RECUR)
320
+ property :exrule, :comment =>
321
+ %(This property defines a rule or repeating pattern for an
322
+ exception to a recurrence set.)
323
+ property :freebusy, :comment =>
324
+ %(The property defines one or more free or busy time intervals.)
325
+ property :freebusy, :comment =>
326
+ %(value type: PERIOD)
327
+ property :geo, :comment =>
328
+ %(value type: list of FLOAT)
329
+ property :geo, :comment =>
330
+ %(This property specifies information related to the global
331
+ position for the activity specified by a calendar component.)
332
+ property :organizer, :comment =>
333
+ %(value type: CAL-ADDRESS)
334
+ property :organizer, :comment =>
335
+ %(The property defines the organizer for a calendar component.)
336
+ property :rrule, :comment =>
337
+ %(This property defines a rule or repeating pattern for
338
+ recurring events, to-dos, or time zone definitions.)
339
+ property :rrule, :comment =>
340
+ %(value type: RECUR)
341
+ property :trigger, :comment =>
342
+ %(default value type: DURATION)
343
+ property :trigger, :comment =>
344
+ %(This property specifies when an alarm will trigger.)
345
+ property :tzurl, :comment =>
346
+ %(value type: URI)
347
+ property :tzurl, :comment =>
348
+ %(The TZURL provides a means for a VTIMEZONE component to point
349
+ to a network location that can be used to retrieve an up-to-
350
+ date version of itself.)
351
+ property :url, :label => 'see also', :comment =>
352
+ %(value type: URI)
353
+ property :url, :label => 'see also', :comment =>
354
+ %(This property defines a Uniform Resource Locator \(URL\)
355
+ associated with the iCalendar object.)
356
+
357
+ # Datatype definitions
358
+ property :"Value_DATE-TIME"
359
+ property :dateTime
360
+ end
361
+ end