rdf-trig 2.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +2 -2
  3. data/VERSION +1 -1
  4. data/lib/rdf/trig/writer.rb +11 -6
  5. metadata +31 -61
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 98b197e728557afd6d317fe99c7638c7d9545c5b
4
- data.tar.gz: 926d33a2a88b1ee8870889525017163ff3e67469
2
+ SHA256:
3
+ metadata.gz: ab8867ce93572ba2a2cb514f31d951fd017497d81133f89c49b9a14cf8f668f1
4
+ data.tar.gz: 32653094933e0855449564a66e55542e47b939cf9aabb0457aece2d3cf4edfd6
5
5
  SHA512:
6
- metadata.gz: 38e0122e3f6cfeed559ee0d2ba51f92d74526f52f5fb0d0f1203083b6b78aa3237a5c7803a578ad7718f1fe082fe7c9d1d9ecbd5c5344b3f1f04e93a08756d53
7
- data.tar.gz: 5da40dda8c646b2fc868ed92005ee4f3bfebb2274026d46beb7d066bfb284240f243327610f72524148c648a357af4a913f8668ebb2f8d432879ab8282089e55
6
+ metadata.gz: 5a2d84b292bcc6c8f26604b16067017bb6c6c78f1e17076a86e354f472c31c69098925f8c3d03d1cee3e06e7dc7aec73e89a39df7b1eae1770670223f71469a9
7
+ data.tar.gz: 2d197d3b2c39c11bdd31fed2a4fed83eebbba3cffd33404c6b9ffe8bcf04a6a11336b0800b910120b568156eb157d9a053f4a1d9c4c1323512e49120da02da47
data/README.md CHANGED
@@ -59,8 +59,8 @@ There is a new `:stream` option to {RDF::TriG::Writer} which is more efficient f
59
59
  ## Dependencies
60
60
 
61
61
  * [Ruby](http://ruby-lang.org/) (>= 2.2.2)
62
- * [RDF.rb](http://rubygems.org/gems/rdf) (~> 2.0)
63
- * [rdf-turtle](http://rubygems.org/gems/rdf-turtle) (~> 2.0)
62
+ * [RDF.rb](http://rubygems.org/gems/rdf) (~> 3.0)
63
+ * [rdf-turtle](http://rubygems.org/gems/rdf-turtle) (~> 3.0)
64
64
 
65
65
  ## Installation
66
66
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 3.0.0
@@ -164,6 +164,16 @@ module RDF::TriG
164
164
 
165
165
  # Pre-process statements again, but in the specified graph
166
166
  @graph.each {|st| preprocess_statement(st)}
167
+
168
+ # Remove lists that are referenced and have non-list properties,
169
+ # or are present in more than one graph, or have elements
170
+ # that are present in more than one graph;
171
+ # these are legal, but can't be serialized as lists
172
+ @lists.reject! do |node, list|
173
+ ref_count(node) > 0 && non_list_prop_count(node) > 0 ||
174
+ list.subjects.any? {|elt| !resource_in_single_graph?(elt)}
175
+ end
176
+
167
177
  order_subjects.each do |subject|
168
178
  unless is_done?(subject)
169
179
  statement(subject)
@@ -180,15 +190,10 @@ module RDF::TriG
180
190
  protected
181
191
 
182
192
  # Add additional constraint that the resource must be in a single graph
183
- def blankNodePropertyList?(subject)
193
+ def blankNodePropertyList?(subject, position)
184
194
  super && resource_in_single_graph?(subject)
185
195
  end
186
196
 
187
- # Add additional constraint that the resource must be in a single graph
188
- def p_squared?(resource, position)
189
- super && resource_in_single_graph?(resource)
190
- end
191
-
192
197
  def resource_in_single_graph?(resource)
193
198
  graph_names = @repo.query(subject: resource).map(&:graph_name)
194
199
  graph_names += @repo.query(object: resource).map(&:graph_name)
metadata CHANGED
@@ -1,95 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-trig
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-14 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '2.2'
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: '4.0'
19
+ version: '3.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '2.2'
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: '4.0'
26
+ version: '3.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: ebnf
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '1.0'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.0.1
33
+ version: '1.1'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '1.0'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.0.1
40
+ version: '1.1'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rdf-turtle
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
- - - ">="
45
+ - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '2.2'
60
- - - "<"
47
+ version: '3.0'
48
+ - - ">="
61
49
  - !ruby/object:Gem::Version
62
- version: '4.0'
50
+ version: 3.0.2
63
51
  type: :runtime
64
52
  prerelease: false
65
53
  version_requirements: !ruby/object:Gem::Requirement
66
54
  requirements:
67
- - - ">="
55
+ - - "~>"
68
56
  - !ruby/object:Gem::Version
69
- version: '2.2'
70
- - - "<"
57
+ version: '3.0'
58
+ - - ">="
71
59
  - !ruby/object:Gem::Version
72
- version: '4.0'
60
+ version: 3.0.2
73
61
  - !ruby/object:Gem::Dependency
74
62
  name: json-ld
75
63
  requirement: !ruby/object:Gem::Requirement
76
64
  requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: '2.1'
80
- - - "<"
65
+ - - "~>"
81
66
  - !ruby/object:Gem::Version
82
- version: '4.0'
67
+ version: '3.0'
83
68
  type: :development
84
69
  prerelease: false
85
70
  version_requirements: !ruby/object:Gem::Requirement
86
71
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '2.1'
90
- - - "<"
72
+ - - "~>"
91
73
  - !ruby/object:Gem::Version
92
- version: '4.0'
74
+ version: '3.0'
93
75
  - !ruby/object:Gem::Dependency
94
76
  name: rspec
95
77
  requirement: !ruby/object:Gem::Requirement
@@ -122,56 +104,44 @@ dependencies:
122
104
  name: rdf-isomorphic
123
105
  requirement: !ruby/object:Gem::Requirement
124
106
  requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- version: '2.0'
128
- - - "<"
107
+ - - "~>"
129
108
  - !ruby/object:Gem::Version
130
- version: '4.0'
109
+ version: '3.0'
131
110
  type: :development
132
111
  prerelease: false
133
112
  version_requirements: !ruby/object:Gem::Requirement
134
113
  requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- version: '2.0'
138
- - - "<"
114
+ - - "~>"
139
115
  - !ruby/object:Gem::Version
140
- version: '4.0'
116
+ version: '3.0'
141
117
  - !ruby/object:Gem::Dependency
142
118
  name: yard
143
119
  requirement: !ruby/object:Gem::Requirement
144
120
  requirements:
145
121
  - - "~>"
146
122
  - !ruby/object:Gem::Version
147
- version: '0.9'
123
+ version: 0.9.12
148
124
  type: :development
149
125
  prerelease: false
150
126
  version_requirements: !ruby/object:Gem::Requirement
151
127
  requirements:
152
128
  - - "~>"
153
129
  - !ruby/object:Gem::Version
154
- version: '0.9'
130
+ version: 0.9.12
155
131
  - !ruby/object:Gem::Dependency
156
132
  name: rdf-spec
157
133
  requirement: !ruby/object:Gem::Requirement
158
134
  requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- version: '2.2'
162
- - - "<"
135
+ - - "~>"
163
136
  - !ruby/object:Gem::Version
164
- version: '4.0'
137
+ version: '3.0'
165
138
  type: :development
166
139
  prerelease: false
167
140
  version_requirements: !ruby/object:Gem::Requirement
168
141
  requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- version: '2.2'
172
- - - "<"
142
+ - - "~>"
173
143
  - !ruby/object:Gem::Version
174
- version: '4.0'
144
+ version: '3.0'
175
145
  - !ruby/object:Gem::Dependency
176
146
  name: rake
177
147
  requirement: !ruby/object:Gem::Requirement
@@ -223,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
193
  version: '0'
224
194
  requirements: []
225
195
  rubyforge_project:
226
- rubygems_version: 2.6.14
196
+ rubygems_version: 2.7.6
227
197
  signing_key:
228
198
  specification_version: 4
229
199
  summary: TriG reader/writer for Ruby.