rdf-rdfa 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README +25 -25
- data/VERSION +1 -1
- data/lib/rdf/rdfa/expansion.rb +7 -7
- data/lib/rdf/rdfa/format.rb +15 -1
- data/lib/rdf/rdfa/reader.rb +116 -117
- data/lib/rdf/rdfa/writer.rb +46 -28
- data/lib/rdf/rdfa/writer/haml_templates.rb +51 -40
- metadata +110 -171
data/lib/rdf/rdfa/writer.rb
CHANGED
@@ -192,7 +192,7 @@ module RDF::RDFa
|
|
192
192
|
# Generate document
|
193
193
|
doc = render_document(subjects,
|
194
194
|
:lang => @lang,
|
195
|
-
:base =>
|
195
|
+
:base => base_uri,
|
196
196
|
:title => doc_title,
|
197
197
|
:prefix => prefix) do |s|
|
198
198
|
subject(s)
|
@@ -315,10 +315,11 @@ module RDF::RDFa
|
|
315
315
|
template = options[:haml] || :subject
|
316
316
|
options = {
|
317
317
|
:about => (get_curie(subject) unless options[:rel]),
|
318
|
-
:base =>
|
318
|
+
:base => base_uri,
|
319
319
|
:element => nil,
|
320
320
|
:predicates => predicates,
|
321
321
|
:rel => nil,
|
322
|
+
:inlist => nil,
|
322
323
|
:resource => (get_curie(subject) if options[:rel]),
|
323
324
|
:subject => subject,
|
324
325
|
:typeof => nil,
|
@@ -335,39 +336,42 @@ module RDF::RDFa
|
|
335
336
|
#
|
336
337
|
# The default Haml template for a single-valued property is:
|
337
338
|
# - if heading_predicates.include?(predicate) && object.literal?
|
338
|
-
# %h1{:property =>
|
339
|
+
# %h1{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
339
340
|
# - else
|
340
341
|
# %div.property
|
341
342
|
# %span.label
|
342
343
|
# = get_predicate_name(predicate)
|
343
344
|
# - if res = yield(object)
|
344
345
|
# != res
|
346
|
+
# - elsif get_curie(object) == 'rdf:nil'
|
347
|
+
# %span{:rel => get_curie(predicate), :inlist => ''}
|
345
348
|
# - elsif object.node?
|
346
|
-
# %span{:resource => get_curie(object), :rel =>
|
349
|
+
# %span{:resource => get_curie(object), :rel => get_curie(predicate), :inlist => inlist}= get_curie(object)
|
347
350
|
# - elsif object.uri?
|
348
|
-
# %a{:href => object.to_s, :rel =>
|
351
|
+
# %a{:href => object.to_s, :rel => get_curie(predicate), :inlist => inlist}= object.to_s
|
349
352
|
# - elsif object.datatype == RDF.XMLLiteral
|
350
|
-
# %span{:property =>
|
353
|
+
# %span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}<!= get_value(object)
|
351
354
|
# - else
|
352
|
-
# %span{:property =>
|
355
|
+
# %span{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
356
|
+
#
|
353
357
|
#
|
354
358
|
# The default Haml template for a multi-valued property is:
|
355
359
|
# %div.property
|
356
360
|
# %span.label
|
357
361
|
# = get_predicate_name(predicate)
|
358
|
-
# %ul
|
362
|
+
# %ul
|
359
363
|
# - objects.each do |object|
|
360
364
|
# - if res = yield(object)
|
361
365
|
# != res
|
362
366
|
# - elsif object.node?
|
363
|
-
# %li{:resource => get_curie(object)}= get_curie(object)
|
367
|
+
# %li{:rel => get_curie(predicate), :resource => get_curie(object), :inlist => inlist}= get_curie(object)
|
364
368
|
# - elsif object.uri?
|
365
369
|
# %li
|
366
|
-
# %a{:href => object.to_s}= object.to_s
|
370
|
+
# %a{:rel => get_curie(predicate), :href => object.to_s, :inlist => inlist}= object.to_s
|
367
371
|
# - elsif object.datatype == RDF.XMLLiteral
|
368
|
-
# %li{:lang => get_lang(object), :datatype => get_curie(object.datatype)}<!= get_value(object)
|
372
|
+
# %li{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_curie(object.datatype), :inlist => inlist}<!= get_value(object)
|
369
373
|
# - else
|
370
|
-
# %li{:content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
|
374
|
+
# %li{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
371
375
|
#
|
372
376
|
# If a multi-valued property definition is not found within the template,
|
373
377
|
# the writer will use the single-valued property definition multiple times.
|
@@ -378,10 +382,6 @@ module RDF::RDFa
|
|
378
382
|
# List of objects to render.
|
379
383
|
# If the list contains only a single element, the :property_value template will be used.
|
380
384
|
# Otherwise, the :property_values template is used.
|
381
|
-
# @param [RDF::Resource] property
|
382
|
-
# Value of @property, which should only be defined for literal objects
|
383
|
-
# @param [RDF::Resource] rel
|
384
|
-
# Value of @rel, which should only be defined for Node or URI objects.
|
385
385
|
# @param [Hash{Symbol => Object}] options Rendering options passed to Haml render.
|
386
386
|
# @option options [String] haml (haml_template[:property_value], haml_template[:property_values])
|
387
387
|
# Haml template to render. Otherwise, uses haml_template[:property_value] or haml_template[:property_values]
|
@@ -393,15 +393,34 @@ module RDF::RDFa
|
|
393
393
|
# The block should only return a string for recursive object definitions.
|
394
394
|
# @return String
|
395
395
|
# The rendered document is returned as a string
|
396
|
-
def render_property(predicate, objects,
|
397
|
-
#
|
396
|
+
def render_property(predicate, objects, options = {}, &block)
|
397
|
+
add_debug {"render_property(#{predicate}): #{objects.inspect}"}
|
398
|
+
# If there are multiple objects, and no :property_values is defined, call recursively with
|
398
399
|
# each object
|
399
400
|
|
400
401
|
template = options[:haml]
|
401
402
|
template ||= objects.length > 1 ? haml_template[:property_values] : haml_template[:property_value]
|
403
|
+
|
404
|
+
# Separate out the objects which are lists and render separately
|
405
|
+
list_objects = objects.select {|o| o != RDF.nil && RDF::List.new(o, @graph).valid?}
|
406
|
+
unless list_objects.empty?
|
407
|
+
# Render non-list objects
|
408
|
+
add_debug {"properties with lists: non-lists: #{objects - list_objects} lists: #{list_objects}"}
|
409
|
+
nl = render_property(predicate, objects - list_objects, options, &block) unless objects == list_objects
|
410
|
+
return nl.to_s + list_objects.map do |object|
|
411
|
+
# Render each list as multiple properties and set :inlist to true
|
412
|
+
list = RDF::List.new(object, @graph)
|
413
|
+
list.each_statement {|st| subject_done(st.subject)}
|
414
|
+
|
415
|
+
add_debug {"list: #{list.inspect} #{list.to_a}"}
|
416
|
+
render_property(predicate, list.to_a, options.merge(:inlist => ""), &block)
|
417
|
+
end.join(" ")
|
418
|
+
end
|
419
|
+
|
402
420
|
if objects.length > 1 && template.nil?
|
421
|
+
# Uf there is no property_values template, render each property using property_value template
|
403
422
|
objects.map do |object|
|
404
|
-
render_property(predicate, [object],
|
423
|
+
render_property(predicate, [object], options, &block)
|
405
424
|
end.join(" ")
|
406
425
|
else
|
407
426
|
raise RDF::WriterError, "Missing property template" if template.nil?
|
@@ -415,8 +434,9 @@ module RDF::RDFa
|
|
415
434
|
:objects => objects,
|
416
435
|
:object => objects.first,
|
417
436
|
:predicate => predicate,
|
418
|
-
:property =>
|
419
|
-
:rel =>
|
437
|
+
:property => get_curie(predicate),
|
438
|
+
:rel => get_curie(predicate),
|
439
|
+
:inlist => nil,
|
420
440
|
}.merge(options)
|
421
441
|
hamlify(template, options) do |object|
|
422
442
|
yield(object) if block_given?
|
@@ -622,12 +642,10 @@ module RDF::RDFa
|
|
622
642
|
return if objects.to_a.empty?
|
623
643
|
|
624
644
|
add_debug {"predicate: #{get_curie(predicate)}"}
|
625
|
-
|
626
|
-
rel = predicate if objects.any?(&:uri?) || objects.any?(&:node?)
|
627
|
-
render_property(predicate, objects, property, rel) do |o|
|
645
|
+
render_property(predicate, objects) do |o|
|
628
646
|
# Yields each object, for potential recursive definition.
|
629
647
|
# If nil is returned, a leaf is produced
|
630
|
-
depth {subject(o, :rel => get_curie(
|
648
|
+
depth {subject(o, :rel => get_curie(predicate), :element => (:li if objects.length > 1))} if !is_done?(o) && @subjects.include?(o)
|
631
649
|
end
|
632
650
|
end
|
633
651
|
|
@@ -710,9 +728,9 @@ module RDF::RDFa
|
|
710
728
|
when @uri_to_term_or_curie.has_key?(uri)
|
711
729
|
add_debug {"get_curie(#{uri}): uri_to_term_or_curie #{@uri_to_term_or_curie[uri].inspect}"}
|
712
730
|
return @uri_to_term_or_curie[uri]
|
713
|
-
when
|
714
|
-
add_debug {"get_curie(#{uri}): base_uri (#{uri.sub(
|
715
|
-
uri.sub(
|
731
|
+
when base_uri && uri.index(base_uri.to_s) == 0
|
732
|
+
add_debug {"get_curie(#{uri}): base_uri (#{uri.sub(base_uri.to_s, "")})"}
|
733
|
+
uri.sub(base_uri.to_s, "")
|
716
734
|
when @vocabulary && uri.index(@vocabulary) == 0
|
717
735
|
add_debug {"get_curie(#{uri}): vocabulary"}
|
718
736
|
uri.sub(@vocabulary, "")
|
@@ -32,13 +32,13 @@ module RDF::RDFa
|
|
32
32
|
# Note that @rel and @resource can be used together, or @about and @typeof, but
|
33
33
|
# not both.
|
34
34
|
#
|
35
|
-
# Locals: subject, typeof, predicates, rel, element
|
35
|
+
# Locals: subject, typeof, predicates, rel, element, inlist
|
36
36
|
# Yield: predicates.each
|
37
37
|
:subject => %q(
|
38
38
|
- if element == :li
|
39
|
-
%li{:
|
39
|
+
%li{:rel => rel, :resource => resource, :inlist => inlist}
|
40
40
|
- if typeof
|
41
|
-
%span.type!= typeof
|
41
|
+
%span{:rel => 'rdf:type', :resource => typeof}.type!= typeof
|
42
42
|
- predicates.each do |predicate|
|
43
43
|
!= yield(predicate)
|
44
44
|
- elsif rel && typeof
|
@@ -60,49 +60,51 @@ module RDF::RDFa
|
|
60
60
|
),
|
61
61
|
|
62
62
|
# Output for single-valued properties
|
63
|
-
# Locals:
|
63
|
+
# Locals: predicate, object, inlist
|
64
64
|
# Yields: object
|
65
65
|
# If nil is returned, render as a leaf
|
66
66
|
# Otherwise, render result
|
67
67
|
:property_value => %q(
|
68
68
|
- if heading_predicates.include?(predicate) && object.literal?
|
69
|
-
%h1{:property =>
|
69
|
+
%h1{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
70
70
|
- else
|
71
71
|
%div.property
|
72
72
|
%span.label
|
73
73
|
= get_predicate_name(predicate)
|
74
74
|
- if res = yield(object)
|
75
75
|
!= res
|
76
|
+
- elsif get_curie(object) == 'rdf:nil'
|
77
|
+
%span{:rel => get_curie(predicate), :inlist => ''}
|
76
78
|
- elsif object.node?
|
77
|
-
%span{:resource => get_curie(object), :rel =>
|
79
|
+
%span{:resource => get_curie(object), :rel => get_curie(predicate), :inlist => inlist}= get_curie(object)
|
78
80
|
- elsif object.uri?
|
79
|
-
%a{:href => object.to_s, :rel =>
|
81
|
+
%a{:href => object.to_s, :rel => get_curie(predicate), :inlist => inlist}= object.to_s
|
80
82
|
- elsif object.datatype == RDF.XMLLiteral
|
81
|
-
%span{:property =>
|
83
|
+
%span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}<!= get_value(object)
|
82
84
|
- else
|
83
|
-
%span{:property =>
|
85
|
+
%span{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
84
86
|
),
|
85
87
|
|
86
88
|
# Output for multi-valued properties
|
87
|
-
# Locals:
|
89
|
+
# Locals: predicate, :objects, :inlist
|
88
90
|
# Yields: object for leaf resource rendering
|
89
91
|
:property_values => %q(
|
90
92
|
%div.property
|
91
93
|
%span.label
|
92
94
|
= get_predicate_name(predicate)
|
93
|
-
%ul
|
95
|
+
%ul
|
94
96
|
- objects.each do |object|
|
95
97
|
- if res = yield(object)
|
96
98
|
!= res
|
97
99
|
- elsif object.node?
|
98
|
-
%li{:resource => get_curie(object)}= get_curie(object)
|
100
|
+
%li{:rel => get_curie(predicate), :resource => get_curie(object), :inlist => inlist}= get_curie(object)
|
99
101
|
- elsif object.uri?
|
100
102
|
%li
|
101
|
-
%a{:href => object.to_s}= object.to_s
|
103
|
+
%a{:rel => get_curie(predicate), :href => object.to_s, :inlist => inlist}= object.to_s
|
102
104
|
- elsif object.datatype == RDF.XMLLiteral
|
103
|
-
%li{:lang => get_lang(object), :datatype => get_curie(object.datatype)}<!= get_value(object)
|
105
|
+
%li{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_curie(object.datatype), :inlist => inlist}<!= get_value(object)
|
104
106
|
- else
|
105
|
-
%li{:content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
|
107
|
+
%li{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
106
108
|
),
|
107
109
|
}
|
108
110
|
|
@@ -129,20 +131,25 @@ module RDF::RDFa
|
|
129
131
|
# Output for non-leaf resources
|
130
132
|
# Note that @about may be omitted for Nodes that are not referenced
|
131
133
|
#
|
132
|
-
# Locals: about, typeof, predicates
|
134
|
+
# Locals: about, typeof, predicates, :inlist
|
133
135
|
# Yield: predicates.each
|
134
136
|
:subject => %q(
|
135
137
|
- if element == :li
|
138
|
+
%li{:rel => rel, :resource => resource, :inlist => inlist}
|
139
|
+
- if typeof
|
140
|
+
%span{:rel => 'rdf:type', :resource => typeof}.type!= typeof
|
141
|
+
- predicates.each do |predicate|
|
142
|
+
!= yield(predicate)
|
136
143
|
%li{:about => resource, :typeof => typeof}
|
137
144
|
- predicates.each do |predicate|
|
138
145
|
!= yield(predicate)
|
139
146
|
- elsif rel && typeof
|
140
|
-
%div{:rel => rel}
|
147
|
+
%div{:rel => rel, :inlist => inlist}
|
141
148
|
%div{:about => resource, :typeof => typeof}
|
142
149
|
- predicates.each do |predicate|
|
143
150
|
!= yield(predicate)
|
144
151
|
- elsif rel
|
145
|
-
%div{:rel => rel, :resource => resource}
|
152
|
+
%div{:rel => rel, :resource => resource, :inlist => inlist}
|
146
153
|
- predicates.each do |predicate|
|
147
154
|
!= yield(predicate)
|
148
155
|
- else
|
@@ -153,18 +160,20 @@ module RDF::RDFa
|
|
153
160
|
|
154
161
|
# Output for single-valued properties.
|
155
162
|
# This version does not perform a recursive call, and renders all objects as leafs.
|
156
|
-
# Locals:
|
163
|
+
# Locals: predicate, object, inlist
|
157
164
|
# Yields: object
|
158
165
|
# If nil is returned, render as a leaf
|
159
166
|
# Otherwise, render result
|
160
167
|
:property_value => %q(
|
161
168
|
%div.property
|
162
|
-
- if object
|
163
|
-
%span{:
|
169
|
+
- if get_curie(object) == 'rdf:nil'
|
170
|
+
%span{:rel => get_curie(predicate), :inlist => ''}
|
171
|
+
- elsif object.resource?
|
172
|
+
%span{:resource => get_curie(object), :rel => get_curie(predicate), :inlist => inlist}
|
164
173
|
- elsif object.datatype == RDF.XMLLiteral
|
165
|
-
%span{:property =>
|
174
|
+
%span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}<!= get_value(object)
|
166
175
|
- else
|
167
|
-
%span{:property =>
|
176
|
+
%span{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(object.to_s)
|
168
177
|
)
|
169
178
|
}
|
170
179
|
|
@@ -205,25 +214,25 @@ module RDF::RDFa
|
|
205
214
|
# Note that @rel and @resource can be used together, or @about and @typeof, but
|
206
215
|
# not both.
|
207
216
|
#
|
208
|
-
# Locals: subject, typeof, predicates, rel, element
|
217
|
+
# Locals: subject, typeof, predicates, rel, element, inlist
|
209
218
|
# Yield: predicates.each
|
210
219
|
:subject => %q(
|
211
220
|
- if element == :li
|
212
|
-
%li{:
|
221
|
+
%li{:rel => rel, :resource => resource, :inlist => inlist}
|
213
222
|
- if typeof
|
214
|
-
%span.type!= typeof
|
223
|
+
%span{:rel => 'rdf:type', :resource => typeof}.type!= typeof
|
215
224
|
%table.properties
|
216
225
|
- predicates.each do |predicate|
|
217
226
|
!= yield(predicate)
|
218
227
|
- elsif rel && typeof
|
219
|
-
%td{:rel => rel}
|
228
|
+
%td{:rel => rel, :inlist => inlist}
|
220
229
|
%div{:about => resource, :typeof => typeof}
|
221
230
|
%span.type!= typeof
|
222
231
|
%table.properties
|
223
232
|
- predicates.each do |predicate|
|
224
233
|
!= yield(predicate)
|
225
234
|
- elsif rel
|
226
|
-
%td{:rel => rel, :resource => resource}
|
235
|
+
%td{:rel => rel, :resource => resource, :inlist => inlist}
|
227
236
|
%table.properties
|
228
237
|
- predicates.each do |predicate|
|
229
238
|
!= yield(predicate)
|
@@ -237,51 +246,53 @@ module RDF::RDFa
|
|
237
246
|
),
|
238
247
|
|
239
248
|
# Output for single-valued properties
|
240
|
-
# Locals:
|
249
|
+
# Locals: predicate, object, inlist
|
241
250
|
# Yields: object
|
242
251
|
# If nil is returned, render as a leaf
|
243
252
|
# Otherwise, render result
|
244
253
|
:property_value => %q(
|
245
254
|
- if heading_predicates.include?(predicate) && object.literal?
|
246
|
-
%h1{:property =>
|
255
|
+
%h1{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
247
256
|
- else
|
248
257
|
%tr.property
|
249
258
|
%td.label
|
250
259
|
= get_predicate_name(predicate)
|
251
260
|
- if res = yield(object)
|
252
261
|
!= res
|
262
|
+
- elsif get_curie(object) == 'rdf:nil'
|
263
|
+
%td{:rel => get_curie(predicate), :inlist => ''}= "Empty"
|
253
264
|
- elsif object.node?
|
254
|
-
%td{:resource => get_curie(object), :rel =>
|
265
|
+
%td{:resource => get_curie(object), :rel => get_curie(predicate), :inlist => inlist}= get_curie(object)
|
255
266
|
- elsif object.uri?
|
256
267
|
%td
|
257
|
-
%a{:href => object.to_s, :rel =>
|
268
|
+
%a{:href => object.to_s, :rel => get_curie(predicate), :inlist => inlist}= object.to_s
|
258
269
|
- elsif object.datatype == RDF.XMLLiteral
|
259
|
-
%td{:property =>
|
270
|
+
%td{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}<!= get_value(object)
|
260
271
|
- else
|
261
|
-
%td{:property =>
|
272
|
+
%td{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
262
273
|
),
|
263
274
|
|
264
275
|
# Output for multi-valued properties
|
265
|
-
# Locals:
|
276
|
+
# Locals: predicate, objects, inliste
|
266
277
|
# Yields: object for leaf resource rendering
|
267
278
|
:property_values => %q(
|
268
279
|
%tr.property
|
269
280
|
%td.label
|
270
281
|
= get_predicate_name(predicate)
|
271
|
-
%td
|
282
|
+
%td
|
272
283
|
%ul
|
273
284
|
- objects.each do |object|
|
274
285
|
- if res = yield(object)
|
275
286
|
!= res
|
276
287
|
- elsif object.node?
|
277
|
-
%li{:resource => get_curie(object)}= get_curie(object)
|
288
|
+
%li{:rel => get_curie(predicate), :resource => get_curie(object), :inlist => inlist}= get_curie(object)
|
278
289
|
- elsif object.uri?
|
279
290
|
%li
|
280
|
-
%a{:href => object.to_s}= object.to_s
|
291
|
+
%a{:rel => get_curie(predicate), :href => object.to_s, :inlist => inlist}= object.to_s
|
281
292
|
- elsif object.datatype == RDF.XMLLiteral
|
282
|
-
%li{:lang => get_lang(object), :datatype => get_curie(object.datatype)}<!= get_value(object)
|
293
|
+
%li{:property => get_curie(predicate), :lang => get_lang(object), :datatype => get_curie(object.datatype), :inlist => inlist}<!= get_value(object)
|
283
294
|
- else
|
284
|
-
%li{:content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object)}= escape_entities(get_value(object))
|
295
|
+
%li{:property => get_curie(predicate), :content => get_content(object), :lang => get_lang(object), :datatype => get_dt_curie(object), :inlist => inlist}= escape_entities(get_value(object))
|
285
296
|
),
|
286
297
|
}
|
287
298
|
HAML_TEMPLATES = {:base => BASE_HAML, :min => MIN_HAML, :distiller => DISTILLER_HAML}
|
metadata
CHANGED
@@ -1,206 +1,156 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-rdfa
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.7
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 6
|
10
|
-
version: 0.3.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Gregg
|
14
9
|
- Kellogg
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2011-09-14 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: rdf
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2165534840 !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 21
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 3
|
33
|
-
- 3
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
34
22
|
version: 0.3.3
|
35
23
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: haml
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: *2165534840
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: haml
|
28
|
+
requirement: &2165533600 !ruby/object:Gem::Requirement
|
41
29
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 7
|
46
|
-
segments:
|
47
|
-
- 3
|
48
|
-
- 0
|
49
|
-
- 0
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
50
33
|
version: 3.0.0
|
51
34
|
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: nokogiri
|
55
35
|
prerelease: false
|
56
|
-
|
36
|
+
version_requirements: *2165533600
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: nokogiri
|
39
|
+
requirement: &2165532460 !ruby/object:Gem::Requirement
|
57
40
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
hash: 15
|
62
|
-
segments:
|
63
|
-
- 1
|
64
|
-
- 4
|
65
|
-
- 4
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
66
44
|
version: 1.4.4
|
67
45
|
type: :runtime
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: facets
|
71
46
|
prerelease: false
|
72
|
-
|
47
|
+
version_requirements: *2165532460
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: facets
|
50
|
+
requirement: &2165508060 !ruby/object:Gem::Requirement
|
73
51
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
hash: 41
|
78
|
-
segments:
|
79
|
-
- 2
|
80
|
-
- 9
|
81
|
-
- 1
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
82
55
|
version: 2.9.1
|
83
56
|
type: :runtime
|
84
|
-
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: spira
|
87
57
|
prerelease: false
|
88
|
-
|
58
|
+
version_requirements: *2165508060
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: spira
|
61
|
+
requirement: &2165506740 !ruby/object:Gem::Requirement
|
89
62
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
hash: 7
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
- 0
|
97
|
-
- 12
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
98
66
|
version: 0.0.12
|
99
67
|
type: :development
|
100
|
-
version_requirements: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
name: rspec
|
103
68
|
prerelease: false
|
104
|
-
|
69
|
+
version_requirements: *2165506740
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rspec
|
72
|
+
requirement: &2165505420 !ruby/object:Gem::Requirement
|
105
73
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
hash: 27
|
110
|
-
segments:
|
111
|
-
- 2
|
112
|
-
- 5
|
113
|
-
- 0
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
114
77
|
version: 2.5.0
|
115
78
|
type: :development
|
116
|
-
version_requirements: *id006
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: rdf-spec
|
119
79
|
prerelease: false
|
120
|
-
|
80
|
+
version_requirements: *2165505420
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rdf-spec
|
83
|
+
requirement: &2165503180 !ruby/object:Gem::Requirement
|
121
84
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
hash: 23
|
126
|
-
segments:
|
127
|
-
- 0
|
128
|
-
- 3
|
129
|
-
- 2
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
130
88
|
version: 0.3.2
|
131
89
|
type: :development
|
132
|
-
version_requirements: *id007
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
name: rdf-turtle
|
135
90
|
prerelease: false
|
136
|
-
|
91
|
+
version_requirements: *2165503180
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: rdf-turtle
|
94
|
+
requirement: &2165501920 !ruby/object:Gem::Requirement
|
137
95
|
none: false
|
138
|
-
requirements:
|
139
|
-
- -
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
|
142
|
-
segments:
|
143
|
-
- 0
|
144
|
-
version: "0"
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 0.1.0
|
145
100
|
type: :development
|
146
|
-
version_requirements: *id008
|
147
|
-
- !ruby/object:Gem::Dependency
|
148
|
-
name: rdf-rdfxml
|
149
101
|
prerelease: false
|
150
|
-
|
102
|
+
version_requirements: *2165501920
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rdf-rdfxml
|
105
|
+
requirement: &2165500860 !ruby/object:Gem::Requirement
|
151
106
|
none: false
|
152
|
-
requirements:
|
153
|
-
- -
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
hash: 27
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
- 3
|
159
|
-
- 4
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
160
110
|
version: 0.3.4
|
161
111
|
type: :development
|
162
|
-
version_requirements: *id009
|
163
|
-
- !ruby/object:Gem::Dependency
|
164
|
-
name: rdf-isomorphic
|
165
112
|
prerelease: false
|
166
|
-
|
113
|
+
version_requirements: *2165500860
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: rdf-isomorphic
|
116
|
+
requirement: &2165495300 !ruby/object:Gem::Requirement
|
167
117
|
none: false
|
168
|
-
requirements:
|
169
|
-
- -
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
hash: 27
|
172
|
-
segments:
|
173
|
-
- 0
|
174
|
-
- 3
|
175
|
-
- 4
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
176
121
|
version: 0.3.4
|
177
122
|
type: :development
|
178
|
-
version_requirements: *id010
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
name: yard
|
181
123
|
prerelease: false
|
182
|
-
|
124
|
+
version_requirements: *2165495300
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sparql
|
127
|
+
requirement: &2165494580 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 0.0.2
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *2165494580
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: yard
|
138
|
+
requirement: &2165493880 !ruby/object:Gem::Requirement
|
183
139
|
none: false
|
184
|
-
requirements:
|
185
|
-
- -
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
hash: 7
|
188
|
-
segments:
|
189
|
-
- 0
|
190
|
-
- 6
|
191
|
-
- 0
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
192
143
|
version: 0.6.0
|
193
144
|
type: :development
|
194
|
-
|
195
|
-
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: *2165493880
|
147
|
+
description: RDF::RDFa is an RDFa reader/writer for Ruby using the RDF.rb library
|
148
|
+
suite.
|
196
149
|
email: public-rdf-ruby@w3.org
|
197
150
|
executables: []
|
198
|
-
|
199
151
|
extensions: []
|
200
|
-
|
201
152
|
extra_rdoc_files: []
|
202
|
-
|
203
|
-
files:
|
153
|
+
files:
|
204
154
|
- AUTHORS
|
205
155
|
- README
|
206
156
|
- UNLICENSE
|
@@ -230,39 +180,28 @@ files:
|
|
230
180
|
- lib/rdf/rdfa/writer.rb
|
231
181
|
- lib/rdf/rdfa.rb
|
232
182
|
homepage: http://github.com/gkellogg/rdf-rdfa
|
233
|
-
licenses:
|
183
|
+
licenses:
|
234
184
|
- Public Domain
|
235
185
|
post_install_message:
|
236
186
|
rdoc_options: []
|
237
|
-
|
238
|
-
require_paths:
|
187
|
+
require_paths:
|
239
188
|
- lib
|
240
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
189
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
241
190
|
none: false
|
242
|
-
requirements:
|
243
|
-
- -
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
hash: 53
|
246
|
-
segments:
|
247
|
-
- 1
|
248
|
-
- 8
|
249
|
-
- 1
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
250
194
|
version: 1.8.1
|
251
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
196
|
none: false
|
253
|
-
requirements:
|
254
|
-
- -
|
255
|
-
- !ruby/object:Gem::Version
|
256
|
-
|
257
|
-
segments:
|
258
|
-
- 0
|
259
|
-
version: "0"
|
197
|
+
requirements:
|
198
|
+
- - ! '>='
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
260
201
|
requirements: []
|
261
|
-
|
262
202
|
rubyforge_project: rdf-rdfa
|
263
|
-
rubygems_version: 1.8.
|
203
|
+
rubygems_version: 1.8.10
|
264
204
|
signing_key:
|
265
205
|
specification_version: 3
|
266
206
|
summary: RDFa reader/writer for RDF.rb.
|
267
207
|
test_files: []
|
268
|
-
|