rdf-trix 1.0.0 → 1.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 147cdb2e02fe4edfcd27d30489737d24a515c5dc
4
+ data.tar.gz: d0afbd93a45315a1e631bfd911591dc90284b7c5
5
+ SHA512:
6
+ metadata.gz: 1d78b6f700492b541bf56a115a6336179e5341be90b719199a1bb402278793038f458b012c6ba16970b6680d1c5caf7af5e9de68bdd5f980632c68863b521a49
7
+ data.tar.gz: 6bf0255b66b73755b8e0f30395afa3b6983edd3c0005f27bb2e43e9bcd1a3d133d6216488c9c7a9840c001ad5cfbd0ccedbe11cecb366743371e8d2be433a8a6
data/README CHANGED
@@ -1,13 +1,16 @@
1
1
  TriX Support for RDF.rb
2
2
  =======================
3
3
 
4
- This is an [RDF.rb][] plugin that adds support for parsing/serializing
4
+ This is an [RDF.rb][] extension that adds support for parsing/serializing
5
5
  [TriX][], an XML-based RDF serialization format developed by HP Labs and
6
6
  Nokia.
7
7
 
8
- * <http://github.com/bendiken/rdf-trix>
8
+ * <http://github.com/ruby-rdf/rdf-trix>
9
9
  * <http://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
10
10
 
11
+ [![Gem Version](https://badge.fury.io/rb/rdf-trix.png)](http://badge.fury.io/rb/rdf-trix)
12
+ [![Build Status](https://travis-ci.org/ruby-rdf/rdf-trix.png?branch=master)](http://travis-ci.org/ruby-rdf/rdf-trix)
13
+
11
14
  Documentation
12
15
  -------------
13
16
 
@@ -19,10 +22,8 @@ Documentation
19
22
  Dependencies
20
23
  ------------
21
24
 
22
- * [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.0)
23
- * [REXML](http://ruby-doc.org/stdlib/libdoc/rexml/rdoc/) (>= 3.1.7),
24
- [LibXML-Ruby](http://rubygems.org/gems/libxml-ruby) (>= 1.1.4), or
25
- [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.4.2)
25
+ * [RDF.rb](http://rubygems.org/gems/rdf) (>= 1.1)
26
+ [Nokogiri](http://rubygems.org/gems/nokogiri) (>= 1.6.0)
26
27
 
27
28
  Installation
28
29
  ------------
@@ -37,12 +38,12 @@ Download
37
38
 
38
39
  To get a local working copy of the development repository, do:
39
40
 
40
- % git clone git://github.com/bendiken/rdf-trix.git
41
+ % git clone git://github.com/ruby-rdf/rdf-trix.git
41
42
 
42
43
  Alternatively, download the latest development version as a tarball as
43
44
  follows:
44
45
 
45
- % wget http://github.com/bendiken/rdf-trix/tarball/master
46
+ % wget http://github.com/ruby-rdf/rdf-trix/tarball/master
46
47
 
47
48
  Mailing List
48
49
  ------------
@@ -59,8 +60,26 @@ Contributors
59
60
 
60
61
  Refer to the accompanying {file:CREDITS} file.
61
62
 
62
- License
63
- -------
63
+ ## Contributing
64
+
65
+ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
66
+
67
+ * Do your best to adhere to the existing coding conventions and idioms.
68
+ * Don't use hard tabs, and don't leave trailing whitespace on any line.
69
+ Before committing, run `git diff --check` to make sure of this.
70
+ * Do document every method you add using [YARD][] annotations. Read the
71
+ [tutorial][YARD-GS] or just look at the existing code for examples.
72
+ * Don't touch the `.gemspec` or `VERSION` files. If you need to change them,
73
+ do so on your private branch only.
74
+ * Do feel free to add yourself to the `CREDITS` file and the
75
+ corresponding list in the the `README`. Alphabetical order applies.
76
+ * Don't touch the `AUTHORS` file. If your contributions are significant
77
+ enough, be assured we will eventually add you in there.
78
+ * Do note that in order for us to merge any non-trivial changes (as a rule
79
+ of thumb, additions larger than about 15 lines of code), we need an
80
+ explicit [public domain dedication][PDD] on record from you.
81
+
82
+ ## License
64
83
 
65
84
  This is free and unencumbered public domain software. For more information,
66
85
  see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0.1
@@ -2,44 +2,49 @@
2
2
  <TriX xmlns="http://www.w3.org/2004/03/trix/trix-1/">
3
3
  <graph>
4
4
  <triple>
5
- <uri>http://ar.to/#self</uri>
5
+ <uri>http://rubygems.org/gems/rdf-trix</uri>
6
6
  <uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri>
7
- <uri>http://xmlns.com/foaf/0.1/Person</uri>
7
+ <uri>http://usefulinc.com/ns/doap#Project</uri>
8
8
  </triple>
9
9
  <triple>
10
- <uri>http://ar.to/#self</uri>
11
- <uri>http://www.w3.org/2000/01/rdf-schema#isDefinedBy</uri>
12
- <uri>http://datagraph.org/bendiken/foaf</uri>
10
+ <uri>http://rubygems.org/gems/rdf-trix</uri>
11
+ <uri>http://usefulinc.com/ns/doap#name</uri>
12
+ <plainLiteral>RDF::TriX</plainLiteral>
13
13
  </triple>
14
14
  <triple>
15
- <uri>http://ar.to/#self</uri>
16
- <uri>http://xmlns.com/foaf/0.1/made</uri>
17
15
  <uri>http://rubygems.org/gems/rdf-trix</uri>
16
+ <uri>http://usefulinc.com/ns/doap#homepage</uri>
17
+ <uri>http://rdf.rubyforge.org/trix/</uri>
18
18
  </triple>
19
19
  <triple>
20
- <uri>http://ar.to/#self</uri>
21
- <uri>http://xmlns.com/foaf/0.1/mbox</uri>
22
- <uri>mailto:arto@bendiken.net</uri>
20
+ <uri>http://rubygems.org/gems/rdf-trix</uri>
21
+ <uri>http://usefulinc.com/ns/doap#license</uri>
22
+ <uri>http://creativecommons.org/licenses/publicdomain/</uri>
23
23
  </triple>
24
24
  <triple>
25
- <uri>http://ar.to/#self</uri>
26
- <uri>http://xmlns.com/foaf/0.1/name</uri>
27
- <plainLiteral>Arto Bendiken</plainLiteral>
25
+ <uri>http://rubygems.org/gems/rdf-trix</uri>
26
+ <uri>http://usefulinc.com/ns/doap#shortdesc</uri>
27
+ <plainLiteral xml:lang="en">TriX support for RDF.rb.</plainLiteral>
28
28
  </triple>
29
29
  <triple>
30
30
  <uri>http://rubygems.org/gems/rdf-trix</uri>
31
- <uri>http://purl.org/dc/terms/creator</uri>
32
- <uri>http://ar.to/#self</uri>
31
+ <uri>http://usefulinc.com/ns/doap#description</uri>
32
+ <plainLiteral xml:lang="en">RDF.rb extension for parsing/serializing TriX data.</plainLiteral>
33
33
  </triple>
34
34
  <triple>
35
35
  <uri>http://rubygems.org/gems/rdf-trix</uri>
36
- <uri>http://usefulinc.com/ns/doap#blog</uri>
37
- <uri>http://ar.to/</uri>
36
+ <uri>http://usefulinc.com/ns/doap#created</uri>
37
+ <plainLiteral>2010-02-02</plainLiteral>
38
38
  </triple>
39
39
  <triple>
40
40
  <uri>http://rubygems.org/gems/rdf-trix</uri>
41
- <uri>http://usefulinc.com/ns/doap#blog</uri>
42
- <uri>http://blog.datagraph.org/</uri>
41
+ <uri>http://usefulinc.com/ns/doap#platform</uri>
42
+ <plainLiteral>Ruby</plainLiteral>
43
+ </triple>
44
+ <triple>
45
+ <uri>http://rubygems.org/gems/rdf-trix</uri>
46
+ <uri>http://usefulinc.com/ns/doap#download-page</uri>
47
+ <uri>http://rubyforge.org/projects/rdf/</uri>
43
48
  </triple>
44
49
  <triple>
45
50
  <uri>http://rubygems.org/gems/rdf-trix</uri>
@@ -48,13 +53,13 @@
48
53
  </triple>
49
54
  <triple>
50
55
  <uri>http://rubygems.org/gems/rdf-trix</uri>
51
- <uri>http://usefulinc.com/ns/doap#created</uri>
52
- <plainLiteral>2010-02-02</plainLiteral>
56
+ <uri>http://usefulinc.com/ns/doap#blog</uri>
57
+ <uri>http://ar.to/</uri>
53
58
  </triple>
54
59
  <triple>
55
60
  <uri>http://rubygems.org/gems/rdf-trix</uri>
56
- <uri>http://usefulinc.com/ns/doap#description</uri>
57
- <plainLiteral xml:lang="en">RDF.rb plugin for parsing/serializing TriX data.</plainLiteral>
61
+ <uri>http://usefulinc.com/ns/doap#blog</uri>
62
+ <uri>http://blog.datagraph.org/</uri>
58
63
  </triple>
59
64
  <triple>
60
65
  <uri>http://rubygems.org/gems/rdf-trix</uri>
@@ -63,53 +68,48 @@
63
68
  </triple>
64
69
  <triple>
65
70
  <uri>http://rubygems.org/gems/rdf-trix</uri>
66
- <uri>http://usefulinc.com/ns/doap#documenter</uri>
71
+ <uri>http://usefulinc.com/ns/doap#maintainer</uri>
67
72
  <uri>http://ar.to/#self</uri>
68
73
  </triple>
69
74
  <triple>
70
75
  <uri>http://rubygems.org/gems/rdf-trix</uri>
71
- <uri>http://usefulinc.com/ns/doap#download-page</uri>
72
- <uri>http://rubyforge.org/projects/rdf/</uri>
73
- </triple>
74
- <triple>
75
- <uri>http://rubygems.org/gems/rdf-trix</uri>
76
- <uri>http://usefulinc.com/ns/doap#homepage</uri>
77
- <uri>http://rdf.rubyforge.org/trix/</uri>
76
+ <uri>http://usefulinc.com/ns/doap#documenter</uri>
77
+ <uri>http://ar.to/#self</uri>
78
78
  </triple>
79
79
  <triple>
80
80
  <uri>http://rubygems.org/gems/rdf-trix</uri>
81
- <uri>http://usefulinc.com/ns/doap#license</uri>
82
- <uri>http://creativecommons.org/licenses/publicdomain/</uri>
81
+ <uri>http://xmlns.com/foaf/0.1/maker</uri>
82
+ <uri>http://ar.to/#self</uri>
83
83
  </triple>
84
84
  <triple>
85
85
  <uri>http://rubygems.org/gems/rdf-trix</uri>
86
- <uri>http://usefulinc.com/ns/doap#maintainer</uri>
86
+ <uri>http://purl.org/dc/terms/creator</uri>
87
87
  <uri>http://ar.to/#self</uri>
88
88
  </triple>
89
89
  <triple>
90
- <uri>http://rubygems.org/gems/rdf-trix</uri>
91
- <uri>http://usefulinc.com/ns/doap#name</uri>
92
- <plainLiteral>RDF::TriX</plainLiteral>
90
+ <uri>http://ar.to/#self</uri>
91
+ <uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri>
92
+ <uri>http://xmlns.com/foaf/0.1/Person</uri>
93
93
  </triple>
94
94
  <triple>
95
- <uri>http://rubygems.org/gems/rdf-trix</uri>
96
- <uri>http://usefulinc.com/ns/doap#platform</uri>
97
- <plainLiteral>Ruby</plainLiteral>
95
+ <uri>http://ar.to/#self</uri>
96
+ <uri>http://xmlns.com/foaf/0.1/name</uri>
97
+ <plainLiteral>Arto Bendiken</plainLiteral>
98
98
  </triple>
99
99
  <triple>
100
- <uri>http://rubygems.org/gems/rdf-trix</uri>
101
- <uri>http://usefulinc.com/ns/doap#shortdesc</uri>
102
- <plainLiteral xml:lang="en">TriX support for RDF.rb.</plainLiteral>
100
+ <uri>http://ar.to/#self</uri>
101
+ <uri>http://xmlns.com/foaf/0.1/mbox</uri>
102
+ <uri>mailto:arto@bendiken.net</uri>
103
103
  </triple>
104
104
  <triple>
105
+ <uri>http://ar.to/#self</uri>
106
+ <uri>http://xmlns.com/foaf/0.1/made</uri>
105
107
  <uri>http://rubygems.org/gems/rdf-trix</uri>
106
- <uri>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</uri>
107
- <uri>http://usefulinc.com/ns/doap#Project</uri>
108
108
  </triple>
109
109
  <triple>
110
- <uri>http://rubygems.org/gems/rdf-trix</uri>
111
- <uri>http://xmlns.com/foaf/0.1/maker</uri>
112
110
  <uri>http://ar.to/#self</uri>
111
+ <uri>http://www.w3.org/2000/01/rdf-schema#isDefinedBy</uri>
112
+ <uri>http://datagraph.org/bendiken/foaf</uri>
113
113
  </triple>
114
114
  </graph>
115
115
  </TriX>
@@ -2,7 +2,7 @@ require 'rdf' # @see http://rubygems.org/gems/rdf
2
2
 
3
3
  module RDF
4
4
  ##
5
- # **`RDF::TriX`** is a TriX plugin for RDF.rb.
5
+ # **`RDF::TriX`** is a TriX extension for RDF.rb.
6
6
  #
7
7
  # @example Requiring the `RDF::TriX` module
8
8
  # require 'rdf/trix'
@@ -1,19 +1,18 @@
1
- module RDF; module TriX
2
- module VERSION
3
- FILE = File.expand_path('../../../../VERSION', __FILE__)
4
- MAJOR, MINOR, TINY, EXTRA = File.read(FILE).chomp.split('.')
5
- STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.').freeze
1
+ module RDF::TriX::VERSION
2
+ VERSION_FILE = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "..", "VERSION")
3
+ MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chop.split(".")
6
4
 
7
- ##
8
- # @return [String]
9
- def self.to_s() STRING end
5
+ STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
10
6
 
11
- ##
12
- # @return [String]
13
- def self.to_str() STRING end
7
+ ##
8
+ # @return [String]
9
+ def self.to_s() STRING end
14
10
 
15
- ##
16
- # @return [Array(Integer, Integer, Integer)]
17
- def self.to_a() [MAJOR, MINOR, TINY] end
18
- end
19
- end; end
11
+ ##
12
+ # @return [String]
13
+ def self.to_str() STRING end
14
+
15
+ ##
16
+ # @return [Array(Integer, Integer, Integer)]
17
+ def self.to_a() STRING.split(".") end
18
+ end
@@ -191,9 +191,9 @@ module RDF::TriX
191
191
  # @return [Element]
192
192
  def format_triple(subject, predicate, object, options = {})
193
193
  create_element(:triple) do |triple|
194
- triple << format_value(subject, options)
195
- triple << format_value(predicate, options)
196
- triple << format_value(object, options)
194
+ triple << format_term(subject, options)
195
+ triple << format_term(predicate, options)
196
+ triple << format_term(object, options)
197
197
  end
198
198
  end
199
199
 
metadata CHANGED
@@ -1,129 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-trix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Arto Bendiken
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-19 00:00:00.000000000 Z
11
+ date: 2015-11-09 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
21
- version: '1.0'
19
+ version: '1.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.99'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '1.0'
29
+ version: '1.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.99'
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: rdf-spec
32
35
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '1.0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
36
  requirements:
43
- - - ! '>='
37
+ - - "~>"
44
38
  - !ruby/object:Gem::Version
45
- version: '1.0'
46
- - !ruby/object:Gem::Dependency
47
- name: rspec
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
39
+ version: '1.1'
40
+ - - "<"
52
41
  - !ruby/object:Gem::Version
53
- version: '2.12'
42
+ version: '1.99'
54
43
  type: :development
55
44
  prerelease: false
56
45
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
46
  requirements:
59
- - - ! '>='
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.1'
50
+ - - "<"
60
51
  - !ruby/object:Gem::Version
61
- version: '2.12'
52
+ version: '1.99'
62
53
  - !ruby/object:Gem::Dependency
63
- name: yard
54
+ name: rspec
64
55
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
56
  requirements:
67
- - - ! '>='
57
+ - - "~>"
68
58
  - !ruby/object:Gem::Version
69
- version: '0.8'
59
+ version: '3.0'
70
60
  type: :development
71
61
  prerelease: false
72
62
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
63
  requirements:
75
- - - ! '>='
64
+ - - "~>"
76
65
  - !ruby/object:Gem::Version
77
- version: '0.8'
66
+ version: '3.0'
78
67
  - !ruby/object:Gem::Dependency
79
- name: rexml
68
+ name: rspec-its
80
69
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
70
  requirements:
83
- - - ! '>='
71
+ - - "~>"
84
72
  - !ruby/object:Gem::Version
85
- version: 3.1.7
73
+ version: '1.0'
86
74
  type: :development
87
75
  prerelease: false
88
76
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
77
  requirements:
91
- - - ! '>='
78
+ - - "~>"
92
79
  - !ruby/object:Gem::Version
93
- version: 3.1.7
80
+ version: '1.0'
94
81
  - !ruby/object:Gem::Dependency
95
- name: libxml-ruby
82
+ name: yard
96
83
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
84
  requirements:
99
- - - ! '>='
85
+ - - "~>"
100
86
  - !ruby/object:Gem::Version
101
- version: 1.1.4
87
+ version: '0.8'
102
88
  type: :development
103
89
  prerelease: false
104
90
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
91
  requirements:
107
- - - ! '>='
92
+ - - "~>"
108
93
  - !ruby/object:Gem::Version
109
- version: 1.1.4
94
+ version: '0.8'
110
95
  - !ruby/object:Gem::Dependency
111
96
  name: nokogiri
112
97
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
98
  requirements:
115
- - - ! '>='
99
+ - - "~>"
116
100
  - !ruby/object:Gem::Version
117
- version: 1.4.2
101
+ version: '1.6'
118
102
  type: :development
119
103
  prerelease: false
120
104
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
105
  requirements:
123
- - - ! '>='
106
+ - - "~>"
124
107
  - !ruby/object:Gem::Version
125
- version: 1.4.2
126
- description: RDF.rb plugin for parsing/serializing TriX data.
108
+ version: '1.6'
109
+ description: RDF.rb extension for parsing/serializing TriX data.
127
110
  email: public-rdf-ruby@w3.org
128
111
  executables: []
129
112
  extensions: []
@@ -135,41 +118,39 @@ files:
135
118
  - UNLICENSE
136
119
  - VERSION
137
120
  - etc/doap.xml
121
+ - lib/rdf/trix.rb
138
122
  - lib/rdf/trix/format.rb
123
+ - lib/rdf/trix/reader.rb
139
124
  - lib/rdf/trix/reader/libxml.rb
140
125
  - lib/rdf/trix/reader/nokogiri.rb
141
126
  - lib/rdf/trix/reader/rexml.rb
142
- - lib/rdf/trix/reader.rb
143
127
  - lib/rdf/trix/version.rb
128
+ - lib/rdf/trix/writer.rb
144
129
  - lib/rdf/trix/writer/nokogiri.rb
145
130
  - lib/rdf/trix/writer/rexml.rb
146
- - lib/rdf/trix/writer.rb
147
- - lib/rdf/trix.rb
148
- homepage: http://ruby-rdf.github.com/rdf-trix/
131
+ homepage: http://ruby-rdf.github.com/rdf-trix
149
132
  licenses:
150
133
  - Public Domain
134
+ metadata: {}
151
135
  post_install_message:
152
136
  rdoc_options: []
153
137
  require_paths:
154
138
  - lib
155
139
  required_ruby_version: !ruby/object:Gem::Requirement
156
- none: false
157
140
  requirements:
158
- - - ! '>='
141
+ - - ">="
159
142
  - !ruby/object:Gem::Version
160
- version: 1.8.1
143
+ version: 1.9.2
161
144
  required_rubygems_version: !ruby/object:Gem::Requirement
162
- none: false
163
145
  requirements:
164
- - - ! '>='
146
+ - - ">="
165
147
  - !ruby/object:Gem::Version
166
148
  version: '0'
167
- requirements:
168
- - REXML (>= 3.1.7), LibXML-Ruby (>= 1.1.4), or Nokogiri (>= 1.4.2)
149
+ requirements: []
169
150
  rubyforge_project: rdf
170
- rubygems_version: 1.8.24
151
+ rubygems_version: 2.4.5.1
171
152
  signing_key:
172
- specification_version: 3
153
+ specification_version: 4
173
154
  summary: TriX support for RDF.rb.
174
155
  test_files: []
175
156
  has_rdoc: false