rdf-rdfa 0.3.4.1 → 0.3.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.3.4.2
2
+ * Fix Writer output for multi-valued properties when there is no :property\_values Haml template.
3
+ * Simplify templates by using pre-rendered CURIEs.
4
+
1
5
  ### 0.3.4.1
2
6
  * Change built-in profiles to use alias\_method\_chain, as they were being removed from the cache.
3
7
  * Fixes to Writer template detection with type.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4.1
1
+ 0.3.4.2
@@ -41,13 +41,19 @@ module RDF::RDFa
41
41
  Regexp::EXTENDED)
42
42
 
43
43
  # Host language
44
- # @return [:xml1, :xhtml1, :xhtml5, :html4, :html5, :svg]
44
+ # @attr [:xml1, :xhtml1, :xhtml5, :html4, :html5, :svg]
45
45
  attr_reader :host_language
46
46
 
47
47
  # Version
48
- # @return [:"rdfa1.0", :"rdfa1.1"]
48
+ # @attr [:"rdfa1.0", :"rdfa1.1"]
49
49
  attr_reader :version
50
50
 
51
+ ##
52
+ # Returns the base URI determined by this reader.
53
+ #
54
+ # @attr [RDF::URI]
55
+ attr_reader :base_uri
56
+
51
57
  # The Recursive Baggage
52
58
  # @private
53
59
  class EvaluationContext # :nodoc:
@@ -295,23 +295,23 @@ module RDF::RDFa
295
295
  #
296
296
  # The default Haml template is:
297
297
  # - if element == :li
298
- # %li{:about => get_curie(subject), :typeof => typeof}
298
+ # %li{:about => resource, :typeof => typeof}
299
299
  # - if typeof
300
300
  # %span.type!= typeof
301
301
  # - predicates.each do |predicate|
302
302
  # != yield(predicate)
303
303
  # - elsif rel && typeof
304
- # %div{:rel => get_curie(rel)}
305
- # %div{:about => get_curie(subject), :typeof => typeof}
304
+ # %div{:rel => rel}
305
+ # %div{:about => about, :typeof => typeof}
306
306
  # %span.type!= typeof
307
307
  # - predicates.each do |predicate|
308
308
  # != yield(predicate)
309
309
  # - elsif rel
310
- # %div{:rel => get_curie(rel), :resource => get_curie(subject)}
310
+ # %div{:rel => rel, :resource => resource}
311
311
  # - predicates.each do |predicate|
312
312
  # != yield(predicate)
313
313
  # - else
314
- # %div{:about => get_curie(subject), :typeof => typeof}
314
+ # %div{:about => about, :typeof => typeof}
315
315
  # - if typeof
316
316
  # %span.type!= typeof
317
317
  # - predicates.each do |predicate|
@@ -348,6 +348,7 @@ module RDF::RDFa
348
348
  template = options[:haml] || :subject
349
349
  options = {
350
350
  :about => (get_curie(subject) unless options[:rel]),
351
+ :base => @base_uri,
351
352
  :element => nil,
352
353
  :predicates => predicates,
353
354
  :rel => nil,
@@ -366,9 +367,8 @@ module RDF::RDFa
366
367
  # is also a subject and is rendered underneath the first referencing subject).
367
368
  #
368
369
  # The default Haml template for a single-valued property is:
369
- # - object = objects.first
370
370
  # - if heading_predicates.include?(predicate) && object.literal?
371
- # %h1{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}&= get_value(object)
371
+ # %h1{:property => property, :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
372
372
  # - else
373
373
  # %div.property
374
374
  # %span.label
@@ -376,31 +376,31 @@ module RDF::RDFa
376
376
  # - if res = yield(object)
377
377
  # != res
378
378
  # - elsif object.node?
379
- # %span{:resource => get_curie(object), :rel => get_curie(predicate)}= get_curie(object)
379
+ # %span{:resource => get_curie(object), :rel => rel}= get_curie(object)
380
380
  # - elsif object.uri?
381
- # %a{:href => object.to_s, :rel => get_curie(predicate)}= object.to_s
381
+ # %a{:href => object.to_s, :rel => rel}= object.to_s
382
382
  # - elsif object.datatype == RDF.XMLLiteral
383
- # %span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
383
+ # %span{:property => property, :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
384
384
  # - else
385
- # %span{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}&= get_value(object)
385
+ # %span{:property => property, :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
386
386
  #
387
387
  # The default Haml template for a multi-valued property is:
388
- # %div.property
389
- # %span.label
390
- # = get_predicate_name(predicate)
391
- # %ul{:rel => (get_curie(rel) if rel), :property => (get_curie(property) if property)}
392
- # - objects.each do |object|
393
- # - if res = yield(object)
394
- # != res
395
- # - elsif object.node?
396
- # %li{:resource => get_curie(object)}= get_curie(object)
397
- # - elsif object.uri?
398
- # %li
399
- # %a{:href => object.to_s}= object.to_s
400
- # - elsif object.datatype == RDF.XMLLiteral
401
- # %li{:lang => get_lang(object), :datatype => get_curie(object.datatype)}<!= get_value(object)
402
- # - else
403
- # %li{:content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}&= get_value(object)
388
+ # %div.property
389
+ # %span.label
390
+ # = get_predicate_name(predicate)
391
+ # %ul{:rel => rel, :property => property}
392
+ # - objects.each do |object|
393
+ # - if res = yield(object)
394
+ # != res
395
+ # - elsif object.node?
396
+ # %li{:resource => get_curie(object)}= get_curie(object)
397
+ # - elsif object.uri?
398
+ # %li
399
+ # %a{:href => object.to_s}= object.to_s
400
+ # - elsif object.datatype == RDF.XMLLiteral
401
+ # %li{:lang => get_lang(object), :datatype => get_curie(object.datatype)}<!= get_value(object)
402
+ # - else
403
+ # %li{:content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
404
404
  #
405
405
  # If a multi-valued property definition is not found within the template,
406
406
  # the writer will use the single-valued property definition multiple times.
@@ -427,19 +427,33 @@ module RDF::RDFa
427
427
  # @return String
428
428
  # The rendered document is returned as a string
429
429
  def render_property(predicate, objects, property, rel, options = {})
430
- template = options[:haml] || (
431
- objects.to_a.length > 1 &&
432
- haml_template.has_key?(:property_values) ?
433
- :property_values :
434
- :property_value)
435
- options = {
436
- :objects => objects,
437
- :predicate => predicate,
438
- :property => property,
439
- :rel => rel,
440
- }.merge(options)
441
- hamlify(template, options) do |object|
442
- yield(object) if block_given?
430
+ # If there are multiple objects, and no :properti_values is defined, call recursively with
431
+ # each object
432
+
433
+ template = options[:haml]
434
+ template ||= objects.length > 1 ? haml_template[:property_values] : haml_template[:property_value]
435
+ if objects.length > 1 && template.nil?
436
+ objects.map do |object|
437
+ render_property(predicate, [object], property, rel, options)
438
+ end.join(" ")
439
+ else
440
+ raise RDF::WriterError, "Missing property template" if template.nil?
441
+
442
+ template = options[:haml] || (
443
+ objects.to_a.length > 1 &&
444
+ haml_template.has_key?(:property_values) ?
445
+ :property_values :
446
+ :property_value)
447
+ options = {
448
+ :objects => objects,
449
+ :object => objects.first,
450
+ :predicate => predicate,
451
+ :property => (get_curie(property) if property),
452
+ :rel => (get_curie(rel) if rel),
453
+ }.merge(options)
454
+ hamlify(template, options) do |object|
455
+ yield(object) if block_given?
456
+ end
443
457
  end
444
458
  end
445
459
 
@@ -653,7 +667,7 @@ module RDF::RDFa
653
667
  render_property(predicate, objects, property, rel) do |o|
654
668
  # Yields each object, for potential recursive definition.
655
669
  # If nil is returned, a leaf is produced
656
- depth {subject(o, :rel => rel, :element => (:li if objects.length > 1))} if !is_done?(o) && @subjects.include?(o)
670
+ depth {subject(o, :rel => get_curie(rel), :element => (:li if objects.length > 1))} if !is_done?(o) && @subjects.include?(o)
657
671
  end
658
672
  end
659
673
 
@@ -35,23 +35,23 @@ module RDF::RDFa
35
35
  # Yield: predicates.each
36
36
  :subject => %q(
37
37
  - if element == :li
38
- %li{:about => get_curie(subject), :typeof => typeof}
38
+ %li{:about => resource, :typeof => typeof}
39
39
  - if typeof
40
40
  %span.type!= typeof
41
41
  - predicates.each do |predicate|
42
42
  != yield(predicate)
43
43
  - elsif rel && typeof
44
- %div{:rel => get_curie(rel)}
45
- %div{:about => get_curie(subject), :typeof => typeof}
44
+ %div{:rel => rel}
45
+ %div{:about => resource, :typeof => typeof}
46
46
  %span.type!= typeof
47
47
  - predicates.each do |predicate|
48
48
  != yield(predicate)
49
49
  - elsif rel
50
- %div{:rel => get_curie(rel), :resource => get_curie(subject)}
50
+ %div{:rel => rel, :resource => resource}
51
51
  - predicates.each do |predicate|
52
52
  != yield(predicate)
53
53
  - else
54
- %div{:about => get_curie(subject), :typeof => typeof}
54
+ %div{:about => about, :typeof => typeof}
55
55
  - if typeof
56
56
  %span.type!= typeof
57
57
  - predicates.each do |predicate|
@@ -59,14 +59,13 @@ module RDF::RDFa
59
59
  ),
60
60
 
61
61
  # Output for single-valued properties
62
- # Locals: property, objects
62
+ # Locals: property, rel, object
63
63
  # Yields: object
64
64
  # If nil is returned, render as a leaf
65
65
  # Otherwise, render result
66
66
  :property_value => %q(
67
- - object = objects.first
68
67
  - if heading_predicates.include?(predicate) && object.literal?
69
- %h1{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
68
+ %h1{:property => property, :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
70
69
  - else
71
70
  %div.property
72
71
  %span.label
@@ -74,13 +73,13 @@ module RDF::RDFa
74
73
  - if res = yield(object)
75
74
  != res
76
75
  - elsif object.node?
77
- %span{:resource => get_curie(object), :rel => get_curie(predicate)}= get_curie(object)
76
+ %span{:resource => get_curie(object), :rel => rel}= get_curie(object)
78
77
  - elsif object.uri?
79
- %a{:href => object.to_s, :rel => get_curie(predicate)}= object.to_s
78
+ %a{:href => object.to_s, :rel => rel}= object.to_s
80
79
  - elsif object.datatype == RDF.XMLLiteral
81
- %span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
80
+ %span{:property => property, :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
82
81
  - else
83
- %span{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
82
+ %span{:property => property, :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
84
83
  ),
85
84
 
86
85
  # Output for multi-valued properties
@@ -90,7 +89,7 @@ module RDF::RDFa
90
89
  %div.property
91
90
  %span.label
92
91
  = get_predicate_name(predicate)
93
- %ul{:rel => (get_curie(rel) if rel), :property => (get_curie(property) if property)}
92
+ %ul{:rel => rel, :property => property}
94
93
  - objects.each do |object|
95
94
  - if res = yield(object)
96
95
  != res
@@ -132,56 +131,39 @@ module RDF::RDFa
132
131
  # Yield: predicates.each
133
132
  :subject => %q(
134
133
  - if element == :li
135
- %li{:about => get_curie(subject), :typeof => typeof}
134
+ %li{:about => resource, :typeof => typeof}
136
135
  - predicates.each do |predicate|
137
136
  != yield(predicate)
138
137
  - elsif rel && typeof
139
- %div{:rel => get_curie(rel)}
140
- %div{:about => get_curie(subject), :typeof => typeof}
138
+ %div{:rel => rel}
139
+ %div{:about => resource, :typeof => typeof}
141
140
  - predicates.each do |predicate|
142
141
  != yield(predicate)
143
142
  - elsif rel
144
- %div{:rel => get_curie(rel), :resource => get_curie(subject)}
143
+ %div{:rel => rel, :resource => resource}
145
144
  - predicates.each do |predicate|
146
145
  != yield(predicate)
147
146
  - else
148
- %div{:about => get_curie(subject), :typeof => typeof}
147
+ %div{:about => about, :typeof => typeof}
149
148
  - predicates.each do |predicate|
150
149
  != yield(predicate)
151
150
  ),
152
151
 
153
152
  # Output for single-valued properties.
154
153
  # This version does not perform a recursive call, and renders all objects as leafs.
155
- # Locals: property, objects
154
+ # Locals: property, rel, object
156
155
  # Yields: object
157
156
  # If nil is returned, render as a leaf
158
157
  # Otherwise, render result
159
158
  :property_value => %q(
160
- - object = objects.first
161
159
  %div.property
162
160
  - if object.resource?
163
- %span{:resource => get_curie(object), :rel => get_curie(predicate)}
161
+ %span{:resource => get_curie(object), :rel => rel}
164
162
  - elsif object.datatype == RDF.XMLLiteral
165
- %span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
163
+ %span{:property => property, :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
166
164
  - else
167
- %span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(object.to_s)
168
- ),
169
-
170
- # Output for multi-valued properties.
171
- # This version does not perform a recursive call, and renders all objects as leafs.
172
- # Locals: property, rel, :objects
173
- # Yields: object for leaf resource rendering
174
- :property_values => %q(
175
- %div.property
176
- %ul{:rel => (get_curie(rel) if rel), :property => (get_curie(property) if property)}
177
- - objects.each do |object|
178
- - if object.resource?
179
- %li{:resource => get_curie(object)}
180
- - elsif object.datatype == RDF.XMLLiteral
181
- %li{:lang => get_lang(object), :datatype => get_curie(object.datatype)}<!= get_value(object)
182
- - else
183
- %li{:lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(object.to_s)
184
- ),
165
+ %span{:property => property, :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(object.to_s)
166
+ )
185
167
  }
186
168
 
187
169
  DISTILLER_HAML = {
@@ -224,26 +206,26 @@ module RDF::RDFa
224
206
  # Yield: predicates.each
225
207
  :subject => %q(
226
208
  - if element == :li
227
- %td{:about => get_curie(subject), :typeof => typeof}
209
+ %li{:about => resource, :typeof => typeof}
228
210
  - if typeof
229
211
  %span.type!= typeof
230
212
  %table.properties
231
213
  - predicates.each do |predicate|
232
214
  != yield(predicate)
233
215
  - elsif rel && typeof
234
- %td{:rel => get_curie(rel)}
235
- %div{:about => get_curie(subject), :typeof => typeof}
216
+ %td{:rel => rel}
217
+ %div{:about => resource, :typeof => typeof}
236
218
  %span.type!= typeof
237
219
  %table.properties
238
220
  - predicates.each do |predicate|
239
221
  != yield(predicate)
240
222
  - elsif rel
241
- %td{:rel => get_curie(rel), :resource => get_curie(subject)}
223
+ %td{:rel => rel, :resource => resource}
242
224
  %table.properties
243
225
  - predicates.each do |predicate|
244
226
  != yield(predicate)
245
227
  - else
246
- %div{:about => get_curie(subject), :typeof => typeof}
228
+ %div{:about => about, :typeof => typeof}
247
229
  - if typeof
248
230
  %span.type!= typeof
249
231
  %table.properties
@@ -252,14 +234,13 @@ module RDF::RDFa
252
234
  ),
253
235
 
254
236
  # Output for single-valued properties
255
- # Locals: property, objects
237
+ # Locals: property, rel, object
256
238
  # Yields: object
257
239
  # If nil is returned, render as a leaf
258
240
  # Otherwise, render result
259
241
  :property_value => %q(
260
- - object = objects.first
261
242
  - if heading_predicates.include?(predicate) && object.literal?
262
- %h1{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
243
+ %h1{:property => property, :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
263
244
  - else
264
245
  %tr.property
265
246
  %td.label
@@ -267,14 +248,14 @@ module RDF::RDFa
267
248
  - if res = yield(object)
268
249
  != res
269
250
  - elsif object.node?
270
- %td{:resource => get_curie(object), :rel => get_curie(predicate)}= get_curie(object)
251
+ %td{:resource => get_curie(object), :rel => rel}= get_curie(object)
271
252
  - elsif object.uri?
272
253
  %td
273
- %a{:href => object.to_s, :rel => get_curie(predicate)}= object.to_s
254
+ %a{:href => object.to_s, :rel => rel}= object.to_s
274
255
  - elsif object.datatype == RDF.XMLLiteral
275
- %td{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
256
+ %td{:property => property, :lang => get_lang(object), :datatype => get_dt_curie(object)}<!= get_value(object)
276
257
  - else
277
- %td{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
258
+ %td{:property => property, :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
278
259
  ),
279
260
 
280
261
  # Output for multi-valued properties
@@ -284,7 +265,7 @@ module RDF::RDFa
284
265
  %tr.property
285
266
  %td.label
286
267
  = get_predicate_name(predicate)
287
- %td{:rel => (get_curie(rel) if rel), :property => (get_curie(property) if property)}
268
+ %td{:rel => rel, :property => property}
288
269
  %ul
289
270
  - objects.each do |object|
290
271
  - if res = yield(object)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rdf-rdfa}
8
- s.version = "0.3.4.1"
8
+ s.version = "0.3.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gregg Kellogg"]
12
- s.date = %q{2011-07-11}
12
+ s.date = %q{2011-07-12}
13
13
  s.description = %q{ RDF::RDFa is an RDFa reader/writer for Ruby using the RDF.rb library suite.
14
14
  }
15
15
  s.email = %q{gregg@kellogg-assoc.com}
@@ -76,7 +76,7 @@ Gem::Specification.new do |s|
76
76
  ]
77
77
  s.homepage = %q{http://github.com/gkellogg/rdf-rdfa}
78
78
  s.require_paths = ["lib"]
79
- s.rubygems_version = %q{1.5.0}
79
+ s.rubygems_version = %q{1.6.2}
80
80
  s.summary = %q{RDFa reader/writer for RDF.rb.}
81
81
 
82
82
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-rdfa
3
3
  version: !ruby/object:Gem::Version
4
- hash: 69
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 4
10
- - 1
11
- version: 0.3.4.1
5
+ version: 0.3.4.2
12
6
  platform: ruby
13
7
  authors:
14
8
  - Gregg Kellogg
@@ -16,381 +10,273 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2011-07-11 00:00:00 -07:00
13
+ date: 2011-07-12 00:00:00 -07:00
20
14
  default_executable:
21
15
  dependencies:
22
16
  - !ruby/object:Gem::Dependency
23
17
  name: addressable
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
25
19
  none: false
26
20
  requirements:
27
21
  - - "="
28
22
  - !ruby/object:Gem::Version
29
- hash: 15
30
- segments:
31
- - 2
32
- - 2
33
- - 4
34
23
  version: 2.2.4
35
- prerelease: false
36
24
  type: :runtime
37
- requirement: *id001
25
+ prerelease: false
26
+ version_requirements: *id001
38
27
  - !ruby/object:Gem::Dependency
39
28
  name: rdf
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
29
+ requirement: &id002 !ruby/object:Gem::Requirement
41
30
  none: false
42
31
  requirements:
43
32
  - - ">="
44
33
  - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
34
  version: "0"
49
- prerelease: false
50
35
  type: :runtime
51
- requirement: *id002
36
+ prerelease: false
37
+ version_requirements: *id002
52
38
  - !ruby/object:Gem::Dependency
53
39
  name: haml
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &id003 !ruby/object:Gem::Requirement
55
41
  none: false
56
42
  requirements:
57
43
  - - ">="
58
44
  - !ruby/object:Gem::Version
59
- hash: 7
60
- segments:
61
- - 3
62
- - 0
63
- - 0
64
45
  version: 3.0.0
65
- prerelease: false
66
46
  type: :runtime
67
- requirement: *id003
47
+ prerelease: false
48
+ version_requirements: *id003
68
49
  - !ruby/object:Gem::Dependency
69
50
  name: nokogiri
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
71
52
  none: false
72
53
  requirements:
73
54
  - - ">="
74
55
  - !ruby/object:Gem::Version
75
- hash: 29
76
- segments:
77
- - 1
78
- - 3
79
- - 3
80
56
  version: 1.3.3
81
- prerelease: false
82
57
  type: :runtime
83
- requirement: *id004
58
+ prerelease: false
59
+ version_requirements: *id004
84
60
  - !ruby/object:Gem::Dependency
85
61
  name: facets
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
62
+ requirement: &id005 !ruby/object:Gem::Requirement
87
63
  none: false
88
64
  requirements:
89
65
  - - ">="
90
66
  - !ruby/object:Gem::Version
91
- hash: 41
92
- segments:
93
- - 2
94
- - 9
95
- - 1
96
67
  version: 2.9.1
97
- prerelease: false
98
68
  type: :runtime
99
- requirement: *id005
69
+ prerelease: false
70
+ version_requirements: *id005
100
71
  - !ruby/object:Gem::Dependency
101
72
  name: open-uri-cached
102
- version_requirements: &id006 !ruby/object:Gem::Requirement
73
+ requirement: &id006 !ruby/object:Gem::Requirement
103
74
  none: false
104
75
  requirements:
105
76
  - - ">="
106
77
  - !ruby/object:Gem::Version
107
- hash: 25
108
- segments:
109
- - 0
110
- - 0
111
- - 3
112
78
  version: 0.0.3
113
- prerelease: false
114
79
  type: :development
115
- requirement: *id006
80
+ prerelease: false
81
+ version_requirements: *id006
116
82
  - !ruby/object:Gem::Dependency
117
83
  name: rdf-spec
118
- version_requirements: &id007 !ruby/object:Gem::Requirement
84
+ requirement: &id007 !ruby/object:Gem::Requirement
119
85
  none: false
120
86
  requirements:
121
87
  - - ">="
122
88
  - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
89
  version: "0"
127
- prerelease: false
128
90
  type: :development
129
- requirement: *id007
91
+ prerelease: false
92
+ version_requirements: *id007
130
93
  - !ruby/object:Gem::Dependency
131
94
  name: rdf-isomorphic
132
- version_requirements: &id008 !ruby/object:Gem::Requirement
95
+ requirement: &id008 !ruby/object:Gem::Requirement
133
96
  none: false
134
97
  requirements:
135
98
  - - ">="
136
99
  - !ruby/object:Gem::Version
137
- hash: 27
138
- segments:
139
- - 0
140
- - 3
141
- - 4
142
100
  version: 0.3.4
143
- prerelease: false
144
101
  type: :development
145
- requirement: *id008
102
+ prerelease: false
103
+ version_requirements: *id008
146
104
  - !ruby/object:Gem::Dependency
147
105
  name: rdf-n3
148
- version_requirements: &id009 !ruby/object:Gem::Requirement
106
+ requirement: &id009 !ruby/object:Gem::Requirement
149
107
  none: false
150
108
  requirements:
151
109
  - - ">="
152
110
  - !ruby/object:Gem::Version
153
- hash: 17
154
- segments:
155
- - 0
156
- - 3
157
- - 1
158
111
  version: 0.3.1
159
- prerelease: false
160
112
  type: :development
161
- requirement: *id009
113
+ prerelease: false
114
+ version_requirements: *id009
162
115
  - !ruby/object:Gem::Dependency
163
116
  name: rspec
164
- version_requirements: &id010 !ruby/object:Gem::Requirement
117
+ requirement: &id010 !ruby/object:Gem::Requirement
165
118
  none: false
166
119
  requirements:
167
120
  - - ">="
168
121
  - !ruby/object:Gem::Version
169
- hash: 11
170
- segments:
171
- - 2
172
- - 1
173
- - 0
174
122
  version: 2.1.0
175
- prerelease: false
176
123
  type: :development
177
- requirement: *id010
124
+ prerelease: false
125
+ version_requirements: *id010
178
126
  - !ruby/object:Gem::Dependency
179
127
  name: sxp
180
- version_requirements: &id011 !ruby/object:Gem::Requirement
128
+ requirement: &id011 !ruby/object:Gem::Requirement
181
129
  none: false
182
130
  requirements:
183
131
  - - ">="
184
132
  - !ruby/object:Gem::Version
185
- hash: 3
186
- segments:
187
- - 0
188
133
  version: "0"
189
- prerelease: false
190
134
  type: :development
191
- requirement: *id011
135
+ prerelease: false
136
+ version_requirements: *id011
192
137
  - !ruby/object:Gem::Dependency
193
138
  name: sparql-algebra
194
- version_requirements: &id012 !ruby/object:Gem::Requirement
139
+ requirement: &id012 !ruby/object:Gem::Requirement
195
140
  none: false
196
141
  requirements:
197
142
  - - ">="
198
143
  - !ruby/object:Gem::Version
199
- hash: 3
200
- segments:
201
- - 0
202
144
  version: "0"
203
- prerelease: false
204
145
  type: :development
205
- requirement: *id012
146
+ prerelease: false
147
+ version_requirements: *id012
206
148
  - !ruby/object:Gem::Dependency
207
149
  name: sparql-grammar
208
- version_requirements: &id013 !ruby/object:Gem::Requirement
150
+ requirement: &id013 !ruby/object:Gem::Requirement
209
151
  none: false
210
152
  requirements:
211
153
  - - ">="
212
154
  - !ruby/object:Gem::Version
213
- hash: 3
214
- segments:
215
- - 0
216
155
  version: "0"
217
- prerelease: false
218
156
  type: :development
219
- requirement: *id013
157
+ prerelease: false
158
+ version_requirements: *id013
220
159
  - !ruby/object:Gem::Dependency
221
160
  name: spira
222
- version_requirements: &id014 !ruby/object:Gem::Requirement
161
+ requirement: &id014 !ruby/object:Gem::Requirement
223
162
  none: false
224
163
  requirements:
225
164
  - - ">="
226
165
  - !ruby/object:Gem::Version
227
- hash: 7
228
- segments:
229
- - 0
230
- - 0
231
- - 12
232
166
  version: 0.0.12
233
- prerelease: false
234
167
  type: :development
235
- requirement: *id014
168
+ prerelease: false
169
+ version_requirements: *id014
236
170
  - !ruby/object:Gem::Dependency
237
171
  name: yard
238
- version_requirements: &id015 !ruby/object:Gem::Requirement
172
+ requirement: &id015 !ruby/object:Gem::Requirement
239
173
  none: false
240
174
  requirements:
241
175
  - - ">="
242
176
  - !ruby/object:Gem::Version
243
- hash: 15
244
- segments:
245
- - 0
246
- - 6
247
- - 4
248
177
  version: 0.6.4
249
- prerelease: false
250
178
  type: :development
251
- requirement: *id015
179
+ prerelease: false
180
+ version_requirements: *id015
252
181
  - !ruby/object:Gem::Dependency
253
182
  name: rdf
254
- version_requirements: &id016 !ruby/object:Gem::Requirement
183
+ requirement: &id016 !ruby/object:Gem::Requirement
255
184
  none: false
256
185
  requirements:
257
186
  - - ">="
258
187
  - !ruby/object:Gem::Version
259
- hash: 21
260
- segments:
261
- - 0
262
- - 3
263
- - 3
264
188
  version: 0.3.3
265
- prerelease: false
266
189
  type: :runtime
267
- requirement: *id016
190
+ prerelease: false
191
+ version_requirements: *id016
268
192
  - !ruby/object:Gem::Dependency
269
193
  name: haml
270
- version_requirements: &id017 !ruby/object:Gem::Requirement
194
+ requirement: &id017 !ruby/object:Gem::Requirement
271
195
  none: false
272
196
  requirements:
273
197
  - - ">="
274
198
  - !ruby/object:Gem::Version
275
- hash: 7
276
- segments:
277
- - 3
278
- - 0
279
- - 0
280
199
  version: 3.0.0
281
- prerelease: false
282
200
  type: :runtime
283
- requirement: *id017
201
+ prerelease: false
202
+ version_requirements: *id017
284
203
  - !ruby/object:Gem::Dependency
285
204
  name: nokogiri
286
- version_requirements: &id018 !ruby/object:Gem::Requirement
205
+ requirement: &id018 !ruby/object:Gem::Requirement
287
206
  none: false
288
207
  requirements:
289
208
  - - ">="
290
209
  - !ruby/object:Gem::Version
291
- hash: 15
292
- segments:
293
- - 1
294
- - 4
295
- - 4
296
210
  version: 1.4.4
297
- prerelease: false
298
211
  type: :runtime
299
- requirement: *id018
212
+ prerelease: false
213
+ version_requirements: *id018
300
214
  - !ruby/object:Gem::Dependency
301
215
  name: facets
302
- version_requirements: &id019 !ruby/object:Gem::Requirement
216
+ requirement: &id019 !ruby/object:Gem::Requirement
303
217
  none: false
304
218
  requirements:
305
219
  - - ">="
306
220
  - !ruby/object:Gem::Version
307
- hash: 41
308
- segments:
309
- - 2
310
- - 9
311
- - 1
312
221
  version: 2.9.1
313
- prerelease: false
314
222
  type: :runtime
315
- requirement: *id019
223
+ prerelease: false
224
+ version_requirements: *id019
316
225
  - !ruby/object:Gem::Dependency
317
226
  name: spira
318
- version_requirements: &id020 !ruby/object:Gem::Requirement
227
+ requirement: &id020 !ruby/object:Gem::Requirement
319
228
  none: false
320
229
  requirements:
321
230
  - - ">="
322
231
  - !ruby/object:Gem::Version
323
- hash: 7
324
- segments:
325
- - 0
326
- - 0
327
- - 12
328
232
  version: 0.0.12
329
- prerelease: false
330
233
  type: :development
331
- requirement: *id020
234
+ prerelease: false
235
+ version_requirements: *id020
332
236
  - !ruby/object:Gem::Dependency
333
237
  name: rspec
334
- version_requirements: &id021 !ruby/object:Gem::Requirement
238
+ requirement: &id021 !ruby/object:Gem::Requirement
335
239
  none: false
336
240
  requirements:
337
241
  - - ">="
338
242
  - !ruby/object:Gem::Version
339
- hash: 27
340
- segments:
341
- - 2
342
- - 5
343
- - 0
344
243
  version: 2.5.0
345
- prerelease: false
346
244
  type: :development
347
- requirement: *id021
245
+ prerelease: false
246
+ version_requirements: *id021
348
247
  - !ruby/object:Gem::Dependency
349
248
  name: rdf-spec
350
- version_requirements: &id022 !ruby/object:Gem::Requirement
249
+ requirement: &id022 !ruby/object:Gem::Requirement
351
250
  none: false
352
251
  requirements:
353
252
  - - ">="
354
253
  - !ruby/object:Gem::Version
355
- hash: 21
356
- segments:
357
- - 0
358
- - 3
359
- - 3
360
254
  version: 0.3.3
361
- prerelease: false
362
255
  type: :development
363
- requirement: *id022
256
+ prerelease: false
257
+ version_requirements: *id022
364
258
  - !ruby/object:Gem::Dependency
365
259
  name: rdf-isomorphic
366
- version_requirements: &id023 !ruby/object:Gem::Requirement
260
+ requirement: &id023 !ruby/object:Gem::Requirement
367
261
  none: false
368
262
  requirements:
369
263
  - - ">="
370
264
  - !ruby/object:Gem::Version
371
- hash: 27
372
- segments:
373
- - 0
374
- - 3
375
- - 4
376
265
  version: 0.3.4
377
- prerelease: false
378
266
  type: :development
379
- requirement: *id023
267
+ prerelease: false
268
+ version_requirements: *id023
380
269
  - !ruby/object:Gem::Dependency
381
270
  name: yard
382
- version_requirements: &id024 !ruby/object:Gem::Requirement
271
+ requirement: &id024 !ruby/object:Gem::Requirement
383
272
  none: false
384
273
  requirements:
385
274
  - - ">="
386
275
  - !ruby/object:Gem::Version
387
- hash: 3
388
- segments:
389
- - 0
390
276
  version: "0"
391
- prerelease: false
392
277
  type: :development
393
- requirement: *id024
278
+ prerelease: false
279
+ version_requirements: *id024
394
280
  description: " RDF::RDFa is an RDFa reader/writer for Ruby using the RDF.rb library suite.\n"
395
281
  email: gregg@kellogg-assoc.com
396
282
  executables: []
@@ -470,23 +356,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
470
356
  requirements:
471
357
  - - ">="
472
358
  - !ruby/object:Gem::Version
473
- hash: 3
474
- segments:
475
- - 0
476
359
  version: "0"
477
360
  required_rubygems_version: !ruby/object:Gem::Requirement
478
361
  none: false
479
362
  requirements:
480
363
  - - ">="
481
364
  - !ruby/object:Gem::Version
482
- hash: 3
483
- segments:
484
- - 0
485
365
  version: "0"
486
366
  requirements: []
487
367
 
488
368
  rubyforge_project:
489
- rubygems_version: 1.5.0
369
+ rubygems_version: 1.6.2
490
370
  signing_key:
491
371
  specification_version: 3
492
372
  summary: RDFa reader/writer for RDF.rb.