rdf 1.1.16 → 1.1.16.1
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/mixin/countable.rb +1 -5
- data/lib/rdf/mixin/enumerable.rb +1 -11
- data/lib/rdf/mixin/enumerator.rb +36 -0
- data/lib/rdf/mixin/queryable.rb +1 -12
- metadata +42 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7582b8476b1670d5f00d7dd21d1d392e86715b6e
|
4
|
+
data.tar.gz: 68446a4ecffbf58d69310472207c0956422b4172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502c26d876a7c77aa72716d7cbb5e2f4c3808884f454cab4257b0009838d0ff630a148cb98cf3a3ec035f65604764ba66bc45f08d9b9cc5fcc7b34ec2edcb56c
|
7
|
+
data.tar.gz: 6b83df4a04e3c19445def6107ad400ea072e397d12e64f06b54745cf2c824a77ea81477553b4b1d1b2e506e12f5fc3cb8862d1d779aa6a942f44088b186416af
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.16
|
1
|
+
1.1.16.1
|
data/lib/rdf/mixin/countable.rb
CHANGED
@@ -2,6 +2,7 @@ module RDF
|
|
2
2
|
##
|
3
3
|
# @since 0.2.0
|
4
4
|
module Countable
|
5
|
+
autoload :Enumerator, 'rdf/mixin/enumerator'
|
5
6
|
extend RDF::Util::Aliasing::LateBound
|
6
7
|
|
7
8
|
##
|
@@ -37,10 +38,5 @@ module RDF
|
|
37
38
|
end
|
38
39
|
end
|
39
40
|
alias_method :to_enum, :enum_for
|
40
|
-
|
41
|
-
# Extends Enumerator with {Countable}, which is used by {Countable#enum_for}
|
42
|
-
class Enumerator < ::Enumerator
|
43
|
-
include Countable
|
44
|
-
end
|
45
41
|
end # Countable
|
46
42
|
end # RDF
|
data/lib/rdf/mixin/enumerable.rb
CHANGED
@@ -57,6 +57,7 @@ module RDF
|
|
57
57
|
# @see RDF::Graph
|
58
58
|
# @see RDF::Repository
|
59
59
|
module Enumerable
|
60
|
+
autoload :Enumerator, 'rdf/mixin/enumerator'
|
60
61
|
extend RDF::Util::Aliasing::LateBound
|
61
62
|
include ::Enumerable
|
62
63
|
include RDF::Countable # NOTE: must come after ::Enumerable
|
@@ -709,16 +710,5 @@ module RDF
|
|
709
710
|
end
|
710
711
|
end
|
711
712
|
alias_method :to_enum, :enum_for
|
712
|
-
|
713
|
-
# Extends Enumerator with {Queryable} and {Enumerable}, which is used by {Enumerable#each_statement} and {Queryable#enum_for}
|
714
|
-
class Enumerator < ::Enumerator
|
715
|
-
include Queryable
|
716
|
-
include Enumerable
|
717
|
-
|
718
|
-
# Make sure returned arrays are also queryable
|
719
|
-
def to_a
|
720
|
-
return super.to_a.extend(RDF::Queryable, RDF::Enumerable)
|
721
|
-
end
|
722
|
-
end
|
723
713
|
end # Enumerable
|
724
714
|
end # RDF
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module RDF
|
2
|
+
##
|
3
|
+
# Enumerators for different mixins. These are defined in a separate module, so that they are bound when used, allowing other mixins inheriting behavior to be included.
|
4
|
+
module Enumerable
|
5
|
+
# Extends Enumerator with {Queryable} and {Enumerable}, which is used by {Enumerable#each_statement} and {Queryable#enum_for}
|
6
|
+
class Enumerator < ::Enumerator
|
7
|
+
include Queryable
|
8
|
+
include Enumerable
|
9
|
+
|
10
|
+
# Make sure returned arrays are also queryable
|
11
|
+
def to_a
|
12
|
+
return super.to_a.extend(RDF::Queryable, RDF::Enumerable)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Countable
|
18
|
+
# Extends Enumerator with {Countable}, which is used by {Countable#enum_for}
|
19
|
+
class Enumerator < ::Enumerator
|
20
|
+
include Countable
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module Queryable
|
25
|
+
# Extends Enumerator with {Queryable} and {Enumerable}, which is used by {Enumerable#each_statement} and {Queryable#enum_for}
|
26
|
+
class Enumerator < ::Enumerator
|
27
|
+
include Queryable
|
28
|
+
include Enumerable
|
29
|
+
|
30
|
+
# Make sure returned arrays are also queryable
|
31
|
+
def to_a
|
32
|
+
return super.to_a.extend(RDF::Queryable, RDF::Enumerable)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/lib/rdf/mixin/queryable.rb
CHANGED
@@ -9,6 +9,7 @@ module RDF
|
|
9
9
|
# @see RDF::Graph
|
10
10
|
# @see RDF::Repository
|
11
11
|
module Queryable
|
12
|
+
autoload :Enumerator, 'rdf/mixin/enumerator'
|
12
13
|
include ::Enumerable
|
13
14
|
|
14
15
|
##
|
@@ -302,17 +303,5 @@ module RDF
|
|
302
303
|
end
|
303
304
|
end
|
304
305
|
alias_method :to_enum, :enum_for
|
305
|
-
|
306
|
-
|
307
|
-
# Extends Enumerator with {Queryable} and {Enumerable}, which is used by {Enumerable#each_statement} and {Queryable#enum_for}
|
308
|
-
class Enumerator < ::Enumerator
|
309
|
-
include Queryable
|
310
|
-
include Enumerable
|
311
|
-
|
312
|
-
# Make sure returned arrays are also queryable
|
313
|
-
def to_a
|
314
|
-
return super.to_a.extend(RDF::Queryable, RDF::Enumerable)
|
315
|
-
end
|
316
|
-
end
|
317
306
|
end # Queryable
|
318
307
|
end # RDF
|
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.16
|
4
|
+
version: 1.1.16.1
|
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-09-
|
13
|
+
date: 2015-09-26 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,12 +222,14 @@ files:
|
|
222
222
|
- bin/rdf
|
223
223
|
- etc/doap.nt
|
224
224
|
- lib/df.rb
|
225
|
-
- lib/rdf
|
225
|
+
- lib/rdf.rb
|
226
226
|
- lib/rdf/cli.rb
|
227
|
+
- lib/rdf/cli/vocab-loader.rb
|
227
228
|
- lib/rdf/format.rb
|
228
229
|
- lib/rdf/mixin/countable.rb
|
229
230
|
- lib/rdf/mixin/durable.rb
|
230
231
|
- lib/rdf/mixin/enumerable.rb
|
232
|
+
- lib/rdf/mixin/enumerator.rb
|
231
233
|
- lib/rdf/mixin/indexable.rb
|
232
234
|
- lib/rdf/mixin/inferable.rb
|
233
235
|
- lib/rdf/mixin/mutable.rb
|
@@ -237,6 +239,7 @@ files:
|
|
237
239
|
- lib/rdf/mixin/writable.rb
|
238
240
|
- lib/rdf/model/graph.rb
|
239
241
|
- lib/rdf/model/list.rb
|
242
|
+
- lib/rdf/model/literal.rb
|
240
243
|
- lib/rdf/model/literal/boolean.rb
|
241
244
|
- lib/rdf/model/literal/date.rb
|
242
245
|
- lib/rdf/model/literal/datetime.rb
|
@@ -246,7 +249,6 @@ files:
|
|
246
249
|
- lib/rdf/model/literal/numeric.rb
|
247
250
|
- lib/rdf/model/literal/time.rb
|
248
251
|
- lib/rdf/model/literal/token.rb
|
249
|
-
- lib/rdf/model/literal.rb
|
250
252
|
- lib/rdf/model/node.rb
|
251
253
|
- lib/rdf/model/resource.rb
|
252
254
|
- lib/rdf/model/statement.rb
|
@@ -254,24 +256,24 @@ files:
|
|
254
256
|
- lib/rdf/model/uri.rb
|
255
257
|
- lib/rdf/model/value.rb
|
256
258
|
- lib/rdf/nquads.rb
|
259
|
+
- lib/rdf/ntriples.rb
|
257
260
|
- lib/rdf/ntriples/format.rb
|
258
261
|
- lib/rdf/ntriples/reader.rb
|
259
262
|
- lib/rdf/ntriples/writer.rb
|
260
|
-
- lib/rdf/
|
263
|
+
- lib/rdf/query.rb
|
261
264
|
- lib/rdf/query/hash_pattern_normalizer.rb
|
262
265
|
- lib/rdf/query/pattern.rb
|
263
266
|
- lib/rdf/query/solution.rb
|
264
267
|
- lib/rdf/query/solutions.rb
|
265
268
|
- lib/rdf/query/variable.rb
|
266
|
-
- lib/rdf/query.rb
|
267
269
|
- lib/rdf/reader.rb
|
268
270
|
- lib/rdf/repository.rb
|
269
271
|
- lib/rdf/transaction.rb
|
272
|
+
- lib/rdf/util.rb
|
270
273
|
- lib/rdf/util/aliasing.rb
|
271
274
|
- lib/rdf/util/cache.rb
|
272
275
|
- lib/rdf/util/file.rb
|
273
276
|
- lib/rdf/util/uuid.rb
|
274
|
-
- lib/rdf/util.rb
|
275
277
|
- lib/rdf/version.rb
|
276
278
|
- lib/rdf/vocab/cc.rb
|
277
279
|
- lib/rdf/vocab/cert.rb
|
@@ -311,7 +313,6 @@ files:
|
|
311
313
|
- lib/rdf/vocab/xsd.rb
|
312
314
|
- lib/rdf/vocabulary.rb
|
313
315
|
- lib/rdf/writer.rb
|
314
|
-
- lib/rdf.rb
|
315
316
|
homepage: http://ruby-rdf.github.com/
|
316
317
|
licenses:
|
317
318
|
- Public Domain
|
@@ -322,17 +323,17 @@ require_paths:
|
|
322
323
|
- lib
|
323
324
|
required_ruby_version: !ruby/object:Gem::Requirement
|
324
325
|
requirements:
|
325
|
-
- -
|
326
|
+
- - ">="
|
326
327
|
- !ruby/object:Gem::Version
|
327
328
|
version: 1.9.2
|
328
329
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
330
|
requirements:
|
330
|
-
- -
|
331
|
+
- - ">="
|
331
332
|
- !ruby/object:Gem::Version
|
332
333
|
version: '0'
|
333
334
|
requirements: []
|
334
335
|
rubyforge_project: rdf
|
335
|
-
rubygems_version: 2.
|
336
|
+
rubygems_version: 2.4.7
|
336
337
|
signing_key:
|
337
338
|
specification_version: 4
|
338
339
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|