json-ld 1.0.1 → 1.0.1.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/json/ld/flatten.rb +0 -1
- data/lib/json/ld/version.rb +1 -1
- data/lib/json/ld/writer.rb +3 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97a3575f2cb93a3349fbf649fbe3f6e2bc76f309
|
4
|
+
data.tar.gz: 03bd6138b0f58510bf04e80cd0b303c0672ac30e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31a098c284a903bcc42447954a9989e3d775d10c88dd91abdfd02c6c04e8714e6e0d81ac9daa01db96abb58b3acadc185da3331fee040aad9055c11e2d25b8f4
|
7
|
+
data.tar.gz: 5aa36012fdc65dce8d9129cff315b6ed828e3a8be3af7c4d093fe5becc100360c90ad0bd8e9bc1b30230c5ece62952dc339541485403a705cfaf071f7926b543
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[JSON-LD][] reader/writer for [RDF.rb][RDF.rb] and fully conforming [JSON-LD][] processor.
|
4
4
|
|
5
5
|
[](http://badge.fury.io/rb/json-ld)
|
6
|
-
[](http://travis-ci.org/ruby-rdf/json-ld)
|
7
7
|
|
8
8
|
## Features
|
9
9
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.1
|
1
|
+
1.0.1.1
|
data/lib/json/ld/flatten.rb
CHANGED
@@ -147,7 +147,6 @@ module JSON::LD
|
|
147
147
|
|
148
148
|
# Finally, for each key-value pair property-value in element ordered by property perform the following steps:
|
149
149
|
element.keys.sort.each do |property|
|
150
|
-
#require 'debugger'; breakpoint
|
151
150
|
value = element[property]
|
152
151
|
|
153
152
|
# If property is a blank node identifier, replace it with a newly generated blank node identifier passing property for identifier.
|
data/lib/json/ld/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module JSON::LD::VERSION
|
2
2
|
VERSION_FILE = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "..", "VERSION")
|
3
|
-
MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).
|
3
|
+
MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chomp.split(".")
|
4
4
|
|
5
5
|
STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
|
6
6
|
|
data/lib/json/ld/writer.rb
CHANGED
@@ -94,7 +94,7 @@ module JSON::LD
|
|
94
94
|
options[:base_uri] ||= options[:base] if options.has_key?(:base)
|
95
95
|
options[:base] ||= options[:base_uri] if options.has_key?(:base_uri)
|
96
96
|
super do
|
97
|
-
@repo = RDF::
|
97
|
+
@repo = RDF::Repository.new
|
98
98
|
|
99
99
|
if block_given?
|
100
100
|
case block.arity
|
@@ -146,10 +146,8 @@ module JSON::LD
|
|
146
146
|
def write_epilogue
|
147
147
|
@debug = @options[:debug]
|
148
148
|
|
149
|
-
|
150
|
-
|
151
|
-
debug("writer") { "serialize #{statements.length} statements, #{@options.inspect}"}
|
152
|
-
result = API.fromRDF(statements, @options)
|
149
|
+
debug("writer") { "serialize #{@repo.count} statements, #{@options.inspect}"}
|
150
|
+
result = API.fromRDF(@repo, @options)
|
153
151
|
|
154
152
|
# If we were provided a context, or prefixes, use them to compact the output
|
155
153
|
context = RDF::Util::File.open_file(@options[:context]) if @options[:context].is_a?(String)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-ld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.1
|
4
|
+
version: 1.0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -272,7 +272,7 @@ files:
|
|
272
272
|
- spec/test-files/test-9-expanded.json
|
273
273
|
- spec/test-files/test-9-input.json
|
274
274
|
- bin/jsonld
|
275
|
-
homepage: http://github.com/
|
275
|
+
homepage: http://github.com/ruby-rdf/json-ld
|
276
276
|
licenses:
|
277
277
|
- Public Domain
|
278
278
|
metadata: {}
|