rdf 1.1.5 → 1.1.5.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/model/list.rb +4 -6
- metadata +62 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d7d06efcba7805016680ef280059e78dd034c6
|
4
|
+
data.tar.gz: ebf1c316208ccc449debe2ed6aa83f3772b12ac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ca5e5aa05b23b99e01b7d1c9db5a5dadaa70be3d277c40fc70f02fe31ff060dc875fb27b54cf0a1082054c6e95643d9739c0d437dd0094463415751e63b0ccf
|
7
|
+
data.tar.gz: fe19697fe63e1ed72add7ffb39e4307d61aa44a1023ff733fade0b057d4b72f263e8a613929874e23ef950d57389214d85754481cc611be7e5b7f6b17609f945
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.5
|
1
|
+
1.1.5.1
|
data/lib/rdf/model/list.rb
CHANGED
@@ -55,8 +55,7 @@ module RDF
|
|
55
55
|
# Any values which are not terms are coerced to `RDF::Literal`.
|
56
56
|
# @yield [list]
|
57
57
|
# @yieldparam [RDF::List] list
|
58
|
-
# @deprecated Subject should be an {RDF::Node}, not a {RDF::URI}. A
|
59
|
-
# future release will remove support for URI subjects
|
58
|
+
# @deprecated Subject should be an {RDF::Node}, not a {RDF::URI}. A list with an IRI head will not validate, but is commonly used to detect if a list is valid.
|
60
59
|
# @overload initialize(subject = nil, graph = nil, values = nil, &block)
|
61
60
|
# @param [RDF::Node] subject (RDF.nil)
|
62
61
|
# @param [RDF::Graph] graph (RDF::Graph.new)
|
@@ -69,10 +68,6 @@ module RDF
|
|
69
68
|
@graph = graph || RDF::Graph.new
|
70
69
|
is_empty = @graph.query(:subject => subject, :predicate => RDF.first).empty?
|
71
70
|
|
72
|
-
if @subject.uri? && @subject != RDF.nil
|
73
|
-
warn "[DEPRECATION] `List subject as a URI is deprecated. Please use a Node instead."
|
74
|
-
end
|
75
|
-
|
76
71
|
if subject && is_empty
|
77
72
|
# An empty list with explicit subject and value initializers
|
78
73
|
@subject = RDF.nil
|
@@ -112,7 +107,10 @@ module RDF
|
|
112
107
|
# @return [Boolean]
|
113
108
|
def valid?
|
114
109
|
li = subject
|
110
|
+
list_nodes = []
|
115
111
|
while li != RDF.nil do
|
112
|
+
return false if list_nodes.include?(li)
|
113
|
+
list_nodes << li
|
116
114
|
rest = nil
|
117
115
|
firsts = rests = 0
|
118
116
|
@graph.query(:subject => li) do |st|
|
metadata
CHANGED
@@ -1,151 +1,150 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.5
|
4
|
+
version: 1.1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
8
8
|
- Ben Lavender
|
9
9
|
- Gregg Kellogg
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-08-
|
13
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf-spec
|
17
|
-
|
17
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '1.1'
|
22
|
-
- -
|
22
|
+
- - '>='
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: 1.1.5
|
25
|
-
|
26
|
-
prerelease: false
|
27
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirement: !ruby/object:Gem::Requirement
|
28
26
|
requirements:
|
29
|
-
- -
|
27
|
+
- - ~>
|
30
28
|
- !ruby/object:Gem::Version
|
31
29
|
version: '1.1'
|
32
|
-
- -
|
30
|
+
- - '>='
|
33
31
|
- !ruby/object:Gem::Version
|
34
32
|
version: 1.1.5
|
33
|
+
prerelease: false
|
34
|
+
type: :development
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rdf-rdfxml
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.1'
|
37
42
|
requirement: !ruby/object:Gem::Requirement
|
38
43
|
requirements:
|
39
|
-
- -
|
44
|
+
- - ~>
|
40
45
|
- !ruby/object:Gem::Version
|
41
46
|
version: '1.1'
|
42
|
-
type: :development
|
43
47
|
prerelease: false
|
48
|
+
type: :development
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rdf-rdfa
|
44
51
|
version_requirements: !ruby/object:Gem::Requirement
|
45
52
|
requirements:
|
46
|
-
- -
|
53
|
+
- - ~>
|
47
54
|
- !ruby/object:Gem::Version
|
48
55
|
version: '1.1'
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rdf-rdfa
|
51
56
|
requirement: !ruby/object:Gem::Requirement
|
52
57
|
requirements:
|
53
|
-
- -
|
58
|
+
- - ~>
|
54
59
|
- !ruby/object:Gem::Version
|
55
60
|
version: '1.1'
|
56
|
-
type: :development
|
57
61
|
prerelease: false
|
62
|
+
type: :development
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rdf-turtle
|
58
65
|
version_requirements: !ruby/object:Gem::Requirement
|
59
66
|
requirements:
|
60
|
-
- -
|
67
|
+
- - ~>
|
61
68
|
- !ruby/object:Gem::Version
|
62
69
|
version: '1.1'
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: rdf-turtle
|
65
70
|
requirement: !ruby/object:Gem::Requirement
|
66
71
|
requirements:
|
67
|
-
- -
|
72
|
+
- - ~>
|
68
73
|
- !ruby/object:Gem::Version
|
69
74
|
version: '1.1'
|
70
|
-
type: :development
|
71
75
|
prerelease: false
|
76
|
+
type: :development
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: rdf-xsd
|
72
79
|
version_requirements: !ruby/object:Gem::Requirement
|
73
80
|
requirements:
|
74
|
-
- -
|
81
|
+
- - ~>
|
75
82
|
- !ruby/object:Gem::Version
|
76
83
|
version: '1.1'
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: rdf-xsd
|
79
84
|
requirement: !ruby/object:Gem::Requirement
|
80
85
|
requirements:
|
81
|
-
- -
|
86
|
+
- - ~>
|
82
87
|
- !ruby/object:Gem::Version
|
83
88
|
version: '1.1'
|
84
|
-
type: :development
|
85
89
|
prerelease: false
|
86
|
-
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '1.1'
|
90
|
+
type: :development
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
|
-
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ~>
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '3.0'
|
98
|
-
|
99
|
-
prerelease: false
|
100
|
-
version_requirements: !ruby/object:Gem::Requirement
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
101
99
|
requirements:
|
102
|
-
- -
|
100
|
+
- - ~>
|
103
101
|
- !ruby/object:Gem::Version
|
104
102
|
version: '3.0'
|
103
|
+
prerelease: false
|
104
|
+
type: :development
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: rspec-its
|
107
|
-
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '1.0'
|
112
|
-
|
113
|
-
prerelease: false
|
114
|
-
version_requirements: !ruby/object:Gem::Requirement
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
115
113
|
requirements:
|
116
|
-
- -
|
114
|
+
- - ~>
|
117
115
|
- !ruby/object:Gem::Version
|
118
116
|
version: '1.0'
|
117
|
+
prerelease: false
|
118
|
+
type: :development
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: webmock
|
121
|
-
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '1.17'
|
126
|
-
|
127
|
-
prerelease: false
|
128
|
-
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
129
127
|
requirements:
|
130
|
-
- -
|
128
|
+
- - ~>
|
131
129
|
- !ruby/object:Gem::Version
|
132
130
|
version: '1.17'
|
131
|
+
prerelease: false
|
132
|
+
type: :development
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: yard
|
135
|
-
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ~>
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0.8'
|
140
|
-
|
141
|
-
prerelease: false
|
142
|
-
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
143
141
|
requirements:
|
144
|
-
- -
|
142
|
+
- - ~>
|
145
143
|
- !ruby/object:Gem::Version
|
146
144
|
version: '0.8'
|
147
|
-
|
148
|
-
|
145
|
+
prerelease: false
|
146
|
+
type: :development
|
147
|
+
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data.
|
149
148
|
email: public-rdf-ruby@w3.org
|
150
149
|
executables:
|
151
150
|
- rdf
|
@@ -252,24 +251,24 @@ homepage: http://ruby-rdf.github.com/
|
|
252
251
|
licenses:
|
253
252
|
- Public Domain
|
254
253
|
metadata: {}
|
255
|
-
post_install_message:
|
254
|
+
post_install_message:
|
256
255
|
rdoc_options: []
|
257
256
|
require_paths:
|
258
257
|
- lib
|
259
258
|
required_ruby_version: !ruby/object:Gem::Requirement
|
260
259
|
requirements:
|
261
|
-
- -
|
260
|
+
- - '>='
|
262
261
|
- !ruby/object:Gem::Version
|
263
262
|
version: 1.9.2
|
264
263
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
264
|
requirements:
|
266
|
-
- -
|
265
|
+
- - '>='
|
267
266
|
- !ruby/object:Gem::Version
|
268
267
|
version: '0'
|
269
268
|
requirements: []
|
270
269
|
rubyforge_project: rdf
|
271
270
|
rubygems_version: 2.2.2
|
272
|
-
signing_key:
|
271
|
+
signing_key:
|
273
272
|
specification_version: 4
|
274
273
|
summary: A Ruby library for working with Resource Description Framework (RDF) data.
|
275
274
|
test_files: []
|