rdf-json 3.1.0 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85550812c16dd00a229ac507fe88ff1e8d80fa4d72c9856845b855b1450486bd
4
- data.tar.gz: 2dec01991c762bce7fc918763058c1e57111fc38dcb299483a53fe5c17c70157
3
+ metadata.gz: 9fdc6e9d7b9cb3c6ae5dbcecee5ed8fa6bafc1fd9d83302c1bd6d3597ee5e7db
4
+ data.tar.gz: c369ff350ff76da25e00fe03e6490b6ea9ddc2e8814ed2c9ac9c6464daebd116
5
5
  SHA512:
6
- metadata.gz: 88adf1fa465559be0486790760fb2900e0866e399792cf802ca08e1bc0db36e60708273500b39094ee03630beeadcae070237674ff743415c7f551e63f03f467
7
- data.tar.gz: 0f4d6c605c45b76e436c1760d5fa32d18606e260e9a78cb2e851313f19621a1d25584b7d7a94aa1a1785439589be2576565d59de5f5298d354b605bbe3b586fe
6
+ metadata.gz: 77a97677eed790b0e961878480eefaf37dbda6dd3b46284944465c5b3dd3ab43d3446c2ebc628bb00d28d862538c0740077f48dac7f48953a9e36efe96de916c
7
+ data.tar.gz: d0b47c50b3fb9a0cbb2cb8a8a2607e8caf2c7cd4d0c7151e5c4d1281154f3e539a2d0cc9dc0ad425f3f27d471834486982c2d3a009d0cd0a5c744991ca2627c6
data/README.md CHANGED
@@ -1,17 +1,14 @@
1
- RDF/JSON Support for RDF.rb
2
- ===========================
1
+ # RDF/JSON Support for RDF.rb
3
2
 
4
3
  This is an [RDF.rb][] extension that adds support for parsing/serializing
5
4
  [RDF/JSON][], a simple JSON-based RDF serialization format.
6
5
 
7
- * <http://github.com/ruby-rdf/rdf-json>
8
- * <http://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
6
+ [![Gem Version](https://badge.fury.io/rb/rdf-json.svg)](https://badge.fury.io/rb/rdf-json)
7
+ [![Build Status](https://github.com/ruby-rdf/rdf-json/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/rdf-json/actions?query=workflow%3ACI)
8
+ [![Coverage Status](https://coveralls.io/repos/ruby-rdf/rdf-json/badge.svg?branch=develop)](https://coveralls.io/github/ruby-rdf/rdf-json?branch=develop)
9
+ [![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
9
10
 
10
- [![Gem Version](https://badge.fury.io/rb/rdf-json.png)](http://badge.fury.io/rb/rdf-json)
11
- [![Build Status](https://travis-ci.org/ruby-rdf/rdf-json.png)](https://travis-ci.org/ruby-rdf/rdf-json)
12
-
13
- Documentation
14
- -------------
11
+ ## Documentation
15
12
 
16
13
  * {RDF::JSON}
17
14
  * {RDF::JSON::Format}
@@ -19,43 +16,37 @@ Documentation
19
16
  * {RDF::JSON::Writer}
20
17
  * {RDF::JSON::Extensions}
21
18
 
22
- Dependencies
23
- ------------
19
+ ## Dependencies
24
20
 
25
- * [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.1)
21
+ * [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.3)
26
22
 
27
- Installation
28
- ------------
23
+ ## Installation
29
24
 
30
25
  The recommended installation method is via [RubyGems](http://rubygems.org/).
31
26
  To install the latest official release of the `RDF::JSON` gem, do:
32
27
 
33
28
  % [sudo] gem install rdf-json
34
29
 
35
- Download
36
- --------
30
+ ### Download
37
31
 
38
32
  To get a local working copy of the development repository, do:
39
33
 
40
- % git clone git://github.com/bendiken/rdf-json.git
34
+ % git clone git://github.com/ruby-rdf/rdf-json.git
41
35
 
42
36
  Alternatively, download the latest development version as a tarball as
43
37
  follows:
44
38
 
45
39
  % wget http://github.com/ruby-rdf/rdf-json/tarball/master
46
40
 
47
- Mailing List
48
- ------------
41
+ ## Mailing List
49
42
 
50
43
  * <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
51
44
 
52
- Author
53
- ------
45
+ ## Author
54
46
 
55
47
  * [Arto Bendiken](http://github.com/ruby-rdf) - <http://ar.to/>
56
48
 
57
- Contributors
58
- ------------
49
+ ## Contributors
59
50
 
60
51
  Refer to the accompanying {file:CREDITS} file.
61
52
 
@@ -76,15 +67,17 @@ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange develo
76
67
  enough, be assured we will eventually add you in there.
77
68
  * Do note that in order for us to merge any non-trivial changes (as a rule
78
69
  of thumb, additions larger than about 15 lines of code), we need an
79
- explicit [public domain dedication][PDD] on record from you.
70
+ explicit [public domain dedication][PDD] on record from you,
71
+ which you will be asked to agree to on the first commit to a repo within the organization.
72
+ Note that the agreement applies to all repos in the [Ruby RDF](https://github.com/ruby-rdf/) organization.
80
73
 
81
74
  ## License
82
75
 
83
76
  This is free and unencumbered public domain software. For more information,
84
77
  see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
85
78
 
86
- [RDF.rb]: http://www.rubydoc.info/github/ruby-rdf/rdf/
79
+ [RDF.rb]: https://ruby-rdf.github.io/rdf/
87
80
  [RDF/JSON]: http://www.w3.org/TR/2013/NOTE-rdf-json-20131107/
88
81
  [YARD]: http://yardoc.org/
89
82
  [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
90
- [PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
83
+ [PDD]: https://unlicense.org/#unlicensing-contributions
data/UNLICENSE CHANGED
@@ -21,4 +21,4 @@ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
21
  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
22
  OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
- For more information, please refer to <http://unlicense.org/>
24
+ For more information, please refer to <https://unlicense.org/>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.3.0
data/etc/doap.rj CHANGED
@@ -6,12 +6,6 @@
6
6
  "value": "http://xmlns.com/foaf/0.1/Person"
7
7
  }
8
8
  ],
9
- "http://www.w3.org/2000/01/rdf-schema#isDefinedBy": [
10
- {
11
- "type": "uri",
12
- "value": "http://datagraph.org/bendiken/foaf"
13
- }
14
- ],
15
9
  "http://xmlns.com/foaf/0.1/made": [
16
10
  {
17
11
  "type": "uri",
@@ -42,16 +36,12 @@
42
36
  {
43
37
  "type": "uri",
44
38
  "value": "http://ar.to/"
45
- },
46
- {
47
- "type": "uri",
48
- "value": "http://blog.datagraph.org/"
49
39
  }
50
40
  ],
51
41
  "http://usefulinc.com/ns/doap#bug-database": [
52
42
  {
53
43
  "type": "uri",
54
- "value": "http://github.com/ruby-rdf/rdf-json/issues"
44
+ "value": "https://github.com/ruby-rdf/rdf-json/issues"
55
45
  }
56
46
  ],
57
47
  "http://usefulinc.com/ns/doap#created": [
@@ -100,7 +90,7 @@
100
90
  "http://usefulinc.com/ns/doap#license": [
101
91
  {
102
92
  "type": "uri",
103
- "value": "http://creativecommons.org/licenses/publicdomain/"
93
+ "value": "https://unlicense.org/1.0/"
104
94
  }
105
95
  ],
106
96
  "http://usefulinc.com/ns/doap#maintainer": [
@@ -115,7 +105,7 @@
115
105
  "value": "RDF::JSON"
116
106
  }
117
107
  ],
118
- "http://usefulinc.com/ns/doap#platform": [
108
+ "http://usefulinc.com/ns/doap#programming-language": [
119
109
  {
120
110
  "type": "literal",
121
111
  "value": "Ruby"
@@ -14,7 +14,9 @@ module RDF::JSON
14
14
  #
15
15
  # @see http://n2.talis.com/wiki/RDF_JSON_Specification
16
16
  class Format < RDF::Format
17
- content_type 'application/rdf+json', :extension => :rj
17
+ content_type 'application/rdf+json',
18
+ extension: :rj,
19
+ uri: 'http://www.w3.org/ns/formats/RDF_JSON'
18
20
  content_encoding 'utf-8'
19
21
 
20
22
  reader { RDF::JSON::Reader }
@@ -6,21 +6,21 @@ module RDF::JSON
6
6
  # require 'rdf/json'
7
7
  #
8
8
  # @example Obtaining an RDF/JSON reader class
9
- # RDF::Reader.for(:json) #=> RDF::JSON::Reader
10
- # RDF::Reader.for("etc/doap.json")
11
- # RDF::Reader.for(:file_name => "etc/doap.json")
12
- # RDF::Reader.for(:file_extension => "json")
13
- # RDF::Reader.for(:content_type => "application/json")
9
+ # RDF::Reader.for(:rj) #=> RDF::JSON::Reader
10
+ # RDF::Reader.for("etc/doap.rj")
11
+ # RDF::Reader.for(:file_name => "etc/doap.rj")
12
+ # RDF::Reader.for(:file_extension => "rj")
13
+ # RDF::Reader.for(:content_type => "application/rj")
14
14
  #
15
15
  # @example Parsing RDF statements from an RDF/JSON file
16
- # RDF::JSON::Reader.open("etc/doap.json") do |reader|
16
+ # RDF::JSON::Reader.open("etc/doap.rj") do |reader|
17
17
  # reader.each_statement do |statement|
18
18
  # puts statement.inspect
19
19
  # end
20
20
  # end
21
21
  #
22
22
  # @example Parsing RDF statements from an RDF/JSON string
23
- # data = StringIO.new(File.read("etc/doap.json"))
23
+ # data = StringIO.new(File.read("etc/doap.rj"))
24
24
  # RDF::JSON::Reader.new(data) do |reader|
25
25
  # reader.each_statement do |statement|
26
26
  # puts statement.inspect
@@ -95,10 +95,10 @@ module RDF::JSON
95
95
  when 'uri'
96
96
  parse_uri(object['value'])
97
97
  when 'literal'
98
- literal = RDF::Literal.new(object['value'], {
99
- :language => object['lang'],
100
- :datatype => object['datatype'],
101
- })
98
+ literal = RDF::Literal.new(object['value'],
99
+ language: object['lang'],
100
+ datatype: object['datatype'],
101
+ )
102
102
  literal.validate! if validate?
103
103
  literal.canonicalize! if canonicalize?
104
104
  literal
@@ -7,13 +7,13 @@ module RDF::JSON
7
7
  #
8
8
  # @example Obtaining an RDF/JSON writer class
9
9
  # RDF::Writer.for(:json) #=> RDF::JSON::Writer
10
- # RDF::Writer.for("etc/test.json")
11
- # RDF::Writer.for(:file_name => "etc/test.json")
12
- # RDF::Writer.for(:file_extension => "json")
13
- # RDF::Writer.for(:content_type => "application/json")
10
+ # RDF::Writer.for("etc/test.rj")
11
+ # RDF::Writer.for(:file_name => "etc/test.rj")
12
+ # RDF::Writer.for(:file_extension => "rj")
13
+ # RDF::Writer.for(:content_type => "application/rdf+json")
14
14
  #
15
15
  # @example Serializing RDF statements into an RDF/JSON file
16
- # RDF::JSON::Writer.open("etc/test.json") do |writer|
16
+ # RDF::JSON::Writer.open("etc/test.rj") do |writer|
17
17
  # graph.each_statement do |statement|
18
18
  # writer << statement
19
19
  # end
data/lib/rdf/json.rb CHANGED
@@ -8,14 +8,14 @@ module RDF
8
8
  # require 'rdf/json'
9
9
  #
10
10
  # @example Parsing RDF statements from an RDF/JSON file
11
- # RDF::JSON::Reader.open("etc/doap.json") do |reader|
11
+ # RDF::JSON::Reader.open("etc/doap.rj") do |reader|
12
12
  # reader.each_statement do |statement|
13
13
  # puts statement.inspect
14
14
  # end
15
15
  # end
16
16
  #
17
17
  # @example Serializing RDF statements into an RDF/JSON file
18
- # RDF::JSON::Writer.open("etc/test.json") do |writer|
18
+ # RDF::JSON::Writer.open("etc/test.rj") do |writer|
19
19
  # graph.each_statement do |statement|
20
20
  # writer << statement
21
21
  # end
@@ -30,7 +30,7 @@ module RDF
30
30
  # RDF::Literal.new('true', :datatype => RDF::XSD.boolean).to_rdf_json.to_json
31
31
  # RDF::Statement.new(s, p, o).to_rdf_json.to_json
32
32
  #
33
- # @see http://www.rubydoc.info/github/ruby-rdf/rdf/
33
+ # @see https://ruby-rdf.github.io/rdf/
34
34
  # @see http://n2.talis.com/wiki/RDF_JSON_Specification
35
35
  # @see http://en.wikipedia.org/wiki/JSON
36
36
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-13 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.1'
26
+ version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdf-spec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.1'
33
+ version: '3.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.1'
40
+ version: '3.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdf-isomorphic
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.1'
47
+ version: '3.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.1'
54
+ version: '3.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.9'
61
+ version: '3.12'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.9'
68
+ version: '3.12'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-its
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.20
89
+ version: '0.9'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.9.20
96
+ version: '0.9'
97
97
  description: RDF.rb extension for parsing/serializing RDF/JSON data.
98
98
  email: public-rdf-ruby@w3.org
99
99
  executables: []
@@ -112,11 +112,16 @@ files:
112
112
  - lib/rdf/json/reader.rb
113
113
  - lib/rdf/json/version.rb
114
114
  - lib/rdf/json/writer.rb
115
- homepage: http://ruby-rdf.github.com/rdf-json
115
+ homepage: https://github.com/ruby-rdf/rdf-json
116
116
  licenses:
117
117
  - Unlicense
118
- metadata: {}
119
- post_install_message:
118
+ metadata:
119
+ documentation_uri: https://ruby-rdf.github.io/rdf-json
120
+ bug_tracker_uri: https://github.com/ruby-rdf/rdf-json/issues
121
+ homepage_uri: https://github.com/ruby-rdf/rdf-json
122
+ mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
123
+ source_code_uri: https://github.com/ruby-rdf/rdf-json
124
+ post_install_message:
120
125
  rdoc_options: []
121
126
  require_paths:
122
127
  - lib
@@ -124,15 +129,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
129
  requirements:
125
130
  - - ">="
126
131
  - !ruby/object:Gem::Version
127
- version: '2.4'
132
+ version: '3.0'
128
133
  required_rubygems_version: !ruby/object:Gem::Requirement
129
134
  requirements:
130
135
  - - ">="
131
136
  - !ruby/object:Gem::Version
132
137
  version: '0'
133
138
  requirements: []
134
- rubygems_version: 3.0.6
135
- signing_key:
139
+ rubygems_version: 3.4.19
140
+ signing_key:
136
141
  specification_version: 4
137
142
  summary: RDF/JSON support for RDF.rb.
138
143
  test_files: []