rdf 1.1.15 → 1.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/model/uri.rb +5 -8
- data/lib/rdf/ntriples/writer.rb +1 -1
- metadata +41 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ce3d3b10cb665cefd9178982c13fb9c3decbe5
|
4
|
+
data.tar.gz: 82650e838b4fb35e2ab30120e9c145f8ec768b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 527b93531091c0c8d6605d562d307f3c420e69929b444d2a7ef1cc2fb76f274a2a7ccda2b66ead35e4e41610e99e040e628c44b865186bb082691a4ffa5838ed
|
7
|
+
data.tar.gz: 879bab9f4f71c5ed926549d8d9418ba41cd07e9321b74e7f71c7eb253b2c5f507c42200ca7e261ee65f24700e9becb69c4d04c98842d07996518e1bf14137a2a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.16
|
data/lib/rdf/model/uri.rb
CHANGED
@@ -162,7 +162,7 @@ module RDF
|
|
162
162
|
##
|
163
163
|
# Resolve paths to their simplest form.
|
164
164
|
#
|
165
|
-
#
|
165
|
+
# @todo This process is correct, but overly iterative. It could be better done with a single regexp which handled most of the segment collapses all at once. Parent segments would still require iteration.
|
166
166
|
#
|
167
167
|
# @param [String] path
|
168
168
|
# @return [String] normalized path
|
@@ -196,7 +196,7 @@ module RDF
|
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
199
|
-
output.
|
199
|
+
output.force_encoding(Encoding::UTF_8)
|
200
200
|
end
|
201
201
|
|
202
202
|
##
|
@@ -379,7 +379,7 @@ module RDF
|
|
379
379
|
@object = {
|
380
380
|
:scheme => normalized_scheme,
|
381
381
|
:authority => normalized_authority,
|
382
|
-
:path => normalized_path,
|
382
|
+
:path => normalized_path.sub(/\/+/, '/'),
|
383
383
|
:query => normalized_query,
|
384
384
|
:fragment => normalized_fragment
|
385
385
|
}
|
@@ -432,10 +432,8 @@ module RDF
|
|
432
432
|
joined_parts[:path] = self.class.normalize_path(uri.path)
|
433
433
|
joined_parts[:query] = uri.query
|
434
434
|
else
|
435
|
-
base_path = self.class.normalize_path(path.to_s)
|
436
|
-
|
437
435
|
# Merge path segments from section 5.2.3
|
438
|
-
base_path.sub
|
436
|
+
base_path = path.to_s.sub(/\/[^\/]*$/, '/')
|
439
437
|
joined_parts[:path] = self.class.normalize_path(base_path + uri.path)
|
440
438
|
joined_parts[:query] = uri.query
|
441
439
|
end
|
@@ -860,7 +858,6 @@ module RDF
|
|
860
858
|
parts = {}
|
861
859
|
if matchdata = value.to_s.match(IRI_PARTS)
|
862
860
|
scheme, authority, path, query, fragment = matchdata.to_a[1..-1]
|
863
|
-
authority = nil if authority.to_s.empty?
|
864
861
|
userinfo, hostport = authority.to_s.split('@', 2)
|
865
862
|
hostport, userinfo = userinfo, nil unless hostport
|
866
863
|
user, password = userinfo.to_s.split(':', 2)
|
@@ -1137,7 +1134,7 @@ module RDF
|
|
1137
1134
|
def normalized_authority
|
1138
1135
|
if authority
|
1139
1136
|
(userinfo ? "#{normalized_userinfo}@" : "") +
|
1140
|
-
normalized_host +
|
1137
|
+
normalized_host.to_s +
|
1141
1138
|
(normalized_port ? ":#{normalized_port}" : "")
|
1142
1139
|
end
|
1143
1140
|
end
|
data/lib/rdf/ntriples/writer.rb
CHANGED
@@ -41,7 +41,7 @@ module RDF::NTriples
|
|
41
41
|
format RDF::NTriples::Format
|
42
42
|
|
43
43
|
# @see http://www.w3.org/TR/rdf-testcases/#ntrip_strings
|
44
|
-
ESCAPE_PLAIN = /\A[\x20-\x21\x23-\
|
44
|
+
ESCAPE_PLAIN = /\A[\x20-\x21\x23-#{Regexp.escape '['}#{Regexp.escape ']'}-\x7E]*\z/m.freeze
|
45
45
|
ESCAPE_ASCII = /\A[\x00-\x7F]*\z/m.freeze
|
46
46
|
|
47
47
|
##
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,200 +10,200 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: link_header
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '0.0'
|
22
|
-
- -
|
22
|
+
- - '>='
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: 0.0.8
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
|
-
- -
|
29
|
+
- - ~>
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
version: '0.0'
|
32
|
-
- -
|
32
|
+
- - '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.0.8
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rdf-spec
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.1'
|
42
|
-
- -
|
42
|
+
- - '>='
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: 1.1.13
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - ~>
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '1.1'
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.1.13
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rdf-rdfxml
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.1'
|
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
68
|
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdf-rdfa
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '1.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rdf-turtle
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.1'
|
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
96
|
version: '1.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rdf-xsd
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.1'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rest-client
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '1.7'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.7'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 3.2.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 3.2.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec-its
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '1.0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '1.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: webmock
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '1.17'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '1.17'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ~>
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0.8'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ~>
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.8'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: faraday
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ~>
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0.9'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ~>
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0.9'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: faraday_middleware
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - ~>
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0.9'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - ~>
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0.9'
|
209
209
|
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework
|
@@ -222,9 +222,8 @@ files:
|
|
222
222
|
- bin/rdf
|
223
223
|
- etc/doap.nt
|
224
224
|
- lib/df.rb
|
225
|
-
- lib/rdf.rb
|
226
|
-
- lib/rdf/cli.rb
|
227
225
|
- lib/rdf/cli/vocab-loader.rb
|
226
|
+
- lib/rdf/cli.rb
|
228
227
|
- lib/rdf/format.rb
|
229
228
|
- lib/rdf/mixin/countable.rb
|
230
229
|
- lib/rdf/mixin/durable.rb
|
@@ -238,7 +237,6 @@ files:
|
|
238
237
|
- lib/rdf/mixin/writable.rb
|
239
238
|
- lib/rdf/model/graph.rb
|
240
239
|
- lib/rdf/model/list.rb
|
241
|
-
- lib/rdf/model/literal.rb
|
242
240
|
- lib/rdf/model/literal/boolean.rb
|
243
241
|
- lib/rdf/model/literal/date.rb
|
244
242
|
- lib/rdf/model/literal/datetime.rb
|
@@ -248,6 +246,7 @@ files:
|
|
248
246
|
- lib/rdf/model/literal/numeric.rb
|
249
247
|
- lib/rdf/model/literal/time.rb
|
250
248
|
- lib/rdf/model/literal/token.rb
|
249
|
+
- lib/rdf/model/literal.rb
|
251
250
|
- lib/rdf/model/node.rb
|
252
251
|
- lib/rdf/model/resource.rb
|
253
252
|
- lib/rdf/model/statement.rb
|
@@ -255,24 +254,24 @@ files:
|
|
255
254
|
- lib/rdf/model/uri.rb
|
256
255
|
- lib/rdf/model/value.rb
|
257
256
|
- lib/rdf/nquads.rb
|
258
|
-
- lib/rdf/ntriples.rb
|
259
257
|
- lib/rdf/ntriples/format.rb
|
260
258
|
- lib/rdf/ntriples/reader.rb
|
261
259
|
- lib/rdf/ntriples/writer.rb
|
262
|
-
- lib/rdf/
|
260
|
+
- lib/rdf/ntriples.rb
|
263
261
|
- lib/rdf/query/hash_pattern_normalizer.rb
|
264
262
|
- lib/rdf/query/pattern.rb
|
265
263
|
- lib/rdf/query/solution.rb
|
266
264
|
- lib/rdf/query/solutions.rb
|
267
265
|
- lib/rdf/query/variable.rb
|
266
|
+
- lib/rdf/query.rb
|
268
267
|
- lib/rdf/reader.rb
|
269
268
|
- lib/rdf/repository.rb
|
270
269
|
- lib/rdf/transaction.rb
|
271
|
-
- lib/rdf/util.rb
|
272
270
|
- lib/rdf/util/aliasing.rb
|
273
271
|
- lib/rdf/util/cache.rb
|
274
272
|
- lib/rdf/util/file.rb
|
275
273
|
- lib/rdf/util/uuid.rb
|
274
|
+
- lib/rdf/util.rb
|
276
275
|
- lib/rdf/version.rb
|
277
276
|
- lib/rdf/vocab/cc.rb
|
278
277
|
- lib/rdf/vocab/cert.rb
|
@@ -312,6 +311,7 @@ files:
|
|
312
311
|
- lib/rdf/vocab/xsd.rb
|
313
312
|
- lib/rdf/vocabulary.rb
|
314
313
|
- lib/rdf/writer.rb
|
314
|
+
- lib/rdf.rb
|
315
315
|
homepage: http://ruby-rdf.github.com/
|
316
316
|
licenses:
|
317
317
|
- Public Domain
|
@@ -322,17 +322,17 @@ require_paths:
|
|
322
322
|
- lib
|
323
323
|
required_ruby_version: !ruby/object:Gem::Requirement
|
324
324
|
requirements:
|
325
|
-
- -
|
325
|
+
- - '>='
|
326
326
|
- !ruby/object:Gem::Version
|
327
327
|
version: 1.9.2
|
328
328
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
329
|
requirements:
|
330
|
-
- -
|
330
|
+
- - '>='
|
331
331
|
- !ruby/object:Gem::Version
|
332
332
|
version: '0'
|
333
333
|
requirements: []
|
334
334
|
rubyforge_project: rdf
|
335
|
-
rubygems_version: 2.
|
335
|
+
rubygems_version: 2.0.14
|
336
336
|
signing_key:
|
337
337
|
specification_version: 4
|
338
338
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|