rdf 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS +1 -0
  3. data/VERSION +1 -1
  4. data/lib/rdf.rb +10 -48
  5. data/lib/rdf/cli/vocab-loader.rb +78 -142
  6. data/lib/rdf/mixin/enumerable.rb +25 -0
  7. data/lib/rdf/mixin/mutable.rb +3 -0
  8. data/lib/rdf/model/graph.rb +1 -1
  9. data/lib/rdf/model/node.rb +25 -2
  10. data/lib/rdf/model/statement.rb +20 -12
  11. data/lib/rdf/model/uri.rb +11 -2
  12. data/lib/rdf/nquads.rb +8 -6
  13. data/lib/rdf/ntriples/writer.rb +14 -10
  14. data/lib/rdf/query/pattern.rb +10 -8
  15. data/lib/rdf/reader.rb +11 -2
  16. data/lib/rdf/repository.rb +1 -1
  17. data/lib/rdf/vocab.rb +396 -96
  18. data/lib/rdf/vocab/cc.rb +117 -25
  19. data/lib/rdf/vocab/cert.rb +230 -117
  20. data/lib/rdf/vocab/dc.rb +930 -233
  21. data/lib/rdf/vocab/dc11.rb +151 -37
  22. data/lib/rdf/vocab/doap.rb +326 -114
  23. data/lib/rdf/vocab/exif.rb +930 -533
  24. data/lib/rdf/vocab/foaf.rb +602 -346
  25. data/lib/rdf/vocab/geo.rb +139 -33
  26. data/lib/rdf/vocab/gr.rb +1551 -1084
  27. data/lib/rdf/vocab/ht.rb +319 -0
  28. data/lib/rdf/vocab/ical.rb +507 -349
  29. data/lib/rdf/vocab/ma.rb +504 -280
  30. data/lib/rdf/vocab/mo.rb +2425 -876
  31. data/lib/rdf/vocab/og.rb +178 -90
  32. data/lib/rdf/vocab/owl.rb +513 -219
  33. data/lib/rdf/vocab/prov.rb +1557 -479
  34. data/lib/rdf/vocab/rdfs.rb +107 -31
  35. data/lib/rdf/vocab/rdfv.rb +165 -0
  36. data/lib/rdf/vocab/rsa.rb +61 -18
  37. data/lib/rdf/vocab/rss.rb +55 -22
  38. data/lib/rdf/vocab/schema.rb +8590 -3995
  39. data/lib/rdf/vocab/sioc.rb +657 -218
  40. data/lib/rdf/vocab/skos.rb +227 -134
  41. data/lib/rdf/vocab/skosxl.rb +47 -33
  42. data/lib/rdf/vocab/vcard.rb +693 -327
  43. data/lib/rdf/vocab/void.rb +175 -132
  44. data/lib/rdf/vocab/vs.rb +27 -0
  45. data/lib/rdf/vocab/wdrs.rb +123 -119
  46. data/lib/rdf/vocab/wot.rb +155 -45
  47. data/lib/rdf/vocab/xhtml.rb +2 -1
  48. data/lib/rdf/vocab/xhv.rb +496 -231
  49. data/lib/rdf/vocab/xsd.rb +382 -53
  50. data/lib/rdf/writer.rb +8 -4
  51. metadata +5 -4
  52. data/lib/rdf/vocab/http.rb +0 -84
  53. data/lib/rdf/vocab/v.rb +0 -154
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-06 00:00:00.000000000 Z
13
+ date: 2014-06-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf-spec
@@ -202,7 +202,7 @@ files:
202
202
  - lib/rdf/vocab/foaf.rb
203
203
  - lib/rdf/vocab/geo.rb
204
204
  - lib/rdf/vocab/gr.rb
205
- - lib/rdf/vocab/http.rb
205
+ - lib/rdf/vocab/ht.rb
206
206
  - lib/rdf/vocab/ical.rb
207
207
  - lib/rdf/vocab/ma.rb
208
208
  - lib/rdf/vocab/mo.rb
@@ -210,15 +210,16 @@ files:
210
210
  - lib/rdf/vocab/owl.rb
211
211
  - lib/rdf/vocab/prov.rb
212
212
  - lib/rdf/vocab/rdfs.rb
213
+ - lib/rdf/vocab/rdfv.rb
213
214
  - lib/rdf/vocab/rsa.rb
214
215
  - lib/rdf/vocab/rss.rb
215
216
  - lib/rdf/vocab/schema.rb
216
217
  - lib/rdf/vocab/sioc.rb
217
218
  - lib/rdf/vocab/skos.rb
218
219
  - lib/rdf/vocab/skosxl.rb
219
- - lib/rdf/vocab/v.rb
220
220
  - lib/rdf/vocab/vcard.rb
221
221
  - lib/rdf/vocab/void.rb
222
+ - lib/rdf/vocab/vs.rb
222
223
  - lib/rdf/vocab/wdrs.rb
223
224
  - lib/rdf/vocab/wot.rb
224
225
  - lib/rdf/vocab/xhtml.rb
@@ -1,84 +0,0 @@
1
- # This file generated automatically using vocab-fetch from http://www.w3.org/2006/http#
2
- require 'rdf'
3
- module RDF
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)
83
- end
84
- end
data/lib/rdf/vocab/v.rb DELETED
@@ -1,154 +0,0 @@
1
- # This file generated automatically using vocab-fetch from http://rdf.data-vocabulary.org/
2
- require 'rdf'
3
- module RDF
4
- class V < StrictVocabulary("http://rdf.data-vocabulary.org/")
5
-
6
- # Class definitions
7
- property :"#Address", :comment =>
8
- %(Postal address for a Person or Organization.)
9
- property :"#Breadcrumb", :comment =>
10
- %(Represents a single Breadcrumb in a Breadcrumb trail.)
11
- property :"#Breadcrumb", :comment =>
12
- %(Represents a single Breadcrumb in a Breadcrumb trail.)
13
- property :"#Offer", :comment =>
14
- %(Represents an offer to sell a product.)
15
- property :"#Offer", :comment =>
16
- %(Represents an offer to sell a product.)
17
- property :"#OfferAggregate", :comment =>
18
- %(Represents a collection of offers to sell a product.)
19
- property :"#OfferAggregate", :comment =>
20
- %(Represents a collection of offers to sell a product.)
21
- property :"#Organization", :comment =>
22
- %(An Organization is a business, agency, school, etc.)
23
- property :"#Organization", :comment =>
24
- %(An Organization is a business, agency, school, etc.)
25
- property :"#Person", :comment =>
26
- %(Represents a Person, living/dead/fictional.)
27
- property :"#Person", :comment =>
28
- %(Represents a Person, living/dead/fictional.)
29
- property :"#Product", :comment =>
30
- %(Represents a product or service in a Review or
31
- Review-aggregate.)
32
- property :"#Product", :comment =>
33
- %(Represents a product or service in a Review or
34
- Review-aggregate.)
35
- property :"#Rating", :comment =>
36
- %(Represents a rating in a Review or Review-aggregate.)
37
- property :"#Rating", :comment =>
38
- %(Represents a rating in a Review or Review-aggregate.)
39
- property :"#Recipe", :comment =>
40
- %(A single instance of a Recipe.)
41
- property :"#Recipe", :comment =>
42
- %(A single instance of a Recipe.)
43
- property :"#Review", :comment =>
44
- %(A single instance of a Review.)
45
- property :"#Review", :comment =>
46
- %(A single instance of a Review.)
47
- property :"#Review-aggregate", :comment =>
48
- %(Represents data from a collection of reviews. Can be used
49
- whether or not there is instance-level Review data on the
50
- page.)
51
- property :"#ingredient", :comment =>
52
- %(Represents ingredients used in a recipe.)
53
- property :"#instructions", :comment =>
54
- %(Represents the steps to make a dish.)
55
- property :"#nutrition", :comment =>
56
- %(Represents the nutrition information about a recipe.)
57
- property :"#timeRange", :comment =>
58
- %(Represents the length of time it takes to prepare a recipe.)
59
- property :"#timeRange", :comment =>
60
- %(Represents the length of time it takes to prepare a recipe.)
61
-
62
- # Property definitions
63
- property :"#acquaintance"
64
- property :"#address"
65
- property :"#affiliation", :comment =>
66
- %(An affiliation can be specified by a string literal or an
67
- Organization instance.)
68
- property :"#amount"
69
- property :"#author", :comment =>
70
- %(An author of the recipe can be specified by a string literal
71
- or a Person instance.)
72
- property :"#availability"
73
- property :"#average", :comment =>
74
- %(The average of an aggregate value.)
75
- property :"#best", :comment =>
76
- %(The best value of a rating scale \(default 5\).)
77
- property :"#brand"
78
- property :"#calories"
79
- property :"#carbohydrates"
80
- property :"#category"
81
- property :"#child"
82
- property :"#cholesterol"
83
- property :"#colleague"
84
- property :"#condition"
85
- property :"#contact"
86
- property :"#cookTime"
87
- property :"#count", :comment =>
88
- %(The total number of items used in an aggregate \(e.g., number
89
- of reviews\).)
90
- property :"#country-name"
91
- property :"#currency"
92
- property :"#description"
93
- property :"#dtreviewed", :comment =>
94
- %(The date of the review.)
95
- property :"#duration"
96
- property :"#fat"
97
- property :"#fiber"
98
- property :"#friend"
99
- property :"#highprice"
100
- property :"#identifier"
101
- property :"#image"
102
- property :"#instruction"
103
- property :"#itemoffered"
104
- property :"#itemreviewed"
105
- property :"#locality"
106
- property :"#lowprice"
107
- property :"#max", :comment =>
108
- %(The maximum value of an aggregated Rating.)
109
- property :"#min", :comment =>
110
- %(The minimum value of an aggregated Rating.)
111
- property :"#name"
112
- property :"#nickname"
113
- property :"#offercount"
114
- property :"#offerdetails"
115
- property :"#offerurl"
116
- property :"#photo"
117
- property :"#postal-code"
118
- property :"#prepTime"
119
- property :"#price"
120
- property :"#pricerange", :comment =>
121
- %(The price range of products and services offered by a
122
- restaurant, business or other organization.)
123
- property :"#pricevaliduntil"
124
- property :"#protein"
125
- property :"#published"
126
- property :"#quantity"
127
- property :"#rating", :comment =>
128
- %(A rating can be specified by a string literal or a Rating
129
- instance.)
130
- property :"#recipeType"
131
- property :"#region"
132
- property :"#reviewer", :comment =>
133
- %(A reviewer can be specified by a string literal or a Person
134
- instance.)
135
- property :"#role"
136
- property :"#saturatedFat"
137
- property :"#seller"
138
- property :"#servingSize"
139
- property :"#street-address"
140
- property :"#sugar"
141
- property :"#summary"
142
- property :"#tag"
143
- property :"#tel"
144
- property :"#title"
145
- property :"#totalTime"
146
- property :"#unsaturatedFat"
147
- property :"#url"
148
- property :"#value", :comment =>
149
- %(The value of a single Rating.)
150
- property :"#worst", :comment =>
151
- %(The poorest value of a rating scale \(default 1\).)
152
- property :"#yield"
153
- end
154
- end