rdf2json 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rdf2json/rdf2json.rb +3 -0
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c725a95120ee3430044a29b3fc85c70ed6f538ce
4
- data.tar.gz: fd13be6f57a3dd13b30c65b1c90cd09d40c634a0
3
+ metadata.gz: afb9a0c82f6c4db5b03f00869317216a9e57c7f3
4
+ data.tar.gz: c939ab7aa5986f167f60369705d16f9391db4cee
5
5
  SHA512:
6
- metadata.gz: c1a56f151c7c8a9e02df91da756a9ea20a300a244dd49bec30e497eab3686940a4677c708c45e71bf954dcd649f409f618e7efbfd9854f538c70a027c7d0dfc0
7
- data.tar.gz: 8748a71d9aeabed5a4b72c8818074e866f59400406116a02902145cc9bc667e701bbf4fc7cd2dd4635239bcbb89abf195885bcc6b28ccd42041afc630e2cda68
6
+ metadata.gz: 575345495bf36c56aae4468602473c1048f574664be99b28a2411f563cc42f268bb2f1597f9afdbe641460cfbb8fc2b12e0725b1f029436806a1b81981fa359a
7
+ data.tar.gz: c9369fe881769e6526c19fd34456fa939fcb82bf3f56350f7e0972ae6804c7fcd9ad82bb2c0794e3d777867014d898f8481bec242e473a41f7cb86e937e9c189
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -271,7 +271,10 @@ class Converter
271
271
  return { :read_errors => 0, :no_of_statements => 0, :documents => 0 } unless block and not block.empty?
272
272
 
273
273
  # Virtuoso output error-handling:
274
+ # 1. replace escaped tick with a plain tick
275
+ # 2. replace spaces in IRIs with '%20'
274
276
  block.gsub!("\\'", "'")
277
+ block.gsub!(/(<[^>]+) ([^>]+>)/, '\\1%20\\2')
275
278
 
276
279
  read_errors = 0
277
280
  no_of_statements = 0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joachim Baran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -167,11 +167,11 @@ files:
167
167
  - README.md
168
168
  - Rakefile
169
169
  - VERSION
170
+ - bin/rdf2json
170
171
  - lib/rdf2json.rb
171
172
  - lib/rdf2json/rdf2json.rb
172
173
  - test/helper.rb
173
174
  - test/test_rdf2json.rb
174
- - bin/rdf2json
175
175
  homepage: http://github.com/joejimbo/rdf2json
176
176
  licenses:
177
177
  - MIT
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.0.14
195
+ rubygems_version: 2.0.5
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: RDF N-Triples and N-Quads to JSON-LD or JSON converter.