rdf-json 0.0.1 → 0.0.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/rdf/json.rb CHANGED
@@ -7,15 +7,6 @@ module RDF
7
7
  # @example Requiring the `RDF::JSON` module
8
8
  # require 'rdf/json'
9
9
  #
10
- # @example Serializing RDF values into RDF/JSON strings
11
- # RDF::Node.new('foobar').to_json
12
- # RDF::URI.new("http://rdf.rubyforge.org/").to_json
13
- # RDF::Literal.new("Hello, world!").to_json
14
- # RDF::Literal.new("Hello, world!", :language => 'en-US').to_json
15
- # RDF::Literal.new(3.1415).to_json
16
- # RDF::Literal.new('true', :datatype => RDF::XSD.boolean).to_json
17
- # RDF::Statement.new(s, p, o).to_json
18
- #
19
10
  # @example Parsing RDF statements from an RDF/JSON file
20
11
  # RDF::JSON::Reader.open("spec/data/test.json") do |reader|
21
12
  # reader.each_statement do |statement|
@@ -30,6 +21,15 @@ module RDF
30
21
  # end
31
22
  # end
32
23
  #
24
+ # @example Serializing RDF values into RDF/JSON strings
25
+ # RDF::Node.new('foobar').to_json
26
+ # RDF::URI.new("http://rdf.rubyforge.org/").to_json
27
+ # RDF::Literal.new("Hello, world!").to_json
28
+ # RDF::Literal.new("Hello, world!", :language => 'en-US').to_json
29
+ # RDF::Literal.new(3.1415).to_json
30
+ # RDF::Literal.new('true', :datatype => RDF::XSD.boolean).to_json
31
+ # RDF::Statement.new(s, p, o).to_json
32
+ #
33
33
  # @see http://rdf.rubyforge.org/
34
34
  # @see http://n2.talis.com/wiki/RDF_JSON_Specification
35
35
  # @see http://en.wikipedia.org/wiki/JSON
@@ -129,6 +129,12 @@ module RDF::JSON
129
129
  json
130
130
  end
131
131
  end
132
+
133
+ ##
134
+ # RDF/JSON extensions for `RDF::Repository`.
135
+ module Repository
136
+ include Enumerable
137
+ end
132
138
  end # module Extensions
133
139
 
134
140
  Extensions.constants.each do |klass|
@@ -2,7 +2,7 @@ module RDF module JSON
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
  EXTRA = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
@@ -9,9 +9,19 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-02 00:00:00 +01:00
12
+ date: 2010-02-08 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rdf-spec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.9
24
+ version:
15
25
  - !ruby/object:Gem::Dependency
16
26
  name: rspec
17
27
  type: :development
@@ -20,7 +30,7 @@ dependencies:
20
30
  requirements:
21
31
  - - ">="
22
32
  - !ruby/object:Gem::Version
23
- version: 1.2.9
33
+ version: 1.3.0
24
34
  version:
25
35
  - !ruby/object:Gem::Dependency
26
36
  name: yard
@@ -52,7 +62,7 @@ dependencies:
52
62
  - !ruby/object:Gem::Version
53
63
  version: 1.2.0
54
64
  version:
55
- description: RDF.rb plugin for parsing/serializing RDF/JSON.
65
+ description: RDF.rb plugin for parsing/serializing RDF/JSON data.
56
66
  email: arto.bendiken@gmail.com
57
67
  executables: []
58
68