rdf-tabular 2.2.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +54 -48
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/etc/doap.csv +1 -1
- data/etc/doap.csv-metadata.json +1 -1
- data/etc/doap.ttl +16 -18
- data/etc/earl.html +648 -648
- data/etc/earl.jsonld +691 -691
- data/etc/earl.ttl +846 -846
- data/lib/rdf/tabular/csvw.rb +500 -90
- data/lib/rdf/tabular/format.rb +2 -2
- data/lib/rdf/tabular/literal.rb +1 -1
- data/lib/rdf/tabular/metadata.rb +63 -58
- data/lib/rdf/tabular/reader.rb +30 -21
- data/lib/rdf/tabular/uax35.rb +1 -1
- data/lib/rdf/tabular.rb +3 -3
- data/spec/metadata_spec.rb +85 -8
- data/spec/reader_spec.rb +2 -2
- data/spec/spec_helper.rb +20 -8
- data/spec/suite_helper.rb +2 -2
- data/spec/suite_spec.rb +4 -5
- metadata +99 -149
- data/lib/rdf/tabular/json.rb +0 -0
data/spec/metadata_spec.rb
CHANGED
@@ -838,12 +838,6 @@ describe RDF::Tabular::Metadata do
|
|
838
838
|
":type Schema" => [{}, {type: :Schema}, RDF::Tabular::Schema],
|
839
839
|
":type Column" => [{}, {type: :Column}, RDF::Tabular::Column],
|
840
840
|
":type Dialect" => [{}, {type: :Dialect}, RDF::Tabular::Dialect],
|
841
|
-
"@type TableGroup" => [{}, {"@type" => "TableGroup"}, RDF::Tabular::TableGroup],
|
842
|
-
"@type Table" => [{"@type" => "Table"}, RDF::Tabular::Table],
|
843
|
-
"@type Template" => [{"@type" => "Template"}, RDF::Tabular::Transformation],
|
844
|
-
"@type Schema" => [{"@type" => "Schema"}, RDF::Tabular::Schema],
|
845
|
-
"@type Column" => [{"@type" => "Column"}, RDF::Tabular::Column],
|
846
|
-
"@type Dialect" => [{"@type" => "Dialect"}, RDF::Tabular::Dialect],
|
847
841
|
"tables TableGroup" => [{"tables" => []}, RDF::Tabular::TableGroup],
|
848
842
|
"dialect Table" => [{"dialect" => {}}, RDF::Tabular::Table],
|
849
843
|
"tableSchema Table" => [{"tableSchema" => {}}, RDF::Tabular::Table],
|
@@ -874,7 +868,7 @@ describe RDF::Tabular::Metadata do
|
|
874
868
|
options ||= {}
|
875
869
|
options[:logger] = logger
|
876
870
|
options[:context] ||= 'http://www.w3.org/ns/csvw'
|
877
|
-
expect(described_class.new(input, options)).to be_a(klass)
|
871
|
+
expect(described_class.new(input, **options)).to be_a(klass)
|
878
872
|
expect(logger.to_s).not_to match(/ERROR|WARN/)
|
879
873
|
end
|
880
874
|
end
|
@@ -1088,6 +1082,89 @@ describe RDF::Tabular::Metadata do
|
|
1088
1082
|
end
|
1089
1083
|
end
|
1090
1084
|
end
|
1085
|
+
|
1086
|
+
context "virtual columns" do
|
1087
|
+
subject {
|
1088
|
+
described_class.new(JSON.parse(%({
|
1089
|
+
"@context": "http://www.w3.org/ns/csvw",
|
1090
|
+
"url": "https://example.org/countries.csv",
|
1091
|
+
"aboutUrl": "https://example.org/countries",
|
1092
|
+
"@type": "Table",
|
1093
|
+
"tableSchema": {
|
1094
|
+
"@type": "Schema",
|
1095
|
+
"columns": [{
|
1096
|
+
"name": "countryCode",
|
1097
|
+
"titles": "countryCode",
|
1098
|
+
"propertyUrl": "https://example.org/countries.csv#countryCode"
|
1099
|
+
}, {
|
1100
|
+
"name": "latitude",
|
1101
|
+
"titles": "latitude",
|
1102
|
+
"propertyUrl": "https://example.org/countries.csv#latitude"
|
1103
|
+
}, {
|
1104
|
+
"name": "longitude",
|
1105
|
+
"titles": "longitude",
|
1106
|
+
"propertyUrl": "https://example.org/countries.csv#longitude"
|
1107
|
+
}, {
|
1108
|
+
"name": "name",
|
1109
|
+
"titles": "name",
|
1110
|
+
"propertyUrl": "https://example.org/countries.csv#name"
|
1111
|
+
}, {
|
1112
|
+
"virtual": true,
|
1113
|
+
"propertyUrl": "https://example.org/countries.csv#virt1",
|
1114
|
+
"valueUrl": "https://example.org/countries.csv#virt1"
|
1115
|
+
}, {
|
1116
|
+
"virtual": true,
|
1117
|
+
"propertyUrl": "https://example.org/countries.csv#virt2",
|
1118
|
+
"default": "default",
|
1119
|
+
"datatype": "string"
|
1120
|
+
}]
|
1121
|
+
}
|
1122
|
+
})), base: RDF::URI("http://example.org/base"), logger: logger)
|
1123
|
+
}
|
1124
|
+
let(:input) {RDF::Util::File.open_file("https://example.org/countries.csv")}
|
1125
|
+
let(:rows) {subject.to_enum(:each_row, input).to_a}
|
1126
|
+
|
1127
|
+
it "has expected aboutUrls" do
|
1128
|
+
subject.each_row(input) do |row|
|
1129
|
+
expect(row.values[0].aboutUrl).to eq "https://example.org/countries"
|
1130
|
+
expect(row.values[1].aboutUrl).to eq "https://example.org/countries"
|
1131
|
+
expect(row.values[2].aboutUrl).to eq "https://example.org/countries"
|
1132
|
+
expect(row.values[3].aboutUrl).to eq "https://example.org/countries"
|
1133
|
+
expect(row.values[4].aboutUrl).to eq "https://example.org/countries"
|
1134
|
+
expect(row.values[5].aboutUrl).to eq "https://example.org/countries"
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
it "has expected propertyUrls" do
|
1139
|
+
subject.each_row(input) do |row|
|
1140
|
+
expect(row.values[0].propertyUrl).to eq "https://example.org/countries.csv#countryCode"
|
1141
|
+
expect(row.values[1].propertyUrl).to eq "https://example.org/countries.csv#latitude"
|
1142
|
+
expect(row.values[2].propertyUrl).to eq "https://example.org/countries.csv#longitude"
|
1143
|
+
expect(row.values[3].propertyUrl).to eq "https://example.org/countries.csv#name"
|
1144
|
+
expect(row.values[4].propertyUrl).to eq "https://example.org/countries.csv#virt1"
|
1145
|
+
expect(row.values[5].propertyUrl).to eq "https://example.org/countries.csv#virt2"
|
1146
|
+
end
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
it "has expected valueUrls" do
|
1150
|
+
subject.each_row(input) do |row|
|
1151
|
+
expect(row.values[0].valueUrl).to be_nil
|
1152
|
+
expect(row.values[1].valueUrl).to be_nil
|
1153
|
+
expect(row.values[2].valueUrl).to be_nil
|
1154
|
+
expect(row.values[3].valueUrl).to be_nil
|
1155
|
+
expect(row.values[4].valueUrl).to eq "https://example.org/countries.csv#virt1"
|
1156
|
+
expect(row.values[5].valueUrl).to be_nil
|
1157
|
+
end
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
it "has expected values" do
|
1161
|
+
rows = subject.to_enum(:each_row, input).to_a
|
1162
|
+
expect(rows[0].values.map(&:to_s)).to produce(%w(AD 42.546245 1.601554 Andorra).push("", "default"), logger)
|
1163
|
+
expect(rows[1].values.map(&:to_s)).to produce((%w(AE 23.424076 53.847818).push("United Arab Emirates", "", "default")), logger)
|
1164
|
+
expect(rows[2].values.map(&:to_s)).to produce(%w(AF 33.93911 67.709953 Afghanistan).push("", "default"), logger)
|
1165
|
+
end
|
1166
|
+
end
|
1167
|
+
|
1091
1168
|
end
|
1092
1169
|
|
1093
1170
|
context "datatypes" do
|
@@ -1379,7 +1456,7 @@ describe RDF::Tabular::Metadata do
|
|
1379
1456
|
context "Unsupported datatypes" do
|
1380
1457
|
%w(anyType anySimpleType ENTITIES IDREFS NMTOKENS ENTITY ID IDREF NOTATAION foo).each do |base|
|
1381
1458
|
it "detects #{base} as unsupported" do
|
1382
|
-
|
1459
|
+
RDF::Tabular::Table.new({
|
1383
1460
|
url: "http://example.com/table.csv",
|
1384
1461
|
tableSchema: {
|
1385
1462
|
columns: [{
|
data/spec/reader_spec.rb
CHANGED
@@ -308,7 +308,7 @@ describe RDF::Tabular::Reader do
|
|
308
308
|
ASK WHERE {
|
309
309
|
[ prov:wasGeneratedBy [
|
310
310
|
a prov:Activity;
|
311
|
-
prov:wasAssociatedWith <
|
311
|
+
prov:wasAssociatedWith <https://rubygems.org/gems/rdf-tabular>;
|
312
312
|
prov:startedAtTime ?start;
|
313
313
|
prov:endedAtTime ?end;
|
314
314
|
prov:qualifiedUsage [
|
@@ -331,7 +331,7 @@ describe RDF::Tabular::Reader do
|
|
331
331
|
ASK WHERE {
|
332
332
|
[ prov:wasGeneratedBy [
|
333
333
|
a prov:Activity;
|
334
|
-
prov:wasAssociatedWith <
|
334
|
+
prov:wasAssociatedWith <https://rubygems.org/gems/rdf-tabular>;
|
335
335
|
prov:startedAtTime ?start;
|
336
336
|
prov:endedAtTime ?end;
|
337
337
|
prov:qualifiedUsage [
|
data/spec/spec_helper.rb
CHANGED
@@ -13,14 +13,26 @@ require 'json'
|
|
13
13
|
require 'webmock/rspec'
|
14
14
|
require 'matchers'
|
15
15
|
require 'suite_helper'
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
16
|
+
|
17
|
+
begin
|
18
|
+
require 'simplecov'
|
19
|
+
require 'simplecov-lcov'
|
20
|
+
|
21
|
+
SimpleCov::Formatter::LcovFormatter.config do |config|
|
22
|
+
#Coveralls is coverage by default/lcov. Send info results
|
23
|
+
config.report_with_single_file = true
|
24
|
+
config.single_report_path = 'coverage/lcov.info'
|
25
|
+
end
|
26
|
+
|
27
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
28
|
+
SimpleCov::Formatter::HTMLFormatter,
|
29
|
+
SimpleCov::Formatter::LcovFormatter
|
30
|
+
])
|
31
|
+
SimpleCov.start do
|
32
|
+
add_filter "/spec/"
|
33
|
+
end
|
34
|
+
rescue LoadError => e
|
35
|
+
STDERR.puts "Coverage Skipped: #{e.message}"
|
24
36
|
end
|
25
37
|
|
26
38
|
require 'rdf/tabular'
|
data/spec/suite_helper.rb
CHANGED
@@ -23,7 +23,7 @@ module RDF::Util
|
|
23
23
|
# HTTP Request headers.
|
24
24
|
# @return [IO] File stream
|
25
25
|
# @yield [IO] File stream
|
26
|
-
def self.open_file(filename_or_url, options
|
26
|
+
def self.open_file(filename_or_url, **options, &block)
|
27
27
|
case
|
28
28
|
when filename_or_url.to_s =~ /^file:/
|
29
29
|
path = filename_or_url.to_s[5..-1]
|
@@ -73,7 +73,7 @@ module RDF::Util
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
else
|
76
|
-
original_open_file(filename_or_url, options) do |remote_document|
|
76
|
+
original_open_file(filename_or_url, **options) do |remote_document|
|
77
77
|
# Add Link header, if necessary
|
78
78
|
remote_document.headers[:link] = options[:httpLink] if options[:httpLink]
|
79
79
|
|
data/spec/suite_spec.rb
CHANGED
@@ -25,11 +25,10 @@ describe RDF::Tabular::Reader do
|
|
25
25
|
t.logger.info "source:\n#{t.input}"
|
26
26
|
begin
|
27
27
|
RDF::Tabular::Reader.open(t.action,
|
28
|
-
t.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
)
|
28
|
+
base_uri: t.base,
|
29
|
+
validate: t.validation?,
|
30
|
+
logger: t.logger,
|
31
|
+
**t.reader_options
|
33
32
|
) do |reader|
|
34
33
|
expect(reader).to be_a RDF::Reader
|
35
34
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-tabular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcp47
|
@@ -34,232 +34,184 @@ dependencies:
|
|
34
34
|
name: rdf
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.2'
|
40
|
-
- - "<"
|
37
|
+
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
39
|
+
version: '3.2'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
|
-
- - "
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.2'
|
50
|
-
- - "<"
|
44
|
+
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
46
|
+
version: '3.2'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: rdf-vocab
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '2.2'
|
60
|
-
- - "<"
|
51
|
+
- - "~>"
|
61
52
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
53
|
+
version: '3.2'
|
63
54
|
type: :runtime
|
64
55
|
prerelease: false
|
65
56
|
version_requirements: !ruby/object:Gem::Requirement
|
66
57
|
requirements:
|
67
|
-
- - "
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '2.2'
|
70
|
-
- - "<"
|
58
|
+
- - "~>"
|
71
59
|
- !ruby/object:Gem::Version
|
72
|
-
version: '
|
60
|
+
version: '3.2'
|
73
61
|
- !ruby/object:Gem::Dependency
|
74
62
|
name: rdf-xsd
|
75
63
|
requirement: !ruby/object:Gem::Requirement
|
76
64
|
requirements:
|
77
|
-
- - "
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '2.2'
|
80
|
-
- - "<"
|
65
|
+
- - "~>"
|
81
66
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
67
|
+
version: '3.2'
|
83
68
|
type: :runtime
|
84
69
|
prerelease: false
|
85
70
|
version_requirements: !ruby/object:Gem::Requirement
|
86
71
|
requirements:
|
87
|
-
- - "
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.2'
|
90
|
-
- - "<"
|
72
|
+
- - "~>"
|
91
73
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
74
|
+
version: '3.2'
|
93
75
|
- !ruby/object:Gem::Dependency
|
94
76
|
name: json-ld
|
95
77
|
requirement: !ruby/object:Gem::Requirement
|
96
78
|
requirements:
|
97
|
-
- - "
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '2.1'
|
100
|
-
- - "<"
|
79
|
+
- - "~>"
|
101
80
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
81
|
+
version: '3.2'
|
103
82
|
type: :runtime
|
104
83
|
prerelease: false
|
105
84
|
version_requirements: !ruby/object:Gem::Requirement
|
106
85
|
requirements:
|
107
|
-
- - "
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '2.1'
|
110
|
-
- - "<"
|
86
|
+
- - "~>"
|
111
87
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
88
|
+
version: '3.2'
|
113
89
|
- !ruby/object:Gem::Dependency
|
114
90
|
name: addressable
|
115
91
|
requirement: !ruby/object:Gem::Requirement
|
116
92
|
requirements:
|
117
93
|
- - "~>"
|
118
94
|
- !ruby/object:Gem::Version
|
119
|
-
version: '2.
|
95
|
+
version: '2.8'
|
120
96
|
type: :runtime
|
121
97
|
prerelease: false
|
122
98
|
version_requirements: !ruby/object:Gem::Requirement
|
123
99
|
requirements:
|
124
100
|
- - "~>"
|
125
101
|
- !ruby/object:Gem::Version
|
126
|
-
version: '2.
|
102
|
+
version: '2.8'
|
127
103
|
- !ruby/object:Gem::Dependency
|
128
104
|
name: nokogiri
|
129
105
|
requirement: !ruby/object:Gem::Requirement
|
130
106
|
requirements:
|
131
107
|
- - "~>"
|
132
108
|
- !ruby/object:Gem::Version
|
133
|
-
version: '1.
|
109
|
+
version: '1.12'
|
134
110
|
type: :development
|
135
111
|
prerelease: false
|
136
112
|
version_requirements: !ruby/object:Gem::Requirement
|
137
113
|
requirements:
|
138
114
|
- - "~>"
|
139
115
|
- !ruby/object:Gem::Version
|
140
|
-
version: '1.
|
116
|
+
version: '1.12'
|
141
117
|
- !ruby/object:Gem::Dependency
|
142
118
|
name: rspec
|
143
119
|
requirement: !ruby/object:Gem::Requirement
|
144
120
|
requirements:
|
145
121
|
- - "~>"
|
146
122
|
- !ruby/object:Gem::Version
|
147
|
-
version: '3.
|
123
|
+
version: '3.10'
|
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: '3.
|
130
|
+
version: '3.10'
|
155
131
|
- !ruby/object:Gem::Dependency
|
156
132
|
name: rspec-its
|
157
133
|
requirement: !ruby/object:Gem::Requirement
|
158
134
|
requirements:
|
159
135
|
- - "~>"
|
160
136
|
- !ruby/object:Gem::Version
|
161
|
-
version: '1.
|
137
|
+
version: '1.3'
|
162
138
|
type: :development
|
163
139
|
prerelease: false
|
164
140
|
version_requirements: !ruby/object:Gem::Requirement
|
165
141
|
requirements:
|
166
142
|
- - "~>"
|
167
143
|
- !ruby/object:Gem::Version
|
168
|
-
version: '1.
|
144
|
+
version: '1.3'
|
169
145
|
- !ruby/object:Gem::Dependency
|
170
146
|
name: rdf-isomorphic
|
171
147
|
requirement: !ruby/object:Gem::Requirement
|
172
148
|
requirements:
|
173
|
-
- - "
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
version: '2.2'
|
176
|
-
- - "<"
|
149
|
+
- - "~>"
|
177
150
|
- !ruby/object:Gem::Version
|
178
|
-
version: '
|
151
|
+
version: '3.2'
|
179
152
|
type: :development
|
180
153
|
prerelease: false
|
181
154
|
version_requirements: !ruby/object:Gem::Requirement
|
182
155
|
requirements:
|
183
|
-
- - "
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: '2.2'
|
186
|
-
- - "<"
|
156
|
+
- - "~>"
|
187
157
|
- !ruby/object:Gem::Version
|
188
|
-
version: '
|
158
|
+
version: '3.2'
|
189
159
|
- !ruby/object:Gem::Dependency
|
190
160
|
name: rdf-spec
|
191
161
|
requirement: !ruby/object:Gem::Requirement
|
192
162
|
requirements:
|
193
|
-
- - "
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '2.2'
|
196
|
-
- - "<"
|
163
|
+
- - "~>"
|
197
164
|
- !ruby/object:Gem::Version
|
198
|
-
version: '
|
165
|
+
version: '3.2'
|
199
166
|
type: :development
|
200
167
|
prerelease: false
|
201
168
|
version_requirements: !ruby/object:Gem::Requirement
|
202
169
|
requirements:
|
203
|
-
- - "
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: '2.2'
|
206
|
-
- - "<"
|
170
|
+
- - "~>"
|
207
171
|
- !ruby/object:Gem::Version
|
208
|
-
version: '
|
172
|
+
version: '3.2'
|
209
173
|
- !ruby/object:Gem::Dependency
|
210
174
|
name: rdf-turtle
|
211
175
|
requirement: !ruby/object:Gem::Requirement
|
212
176
|
requirements:
|
213
|
-
- - "
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '2.2'
|
216
|
-
- - "<"
|
177
|
+
- - "~>"
|
217
178
|
- !ruby/object:Gem::Version
|
218
|
-
version: '
|
179
|
+
version: '3.2'
|
219
180
|
type: :development
|
220
181
|
prerelease: false
|
221
182
|
version_requirements: !ruby/object:Gem::Requirement
|
222
183
|
requirements:
|
223
|
-
- - "
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
version: '2.2'
|
226
|
-
- - "<"
|
184
|
+
- - "~>"
|
227
185
|
- !ruby/object:Gem::Version
|
228
|
-
version: '
|
186
|
+
version: '3.2'
|
229
187
|
- !ruby/object:Gem::Dependency
|
230
188
|
name: sparql
|
231
189
|
requirement: !ruby/object:Gem::Requirement
|
232
190
|
requirements:
|
233
|
-
- - "
|
234
|
-
- !ruby/object:Gem::Version
|
235
|
-
version: '2.2'
|
236
|
-
- - "<"
|
191
|
+
- - "~>"
|
237
192
|
- !ruby/object:Gem::Version
|
238
|
-
version: '
|
193
|
+
version: '3.2'
|
239
194
|
type: :development
|
240
195
|
prerelease: false
|
241
196
|
version_requirements: !ruby/object:Gem::Requirement
|
242
197
|
requirements:
|
243
|
-
- - "
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
version: '2.2'
|
246
|
-
- - "<"
|
198
|
+
- - "~>"
|
247
199
|
- !ruby/object:Gem::Version
|
248
|
-
version: '
|
200
|
+
version: '3.2'
|
249
201
|
- !ruby/object:Gem::Dependency
|
250
202
|
name: webmock
|
251
203
|
requirement: !ruby/object:Gem::Requirement
|
252
204
|
requirements:
|
253
205
|
- - "~>"
|
254
206
|
- !ruby/object:Gem::Version
|
255
|
-
version: '3.
|
207
|
+
version: '3.14'
|
256
208
|
type: :development
|
257
209
|
prerelease: false
|
258
210
|
version_requirements: !ruby/object:Gem::Requirement
|
259
211
|
requirements:
|
260
212
|
- - "~>"
|
261
213
|
- !ruby/object:Gem::Version
|
262
|
-
version: '3.
|
214
|
+
version: '3.14'
|
263
215
|
- !ruby/object:Gem::Dependency
|
264
216
|
name: yard
|
265
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,7 +250,6 @@ files:
|
|
298
250
|
- lib/rdf/tabular.rb
|
299
251
|
- lib/rdf/tabular/csvw.rb
|
300
252
|
- lib/rdf/tabular/format.rb
|
301
|
-
- lib/rdf/tabular/json.rb
|
302
253
|
- lib/rdf/tabular/literal.rb
|
303
254
|
- lib/rdf/tabular/metadata.rb
|
304
255
|
- lib/rdf/tabular/reader.rb
|
@@ -369,11 +320,11 @@ files:
|
|
369
320
|
- spec/suite_helper.rb
|
370
321
|
- spec/suite_spec.rb
|
371
322
|
- spec/uax35_spec.rb
|
372
|
-
homepage:
|
323
|
+
homepage: https://github.com/ruby-rdf/rdf-tabular
|
373
324
|
licenses:
|
374
325
|
- Unlicense
|
375
326
|
metadata: {}
|
376
|
-
post_install_message:
|
327
|
+
post_install_message:
|
377
328
|
rdoc_options: []
|
378
329
|
require_paths:
|
379
330
|
- lib
|
@@ -381,81 +332,80 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
381
332
|
requirements:
|
382
333
|
- - ">="
|
383
334
|
- !ruby/object:Gem::Version
|
384
|
-
version: 2.
|
335
|
+
version: '2.6'
|
385
336
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
386
337
|
requirements:
|
387
338
|
- - ">="
|
388
339
|
- !ruby/object:Gem::Version
|
389
340
|
version: '0'
|
390
341
|
requirements: []
|
391
|
-
|
392
|
-
|
393
|
-
signing_key:
|
342
|
+
rubygems_version: 3.3.3
|
343
|
+
signing_key:
|
394
344
|
specification_version: 4
|
395
345
|
summary: Tabular Data RDF Reader and JSON serializer.
|
396
346
|
test_files:
|
397
|
-
- spec/
|
398
|
-
- spec/metadata_spec.rb
|
347
|
+
- spec/format_spec.rb
|
399
348
|
- spec/matchers.rb
|
400
|
-
- spec/
|
401
|
-
- spec/suite_helper.rb
|
349
|
+
- spec/metadata_spec.rb
|
402
350
|
- spec/reader_spec.rb
|
403
|
-
- spec/
|
351
|
+
- spec/spec_helper.rb
|
352
|
+
- spec/suite_helper.rb
|
353
|
+
- spec/suite_spec.rb
|
404
354
|
- spec/uax35_spec.rb
|
405
|
-
- spec/data/
|
406
|
-
- spec/data/countries
|
407
|
-
- spec/data/countries_embed-standard.json
|
408
|
-
- spec/data/tree-ops-standard.json
|
409
|
-
- spec/data/countries.csv
|
410
|
-
- spec/data/countries_embed-minimal.json
|
355
|
+
- spec/data/countries-minimal.json
|
356
|
+
- spec/data/countries-minimal.ttl
|
411
357
|
- spec/data/countries-standard.json
|
412
|
-
- spec/data/
|
358
|
+
- spec/data/countries-standard.ttl
|
359
|
+
- spec/data/countries.csv
|
413
360
|
- spec/data/countries.csv-minimal.json
|
414
|
-
- spec/data/
|
415
|
-
- spec/data/
|
361
|
+
- spec/data/countries.csv-minimal.ttl
|
362
|
+
- spec/data/countries.csv-standard.json
|
363
|
+
- spec/data/countries.csv-standard.ttl
|
364
|
+
- spec/data/countries.html
|
365
|
+
- spec/data/countries.json
|
366
|
+
- spec/data/countries_embed-minimal.json
|
367
|
+
- spec/data/countries_embed-minimal.ttl
|
368
|
+
- spec/data/countries_embed-standard.json
|
416
369
|
- spec/data/countries_embed-standard.ttl
|
417
|
-
- spec/data/
|
370
|
+
- spec/data/countries_embed.html
|
371
|
+
- spec/data/countries_html-minimal.json
|
418
372
|
- spec/data/countries_html-minimal.ttl
|
419
|
-
- spec/data/
|
420
|
-
- spec/data/countries.csv-standard.ttl
|
421
|
-
- spec/data/tree-ops-ext-standard.json
|
373
|
+
- spec/data/countries_html-standard.json
|
422
374
|
- spec/data/countries_html-standard.ttl
|
423
|
-
- spec/data/
|
375
|
+
- spec/data/country-codes-and-names-minimal.json
|
376
|
+
- spec/data/country-codes-and-names-minimal.ttl
|
377
|
+
- spec/data/country-codes-and-names-standard.json
|
378
|
+
- spec/data/country-codes-and-names-standard.ttl
|
379
|
+
- spec/data/country-codes-and-names.csv
|
380
|
+
- spec/data/country_slice.csv
|
381
|
+
- spec/data/junior-roles.csv
|
424
382
|
- spec/data/junior-roles.json
|
425
383
|
- spec/data/roles-minimal.json
|
426
|
-
- spec/data/
|
427
|
-
- spec/data/
|
428
|
-
- spec/data/
|
429
|
-
- spec/data/
|
430
|
-
- spec/data/
|
431
|
-
- spec/data/
|
432
|
-
- spec/data/
|
433
|
-
- spec/data/
|
384
|
+
- spec/data/roles-minimal.ttl
|
385
|
+
- spec/data/roles-standard.json
|
386
|
+
- spec/data/roles-standard.ttl
|
387
|
+
- spec/data/roles.json
|
388
|
+
- spec/data/senior-roles.csv
|
389
|
+
- spec/data/senior-roles.json
|
390
|
+
- spec/data/test232-metadata.json
|
391
|
+
- spec/data/test232.csv
|
434
392
|
- spec/data/tree-ops-atd.json
|
393
|
+
- spec/data/tree-ops-ext-minimal.json
|
435
394
|
- spec/data/tree-ops-ext-minimal.ttl
|
436
|
-
- spec/data/tree-ops.
|
437
|
-
- spec/data/tree-ops-standard.ttl
|
438
|
-
- spec/data/tree-ops-virtual-standard.ttl
|
439
|
-
- spec/data/countries-minimal.ttl
|
440
|
-
- spec/data/tree-ops-virtual-standard.json
|
441
|
-
- spec/data/countries.html
|
395
|
+
- spec/data/tree-ops-ext-standard.json
|
442
396
|
- spec/data/tree-ops-ext-standard.ttl
|
443
|
-
- spec/data/
|
444
|
-
- spec/data/tree-ops.html
|
445
|
-
- spec/data/test232.csv
|
397
|
+
- spec/data/tree-ops-ext.csv
|
446
398
|
- spec/data/tree-ops-ext.json
|
447
|
-
- spec/data/roles-minimal.ttl
|
448
|
-
- spec/data/countries_embed.html
|
449
|
-
- spec/data/country-codes-and-names-standard.json
|
450
|
-
- spec/data/country-codes-and-names-minimal.ttl
|
451
|
-
- spec/data/countries_embed-minimal.ttl
|
452
|
-
- spec/data/roles-standard.json
|
453
|
-
- spec/data/tree-ops-virtual-minimal.json
|
454
399
|
- spec/data/tree-ops-minimal.json
|
400
|
+
- spec/data/tree-ops-minimal.ttl
|
401
|
+
- spec/data/tree-ops-standard.json
|
402
|
+
- spec/data/tree-ops-standard.ttl
|
403
|
+
- spec/data/tree-ops-virtual-minimal.json
|
404
|
+
- spec/data/tree-ops-virtual-minimal.ttl
|
405
|
+
- spec/data/tree-ops-virtual-standard.json
|
406
|
+
- spec/data/tree-ops-virtual-standard.ttl
|
407
|
+
- spec/data/tree-ops-virtual.json
|
408
|
+
- spec/data/tree-ops.csv
|
455
409
|
- spec/data/tree-ops.csv-metadata.json
|
456
|
-
- spec/data/
|
457
|
-
- spec/data/tree-ops
|
458
|
-
- spec/data/country-codes-and-names-standard.ttl
|
459
|
-
- spec/data/test232-metadata.json
|
460
|
-
- spec/data/tree-ops-ext.csv
|
461
|
-
- spec/data/country-codes-and-names.csv
|
410
|
+
- spec/data/tree-ops.html
|
411
|
+
- spec/data/tree-ops.tsv
|
data/lib/rdf/tabular/json.rb
DELETED
File without changes
|