json-ld 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZGE3NDYzNTY3ZDZhZGNhZjFjMzVjY2Q2YTFhOTQ1MmNmMDk4MTUxYg==
5
+ data.tar.gz: !binary |-
6
+ NTZhNTg4NDUzYWMwMjVjOGE1NDc4MmY4ZDI0Y2VjNGY0NWZkZmViYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ M2RjNDUzNDg3YTA5MTcyYmM5ZDdhM2UwYjllZTc0YWM3MzUzODM2MzUwYzI1
10
+ ZDBjOTFiOGI0ZGUxMjM3MjA3MmFmZDAxZjgxZDkwYWRiYWRiODJiNDdlMjcz
11
+ ZTMwYjlkZjhiZTk1YmE2NjI2MjI1ZmU5YmNiMDIyMzk0ZmZhZmI=
12
+ data.tar.gz: !binary |-
13
+ NWI0YzUzMDk2ODRmMjM3YmY1Mzc2OTkyNzM5MDNhMTgzNjEzOTFiNTQyMDVm
14
+ NTYzZmIxMWViZjk2NTMxNjMxNWNiZGYxOThhY2RlZDYwMTExZjM2YWIzYmRm
15
+ M2Q5OWU3OTU1MzRiNjM1NzIyMTY4MWQxNDdlYWQxMTg2ODY1MWE=
@@ -206,7 +206,7 @@ Install with `gem install json-ld`
206
206
  ## Documentation
207
207
  Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-ld/file/README.markdown)
208
208
 
209
- ### Principle Classes
209
+ ### Principal Classes
210
210
  * {JSON::LD}
211
211
  * {JSON::LD::API}
212
212
  * {JSON::LD::Compact}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
@@ -364,6 +364,7 @@ module JSON::LD
364
364
  # @yield statement
365
365
  # @yieldparam [RDF::Statement] statement
366
366
  def self.toRDF(input, context = nil, callback = nil, options = {}, &block)
367
+ results = []
367
368
  API.new(input, context, options) do |api|
368
369
  # 1) Perform the Expansion Algorithm on the JSON-LD input.
369
370
  # This removes any existing context to allow the given context to be cleanly applied.
@@ -371,7 +372,6 @@ module JSON::LD
371
372
 
372
373
  api.send(:debug, ".expand") {"expanded input: #{result.to_json(JSON_STATE)}"}
373
374
  # Start generating statements
374
- results = []
375
375
  api.statements("", result, nil, nil, nil) do |statement|
376
376
  callback ||= block if block_given?
377
377
  if callback
@@ -380,8 +380,8 @@ module JSON::LD
380
380
  results << statement
381
381
  end
382
382
  end
383
- results
384
383
  end
384
+ results
385
385
  end
386
386
 
387
387
  ##
@@ -62,9 +62,9 @@ module JSON::LD
62
62
  v = [v].compact unless v.is_a?(Array)
63
63
  unless context.container(property) == '@list'
64
64
  v = {compacted_key => v}
65
- if element['@annotation']
66
- compacted_key = context.compact_iri('@annotation', :position => :predicate, :depth => @depth)
67
- v[compacted_key] = element['@annotation']
65
+ if element['@index']
66
+ compacted_key = context.compact_iri('@index', :position => :predicate, :depth => @depth)
67
+ v[compacted_key] = element['@index']
68
68
  end
69
69
  end
70
70
  debug("compact") {"@list result, return as #{v.inspect}"}
@@ -141,7 +141,7 @@ module JSON::LD
141
141
  compacted_value = compacted_value.first if compacted_value.length == 1 && @options[:compactArrays]
142
142
  compacted_value
143
143
  end
144
- elsif key == '@annotation' && context.container(property) == '@annotation'
144
+ elsif key == '@index' && context.container(property) == '@index'
145
145
  # Skip the annotation key if annotations being applied
146
146
  next
147
147
  else
@@ -154,7 +154,7 @@ module JSON::LD
154
154
  end
155
155
 
156
156
  # For each item in value:
157
- value = [value] if key == '@annotation' && value.is_a?(String)
157
+ value = [value] if key == '@index' && value.is_a?(String)
158
158
  raise ProcessingError, "found #{value.inspect} for #{key} of #{element.inspect}" unless value.is_a?(Array)
159
159
  value.each do |item|
160
160
  compacted_key = context.compact_iri(key, :position => :predicate, :value => item, :depth => @depth)
@@ -166,7 +166,7 @@ module JSON::LD
166
166
  next if compacted_key.nil?
167
167
 
168
168
  # Language maps and annotations
169
- if field = %w(@language @annotation).detect {|kk| context.container(compacted_key) == kk}
169
+ if field = %w(@language @index).detect {|kk| context.container(compacted_key) == kk}
170
170
  item_result = result[compacted_key] ||= Hash.new
171
171
  item_key = item[field]
172
172
  end
@@ -219,7 +219,7 @@ module JSON::LD
219
219
  n1 == n2
220
220
  elsif list?(n1)
221
221
  list?(n2) &&
222
- n1.fetch('@annotation', true) == n2.fetch('@annotation', true) &&
222
+ n1.fetch('@index', true) == n2.fetch('@index', true) &&
223
223
  nodesEquivalent?(n1['@list'], n2['@list'])
224
224
  elsif (node?(n1) || node_reference?(n2))
225
225
  (node?(n2) || node_reference?(n2)) && n1['@id'] == n2['@id']
@@ -116,8 +116,6 @@ module JSON::LD
116
116
  # on a remote context load error, syntax error, or a reference to a term which is not defined.
117
117
  def parse(context)
118
118
  case context
119
- when nil
120
- EvaluationContext.new
121
119
  when EvaluationContext
122
120
  debug("parse") {"context: #{context.inspect}"}
123
121
  context.dup
@@ -265,7 +263,7 @@ module JSON::LD
265
263
  new_ec.set_coerce(key, iri)
266
264
  end
267
265
  when '@container'
268
- raise InvalidContext::Syntax, "unknown mapping for '@container' to #{value2.inspect}" unless %w(@list @set @language @annotation).include?(value2)
266
+ raise InvalidContext::Syntax, "unknown mapping for '@container' to #{value2.inspect}" unless %w(@list @set @language @index).include?(value2)
269
267
  if new_ec.container(key) != value2
270
268
  debug("parse") {"container #{key.inspect} as #{value2.inspect}"}
271
269
  new_ec.set_container(key, value2)
@@ -345,7 +343,7 @@ module JSON::LD
345
343
  end
346
344
 
347
345
  debug {"=> container(#{k}) => #{container(k)}"}
348
- if %w(@list @set @language @annotation).include?(container(k))
346
+ if %w(@list @set @language @index).include?(container(k))
349
347
  ctx[k]["@container"] = container(k)
350
348
  debug {"=> container[#{k}] => #{container(k).inspect}"}
351
349
  end
@@ -589,7 +587,7 @@ module JSON::LD
589
587
 
590
588
  # If value is a @list select terms that match every item equivalently.
591
589
  debug("compact_iri", "#{value.inspect} is a list? #{list?(value).inspect}") if value
592
- if list?(value) && !annotation?(value)
590
+ if list?(value) && !index?(value)
593
591
  list_terms = matched_terms.select {|t| container(t) == '@list'}
594
592
 
595
593
  terms = list_terms.inject({}) do |memo, t|
@@ -791,13 +789,13 @@ module JSON::LD
791
789
  depth(options) do
792
790
  debug("compact_value") {"property: #{property.inspect}, value: #{value.inspect}, coerce: #{coerce(property).inspect}"}
793
791
 
794
- # Remove @annotation if property has annotation
795
- value.delete('@annotation') if container(property) == '@annotation'
792
+ # Remove @index if property has annotation
793
+ value.delete('@index') if container(property) == '@index'
796
794
 
797
795
  result = case
798
- when value.has_key?('@annotation')
796
+ when value.has_key?('@index')
799
797
  # Don't compact the value
800
- debug {" (@annotation without container @annotation)"}
798
+ debug {" (@index without container @index)"}
801
799
  value
802
800
  when coerce(property) == '@id' && value.has_key?('@id')
803
801
  # Compact an @id coercion
@@ -105,10 +105,10 @@ module JSON::LD
105
105
  # If expanded property is @language, value must be a string with the lexical form described in [BCP47] or null. Set the @language member of result to the lowercased value.
106
106
  raise ProcessingError::Lossy, "Value of #{expanded_property} must be a string, was #{value.inspect}" if value.is_a?(Hash) || value.is_a?(Array)
107
107
  value.to_s.downcase
108
- when '@annotation'
109
- # If expanded property is @annotation value must be a string. Set the @annotation member of result to value.
108
+ when '@index'
109
+ # If expanded property is @index value must be a string. Set the @index member of result to value.
110
110
  value = value.first if value.is_a?(Array) && value.length == 1
111
- raise ProcessingError, "Value of @annotation is not a string: #{value.inspect}" unless value.is_a?(String)
111
+ raise ProcessingError, "Value of @index is not a string: #{value.inspect}" unless value.is_a?(String)
112
112
  value.to_s
113
113
  when '@list', '@set', '@graph'
114
114
  # If expanded property is @set, @list, or @graph, set the expanded property member of result to the result of expanding value by recursively using this algorithm, along with the active context and active property. If expanded property is @list and active property is null or @graph, pass @list as active property instead.
@@ -158,8 +158,8 @@ module JSON::LD
158
158
  end
159
159
  # Set the value associated with property to the multilingual array.
160
160
  language_map_values
161
- elsif context.container(property) == '@annotation' && value.is_a?(Hash)
162
- # Otherwise, if value is a JSON object and property is not a keyword and its associated term entry in the active context has a @container key associated with a value of @annotation, process the associated value as a annotation:
161
+ elsif context.container(property) == '@index' && value.is_a?(Hash)
162
+ # Otherwise, if value is a JSON object and property is not a keyword and its associated term entry in the active context has a @container key associated with a value of @index, process the associated value as a annotation:
163
163
 
164
164
  # Set ary to an empty array.
165
165
  annotation_map_values = []
@@ -167,10 +167,10 @@ module JSON::LD
167
167
  # For each key-value in the object:
168
168
  value.keys.sort.each do |k|
169
169
  [value[k]].flatten.each do |v|
170
- # Expand the value, adding an '@annotation' key with value equal to the key
170
+ # Expand the value, adding an '@index' key with value equal to the key
171
171
  expanded_value = depth { expand(v, property, context, options) }
172
172
  next unless expanded_value
173
- expanded_value['@annotation'] ||= k
173
+ expanded_value['@index'] ||= k
174
174
  annotation_map_values << expanded_value
175
175
  end
176
176
  end
@@ -220,10 +220,10 @@ module JSON::LD
220
220
 
221
221
  debug("output object") {output_object.inspect}
222
222
 
223
- # If the active property is null or @graph and element has a @value member without an @annotation member, or element consists of only an @id member, set element to null.
223
+ # If the active property is null or @graph and element has a @value member without an @index member, or element consists of only an @id member, set element to null.
224
224
  debug("output object(ap)") {((active_property || '@graph') == '@graph').inspect}
225
225
  if (active_property || '@graph') == '@graph' &&
226
- ((output_object.has_key?('@value') && !output_object.has_key?('@annotation')) ||
226
+ ((output_object.has_key?('@value') && !output_object.has_key?('@index')) ||
227
227
  (output_object.keys - %w(@id)).empty?)
228
228
  debug("empty top-level") {output_object.inspect}
229
229
  return nil
@@ -233,8 +233,8 @@ module JSON::LD
233
233
  if output_object.has_key?('@value')
234
234
  output_object.delete('@language') if output_object['@language'].to_s.empty?
235
235
  output_object.delete('@type') if output_object['@type'].to_s.empty?
236
- if (%w(@annotation @language @type) - output_object.keys).empty?
237
- raise ProcessingError, "element must not have more than one other property other than @annotation, which can either be @language or @type with a string value." unless value.is_a?(String)
236
+ if (%w(@index @language @type) - output_object.keys).empty?
237
+ raise ProcessingError, "element must not have more than one other property other than @index, which can either be @language or @type with a string value." unless value.is_a?(String)
238
238
  end
239
239
 
240
240
  # if the value of @value equals null, replace element with the value of null.
@@ -245,10 +245,10 @@ module JSON::LD
245
245
  output_object['@type'] = [output_object['@type']]
246
246
  end
247
247
 
248
- # If element has an @set or @list property, it must be the only property (other tha @annotation). Set element to the value of @set;
248
+ # If element has an @set or @list property, it must be the only property (other tha @index). Set element to the value of @set;
249
249
  # leave @list untouched.
250
250
  if !(%w(@set @list) & output_object.keys).empty?
251
- o_keys = output_object.keys - %w(@set @list @annotation)
251
+ o_keys = output_object.keys - %w(@set @list @index)
252
252
  raise ProcessingError, "element must have only @set or @list: #{output_object.keys.inspect}" if o_keys.length > 1
253
253
 
254
254
  output_object = output_object.values.first unless output_object.has_key?('@list')
@@ -32,12 +32,6 @@ module RDF
32
32
  end
33
33
  end
34
34
 
35
- class URI
36
- def to_s
37
- @uri.to_s
38
- end
39
- end
40
-
41
35
  class Literal
42
36
  class Double
43
37
  ##
@@ -26,9 +26,9 @@ module JSON::LD
26
26
  # @yieldreturn [void] ignored
27
27
  # @raise [RDF::ReaderError] if the JSON document cannot be loaded
28
28
  def initialize(input = $stdin, options = {}, &block)
29
- options[:base_uri] ||= options[:base] if options.has_key?(:base)
30
- options[:base] ||= options[:base_uri] if options.has_key?(:base_uri)
29
+ options[:base_uri] ||= options[:base]
31
30
  super do
31
+ @options[:base] ||= base_uri.to_s if base_uri
32
32
  begin
33
33
  @doc = JSON.load(input)
34
34
  rescue JSON::ParserError => e
@@ -44,8 +44,8 @@ module JSON::LD
44
44
  #
45
45
  # @param [Object] value
46
46
  # @return [Boolean]
47
- def annotation?(value)
48
- value.is_a?(Hash) && value.has_key?('@annotation')
47
+ def index?(value)
48
+ value.is_a?(Hash) && value.has_key?('@index')
49
49
  end
50
50
 
51
51
  ##
@@ -17,7 +17,7 @@ describe JSON::LD::EvaluationContext do
17
17
  }
18
18
  subject { JSON::LD::EvaluationContext.new(:debug => @debug, :validate => true)}
19
19
 
20
- describe "#parse" do
20
+ describe "#parse", :pending => "Major update" do
21
21
  context "remote" do
22
22
  before(:each) do
23
23
  @ctx = StringIO.new(@ctx_json)
@@ -313,7 +313,7 @@ describe JSON::LD::EvaluationContext do
313
313
  }, @debug)
314
314
  end
315
315
 
316
- it "context array" do
316
+ it "context array", :pending => "Major update" do
317
317
  ctx = [
318
318
  {"foo" => "http://example.com/"},
319
319
  {"baz" => "bob"}
@@ -555,7 +555,7 @@ describe JSON::LD::EvaluationContext do
555
555
  }, @debug)
556
556
  end
557
557
 
558
- context "extra keys or values" do
558
+ context "extra keys or values", :pending => "Major update" do
559
559
  {
560
560
  "extra key" => {
561
561
  :input => {"foo" => {"@id" => "http://example.com/foo", "@baz" => "foobar"}},
@@ -582,7 +582,7 @@ describe JSON::LD::EvaluationContext do
582
582
  subject.expand_iri("_:a").should be_a(RDF::Node)
583
583
  end
584
584
 
585
- context "keywords" do
585
+ context "keywords", :pending => "Major update" do
586
586
  %w(id type).each do |kw|
587
587
  it "expands #{kw} to @#{kw}" do
588
588
  subject.set_mapping(kw, "@#{kw}")
@@ -591,7 +591,7 @@ describe JSON::LD::EvaluationContext do
591
591
  end
592
592
  end
593
593
 
594
- context "relative IRI" do
594
+ context "relative IRI", :pending => "Major update" do
595
595
  {
596
596
  :subject => true,
597
597
  :predicate => false,
@@ -740,7 +740,7 @@ describe JSON::LD::EvaluationContext do
740
740
  end
741
741
  end
742
742
 
743
- context "with value" do
743
+ context "with value", :pending => "Major update" do
744
744
  let(:ctx) do
745
745
  c = subject.parse({
746
746
  "xsd" => RDF::XSD.to_s,
@@ -813,7 +813,7 @@ describe JSON::LD::EvaluationContext do
813
813
  end
814
814
  end
815
815
 
816
- context "compact-0018" do
816
+ context "compact-0018", :pending => "Major update" do
817
817
  let(:ctx) do
818
818
  subject.parse(JSON.parse %({
819
819
  "id1": "http://example.com/id1",
@@ -949,16 +949,16 @@ describe JSON::LD::EvaluationContext do
949
949
  let(:ctx) do
950
950
  subject.parse({"name" => {"@id" => "http://example.com/property", "@container" => "@list"}})
951
951
  end
952
- it "Does not use @list with @annotation" do
952
+ it "Does not use @list with @index" do
953
953
  ctx.compact_iri("http://example.com/property", :value => {
954
954
  "@list" => ["one item"],
955
- "@annotation" => "an annotation"
955
+ "@index" => "an annotation"
956
956
  }).should produce("http://example.com/property", @debug)
957
957
  end
958
958
  end
959
959
  end
960
960
 
961
- describe "#term_rank" do
961
+ describe "#term_rank", :pending => "Major update" do
962
962
  {
963
963
  "no coercions" => {
964
964
  :defn => {},
@@ -726,7 +726,7 @@ describe JSON::LD::API do
726
726
  "@context" => {
727
727
  "container" => {
728
728
  "@id" => "http://example.com/container",
729
- "@container" => "@annotation"
729
+ "@container" => "@index"
730
730
  }
731
731
  },
732
732
  "@id" => "http://example.com/annotationsTest",
@@ -739,9 +739,9 @@ describe JSON::LD::API do
739
739
  {
740
740
  "@id" => "http://example.com/annotationsTest",
741
741
  "http://example.com/container" => [
742
- {"@value" => "Die Königin", "@annotation" => "de"},
743
- {"@value" => "Ihre Majestät", "@annotation" => "de"},
744
- {"@value" => "The Queen", "@annotation" => "en"}
742
+ {"@value" => "Die Königin", "@index" => "de"},
743
+ {"@value" => "Ihre Majestät", "@index" => "de"},
744
+ {"@value" => "The Queen", "@index" => "en"}
745
745
  ]
746
746
  }
747
747
  ]
@@ -6,7 +6,7 @@ describe JSON::LD do
6
6
  describe "test suite" do
7
7
  require 'suite_helper'
8
8
  m = Fixtures::SuiteTest::Manifest.open('http://json-ld.org/test-suite/tests/compact-manifest.jsonld')
9
- describe m.name do
9
+ describe m.name, :pending => "Major update" do
10
10
  m.entries.each do |t|
11
11
  specify "#{t.property('input')}: #{t.name}" do
12
12
  begin
@@ -6,7 +6,7 @@ describe JSON::LD do
6
6
  describe "test suite" do
7
7
  require 'suite_helper'
8
8
  m = Fixtures::SuiteTest::Manifest.open('http://json-ld.org/test-suite/tests/expand-manifest.jsonld')
9
- describe m.name do
9
+ describe m.name, :pending => "Major update" do
10
10
  m.entries.each do |t|
11
11
  specify "#{t.property('input')}: #{t.name}" do
12
12
  begin
@@ -25,7 +25,9 @@ module RDF::Util
25
25
  when /^#{REMOTE_PATH}/
26
26
  begin
27
27
  #puts "attempt to open #{filename_or_url} locally"
28
- if response = ::File.open(filename_or_url.to_s.sub(REMOTE_PATH, LOCAL_PATH))
28
+ local_filename = filename_or_url.to_s.sub(REMOTE_PATH, LOCAL_PATH)
29
+ if ::File.exist?(local_filename)
30
+ response = ::File.open(local_filename)
29
31
  #puts "use #{filename_or_url} locally"
30
32
  case filename_or_url.to_s
31
33
  when /\.jsonld$/
@@ -6,7 +6,7 @@ describe JSON::LD do
6
6
  describe "test suite" do
7
7
  require 'suite_helper'
8
8
  m = Fixtures::SuiteTest::Manifest.open('http://json-ld.org/test-suite/tests/toRdf-manifest.jsonld')
9
- describe m.name do
9
+ describe m.name, :pending => "Major update" do
10
10
  m.entries.each do |t|
11
11
  specify "#{t.property('input')}: #{t.name}" do
12
12
  begin
@@ -211,7 +211,7 @@ describe JSON::LD::API do
211
211
  end
212
212
  end
213
213
 
214
- context "overriding keywords" do
214
+ context "overriding keywords", :pending => "Major update" do
215
215
  {
216
216
  "'url' for @id, 'a' for @type" => [
217
217
  %q({
@@ -355,7 +355,7 @@ describe JSON::LD::API do
355
355
  end
356
356
  end
357
357
 
358
- context "context" do
358
+ context "context", :pending => "Major update" do
359
359
  {
360
360
  "@id coersion" =>
361
361
  [
@@ -546,7 +546,7 @@ describe JSON::LD::API do
546
546
  end
547
547
 
548
548
  context "lists" do
549
- context "term def with @id + @type + @container" do
549
+ context "term def with @id + @type + @container", :pending => "Major update" do
550
550
  {
551
551
  "dt with term" => [
552
552
  %q({
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
5
- prerelease:
4
+ version: 0.9.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gregg Kellogg
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
11
+ date: 2013-04-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rdf
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: equivalent-xml
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: open-uri-cached
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: yard
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rdf-spec
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ! '>='
124
109
  - !ruby/object:Gem::Version
@@ -126,7 +111,6 @@ dependencies:
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rdf-turtle
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ! '>='
132
116
  - !ruby/object:Gem::Version
@@ -134,7 +118,6 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ! '>='
140
123
  - !ruby/object:Gem::Version
@@ -142,7 +125,6 @@ dependencies:
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rdf-trig
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ! '>='
148
130
  - !ruby/object:Gem::Version
@@ -150,7 +132,6 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ! '>='
156
137
  - !ruby/object:Gem::Version
@@ -158,7 +139,6 @@ dependencies:
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: rdf-isomorphic
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
143
  - - ! '>='
164
144
  - !ruby/object:Gem::Version
@@ -166,7 +146,6 @@ dependencies:
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
150
  - - ! '>='
172
151
  - !ruby/object:Gem::Version
@@ -174,7 +153,6 @@ dependencies:
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: rdf-xsd
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
157
  - - ! '>='
180
158
  - !ruby/object:Gem::Version
@@ -182,7 +160,6 @@ dependencies:
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
164
  - - ! '>='
188
165
  - !ruby/object:Gem::Version
@@ -190,7 +167,6 @@ dependencies:
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: backports
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
171
  - - ! '>='
196
172
  - !ruby/object:Gem::Version
@@ -198,7 +174,6 @@ dependencies:
198
174
  type: :runtime
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
178
  - - ! '>='
204
179
  - !ruby/object:Gem::Version
@@ -313,27 +288,26 @@ files:
313
288
  homepage: http://github.com/gkellogg/json-ld
314
289
  licenses:
315
290
  - Public Domain
291
+ metadata: {}
316
292
  post_install_message:
317
293
  rdoc_options: []
318
294
  require_paths:
319
295
  - lib
320
296
  required_ruby_version: !ruby/object:Gem::Requirement
321
- none: false
322
297
  requirements:
323
298
  - - ! '>='
324
299
  - !ruby/object:Gem::Version
325
300
  version: 1.8.1
326
301
  required_rubygems_version: !ruby/object:Gem::Requirement
327
- none: false
328
302
  requirements:
329
303
  - - ! '>='
330
304
  - !ruby/object:Gem::Version
331
305
  version: '0'
332
306
  requirements: []
333
307
  rubyforge_project: json-ld
334
- rubygems_version: 1.8.24
308
+ rubygems_version: 2.0.3
335
309
  signing_key:
336
- specification_version: 3
310
+ specification_version: 4
337
311
  summary: JSON-LD reader/writer for Ruby.
338
312
  test_files:
339
313
  - spec/api_spec.rb