rdf-tabular 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93426409b4e355f2e379f4312e20c3fc805c30d805e07c52dd5551d2e01c3711
4
- data.tar.gz: 5211db0a8503d488ec65fe28c6344b1d469ce3921471624f612ba16d111b276d
3
+ metadata.gz: dd48e42acc4f95f1757d7ffa81fefcde7ecc148ca49b4191e733a2124e722941
4
+ data.tar.gz: 1884114de540cec4142926f21a43c5bf050acc751e40919520a188a91c0fc55b
5
5
  SHA512:
6
- metadata.gz: 5324b4c9ebd0472ac4c15d2b3e667df16561044f3a0daa8e9607275fdade79bad33c36c91b696bc8fd721a53bfb2b93f042e8db067af6c1a25ef4a65218b36f5
7
- data.tar.gz: 69f38cada3e90501daa1c5835f0c4fb708464460df1eae21a59c83a7be52937eff4abc38a16b26fb44447f5f8b4aed97f64a80c515bf47314d381d64b3a48ffc
6
+ metadata.gz: b70864ced48bf41e39b3377cb9793e5a6666769b53001419d251e34b5759b1bb4bc505260ba5a37d6a9bc4ec54453a7e40638cee722bd465dd418528bdd691e7
7
+ data.tar.gz: 75dcbb58b1558fd654d74e74f4a43ccbff7ec67b72381017e19821546387ca01c05e764489b55aadd3e029d79cdf93f00da2f990f27f638777149c7c78839505
data/README.md CHANGED
@@ -69,40 +69,41 @@ This results in the following Turtle:
69
69
  @prefix csvw: <http://www.w3.org/ns/csvw#> .
70
70
  @prefix dc: <http://purl.org/dc/terms/> .
71
71
  @prefix doap: <http://usefulinc.com/ns/doap#> .
72
+ @prefix earl: <http://www.w3.org/ns/earl#> .
72
73
  @prefix foaf: <http://xmlns.com/foaf/0.1/> .
73
74
  @prefix prov: <http://www.w3.org/ns/prov#> .
74
75
  @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
75
76
  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
76
77
 
77
78
  <https://rubygems.org/gems/rdf-tabular> a doap:Project,
78
- <http://www.w3.org/ns/earl#TestSubject>,
79
- <http://www.w3.org/ns/earl#Software>;
80
- dc:title "RDF::Tabular";
81
- dc:creator <http://greggkellogg.net/foaf#me>;
82
- dc:date "2015-01-05"^^xsd:date;
83
- dc:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
84
- dc:isPartOf <https://rubygems.org/gems/rdf>;
85
- doap:blog <http://greggkellogg.net/>;
86
- doap:bug-database <https://github.com/ruby-rdf/rdf-tabular/issues>;
87
- doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
88
- <http://dbpedia.org/resource/Ruby_(programming_language)>;
89
- doap:created "2015-01-05"^^xsd:date;
90
- doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
91
- doap:developer <http://greggkellogg.net/foaf#me>;
92
- doap:documenter <http://greggkellogg.net/foaf#me>;
93
- doap:download-page <https://rubygems.org/gems/rdf-tabular>;
94
- doap:homepage <http://ruby-rdf.github.com/rdf-tabular>;
95
- doap:implements <http://www.w3.org/TR/tabular-data-model/>,
96
- <http://www.w3.org/TR/tabular-metadata/>,
97
- <http://www.w3.org/TR/csv2rdf/>,
98
- <http://www.w3.org/TR/csv2json/>;
99
- doap:license <https://unlicense.org/1.0/>;
100
- doap:mailing-list <http://lists.w3.org/Archives/Public/public-rdf-ruby/>;
101
- doap:maintainer <http://greggkellogg.net/foaf#me>;
102
- doap:name "RDF::Tabular";
103
- doap:programming-language "Ruby";
104
- doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en;
105
- foaf:maker <http://greggkellogg.net/foaf#me> .
79
+ earl:TestSubject,
80
+ earl:Software;
81
+ dc:title "RDF::Tabular";
82
+ dc:creator <http://greggkellogg.net/foaf#me>;
83
+ dc:date "2015-01-05"^^xsd:date;
84
+ dc:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
85
+ dc:isPartOf <https://rubygems.org/gems/rdf>;
86
+ doap:blog <http://greggkellogg.net/>;
87
+ doap:bug-database <https://github.com/ruby-rdf/rdf-tabular/issues>;
88
+ doap:category <http://dbpedia.org/resource/Resource_Description_Framework>,
89
+ <http://dbpedia.org/resource/Ruby_(programming_language)>;
90
+ doap:created "2015-01-05"^^xsd:date;
91
+ doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en;
92
+ doap:developer <http://greggkellogg.net/foaf#me>;
93
+ doap:documenter <http://greggkellogg.net/foaf#me>;
94
+ doap:download-page <https://rubygems.org/gems/rdf-tabular>;
95
+ doap:homepage <https://ruby-rdf.github.io/rdf-tabular>;
96
+ doap:implements <http://www.w3.org/TR/tabular-data-model/>,
97
+ <http://www.w3.org/TR/tabular-metadata/>,
98
+ <http://www.w3.org/TR/csv2rdf/>,
99
+ <http://www.w3.org/TR/csv2json/>;
100
+ doap:license <https://unlicense.org/1.0/>;
101
+ doap:mailing-list <http://lists.w3.org/Archives/Public/public-rdf-ruby/>;
102
+ doap:maintainer <http://greggkellogg.net/foaf#me>;
103
+ doap:name "RDF::Tabular";
104
+ doap:programming-language "Ruby";
105
+ doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en;
106
+ foaf:maker <http://greggkellogg.net/foaf#me> .
106
107
 
107
108
  [
108
109
  a csvw:TableGroup;
@@ -112,119 +113,104 @@ This results in the following Turtle:
112
113
  a csvw:Row;
113
114
  csvw:describes <https://rubygems.org/gems/rdf-tabular>;
114
115
  csvw:rownum 1;
115
- csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=2>
116
- ], [
116
+ csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=2>
117
+ ], [
117
118
  a csvw:Row;
118
119
  csvw:describes <https://rubygems.org/gems/rdf-tabular>;
119
120
  csvw:rownum 2;
120
- csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=3>
121
- ], [
121
+ csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=3>
122
+ ], [
122
123
  a csvw:Row;
123
124
  csvw:describes <https://rubygems.org/gems/rdf-tabular>;
124
125
  csvw:rownum 3;
125
- csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=4>
126
- ], [
126
+ csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=4>
127
+ ], [
127
128
  a csvw:Row;
128
129
  csvw:describes <https://rubygems.org/gems/rdf-tabular>;
129
130
  csvw:rownum 4;
130
- csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=5>
131
+ csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=5>
131
132
  ];
132
- csvw:url <file://users/gregg/Projects/rdf-tabular/etc/doap.csv>
133
+ csvw:url <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv>
133
134
  ];
134
135
  prov:wasGeneratedBy [
135
136
  a prov:Activity;
136
- prov:endedAtTime "2015-04-11T12:33:26Z"^^xsd:dateTime;
137
+ prov:endedAtTime "2022-04-20T12:45:20.616-07:00"^^xsd:dateTime;
137
138
  prov:qualifiedUsage [
138
139
  a prov:Usage;
139
- prov:entity <file://users/gregg/Projects/rdf-tabular/etc/doap.csv>;
140
+ prov:entity <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv>;
140
141
  prov:hadRole csvw:csvEncodedTabularData
141
- ], [
142
+ ], [
142
143
  a prov:Usage;
143
- prov:entity <file://users/gregg/Projects/rdf-tabular/etc/doap.csv-metadata.json>;
144
+ prov:entity <https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv-metadata.json>;
144
145
  prov:hadRole csvw:tabularMetadata
145
146
  ];
146
- prov:startedAtTime "2015-04-11T12:33:25Z"^^xsd:dateTime;
147
+ prov:startedAtTime "2022-04-20T12:45:20.351-07:00"^^xsd:dateTime;
147
148
  prov:wasAssociatedWith <https://rubygems.org/gems/rdf-tabular>
148
149
  ]
149
- ] .
150
+ ] .
150
151
 
151
152
  The provenance on table-source information can be excluded by using the `:minimal` option to the reader.
152
153
 
153
154
  It can also generate JSON output (not complete JSON-LD, but compatible with it), using the {RDF::Tabular::Reader#to_json} method:
154
155
 
155
156
  {
156
- "table": [
157
- {
158
- "url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv",
159
- "row": [
160
- {
161
- "url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=2",
162
- "rownum": 1,
163
- "describes": [
164
- {
165
- "@id": "https://rubygems.org/gems/rdf-tabular",
166
- "http://usefulinc.com/ns/doap#name": "RDF::Tabular",
167
- "@type": "http://usefulinc.com/ns/doap#Project",
168
- "http://usefulinc.com/ns/doap#homepage": "http://ruby-rdf.github.com/rdf-tabular",
169
- "http://usefulinc.com/ns/doap#license": "https://unlicense.org/1.0/",
170
- "http://usefulinc.com/ns/doap#shortdesc": "Tabular Data RDF Reader and JSON serializer.",
171
- "http://usefulinc.com/ns/doap#description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
172
- "http://usefulinc.com/ns/doap#created": "2015-01-05",
173
- "http://usefulinc.com/ns/doap#programming-language": "Ruby",
174
- "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-data-model/",
175
- "http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Resource_Description_Framework",
176
- "http://usefulinc.com/ns/doap#download-page": "https://rubygems.org/gems/rdf-tabular",
177
- "http://usefulinc.com/ns/doap#mailing-list": "http://lists.w3.org/Archives/Public/public-rdf-ruby/",
178
- "http://usefulinc.com/ns/doap#bug-database": "https://github.com/ruby-rdf/rdf-tabular/issues",
179
- "http://usefulinc.com/ns/doap#blog": "http://greggkellogg.net/",
180
- "http://usefulinc.com/ns/doap#developer": "http://greggkellogg.net/foaf#me",
181
- "http://usefulinc.com/ns/doap#maintainer": "http://greggkellogg.net/foaf#me",
182
- "http://usefulinc.com/ns/doap#documenter": "http://greggkellogg.net/foaf#me",
183
- "foaf:maker": "http://greggkellogg.net/foaf#me",
184
- "dc:title": "RDF::Tabular",
185
- "dc:description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
186
- "dc:date": "2015-01-05",
187
- "dc:creator": "http://greggkellogg.net/foaf#me",
188
- "dc:isPartOf": "https://rubygems.org/gems/rdf"
189
- }
190
- ]
191
- },
192
- {
193
- "url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=3",
194
- "rownum": 2,
195
- "describes": [
196
- {
197
- "@id": "https://rubygems.org/gems/rdf-tabular",
198
- "@type": "http://www.w3.org/ns/earl#TestSubject",
199
- "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-metadata/",
200
- "http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Ruby_(programming_language)"
201
- }
202
- ]
203
- },
204
- {
205
- "url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=4",
206
- "rownum": 3,
207
- "describes": [
208
- {
209
- "@id": "https://rubygems.org/gems/rdf-tabular",
210
- "@type": "http://www.w3.org/ns/earl#Software",
211
- "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2rdf/"
212
- }
213
- ]
214
- },
215
- {
216
- "url": "file://users/gregg/Projects/rdf-tabular/etc/doap.csv#row=5",
217
- "rownum": 4,
218
- "describes": [
219
- {
220
- "@id": "https://rubygems.org/gems/rdf-tabular",
221
- "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2json/"
222
- }
223
- ]
224
- }
225
- ]
226
- }
227
- ]
157
+ "tables": [{
158
+ "url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv",
159
+ "row": [{
160
+ "url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=2",
161
+ "rownum": 1,
162
+ "describes": [{
163
+ "@id": "https://rubygems.org/gems/rdf-tabular",
164
+ "http://usefulinc.com/ns/doap#name": "RDF::Tabular",
165
+ "@type": "http://usefulinc.com/ns/doap#Project",
166
+ "http://usefulinc.com/ns/doap#homepage": "https://ruby-rdf.github.io/rdf-tabular",
167
+ "http://usefulinc.com/ns/doap#license": "https://unlicense.org/1.0/",
168
+ "http://usefulinc.com/ns/doap#shortdesc": "Tabular Data RDF Reader and JSON serializer.",
169
+ "http://usefulinc.com/ns/doap#description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
170
+ "http://usefulinc.com/ns/doap#created": "2015-01-05",
171
+ "http://usefulinc.com/ns/doap#programming-language": "Ruby",
172
+ "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-data-model/",
173
+ "http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Resource_Description_Framework",
174
+ "http://usefulinc.com/ns/doap#download-page": "https://rubygems.org/gems/rdf-tabular",
175
+ "http://usefulinc.com/ns/doap#mailing-list": "http://lists.w3.org/Archives/Public/public-rdf-ruby/",
176
+ "http://usefulinc.com/ns/doap#bug-database": "https://github.com/ruby-rdf/rdf-tabular/issues",
177
+ "http://usefulinc.com/ns/doap#blog": "http://greggkellogg.net/",
178
+ "http://usefulinc.com/ns/doap#developer": "http://greggkellogg.net/foaf#me",
179
+ "http://usefulinc.com/ns/doap#maintainer": "http://greggkellogg.net/foaf#me",
180
+ "http://usefulinc.com/ns/doap#documenter": "http://greggkellogg.net/foaf#me",
181
+ "foaf:maker": "http://greggkellogg.net/foaf#me",
182
+ "dc:title": "RDF::Tabular",
183
+ "dc:description": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
184
+ "dc:date": "2015-01-05",
185
+ "dc:creator": "http://greggkellogg.net/foaf#me",
186
+ "dc:isPartOf": "https://rubygems.org/gems/rdf"
187
+ }]
188
+ }, {
189
+ "url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=3",
190
+ "rownum": 2,
191
+ "describes": [{
192
+ "@id": "https://rubygems.org/gems/rdf-tabular",
193
+ "@type": "http://www.w3.org/ns/earl#TestSubject",
194
+ "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/tabular-metadata/",
195
+ "http://usefulinc.com/ns/doap#category": "http://dbpedia.org/resource/Ruby_(programming_language)"
196
+ }]
197
+ }, {
198
+ "url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=4",
199
+ "rownum": 3,
200
+ "describes": [{
201
+ "@id": "https://rubygems.org/gems/rdf-tabular",
202
+ "@type": "http://www.w3.org/ns/earl#Software",
203
+ "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2rdf/"
204
+ }]
205
+ }, {
206
+ "url": "https://raw.githubusercontent.com/ruby-rdf/rdf-tabular/develop/etc/doap.csv#row=5",
207
+ "rownum": 4,
208
+ "describes": [{
209
+ "@id": "https://rubygems.org/gems/rdf-tabular",
210
+ "http://usefulinc.com/ns/doap#implements": "http://www.w3.org/TR/csv2json/"
211
+ }]
212
+ }]
213
+ }]
228
214
  }
229
215
 
230
216
  ## Tutorials
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.2.1
data/etc/doap.csv CHANGED
@@ -1,5 +1,5 @@
1
1
  name,type,homepage,license,shortdesc,description,created,programming_language,implements,category,download_page,mailing_list,bug_database,blog,developer,maintainer,documenter,maker,dc_title,dc_description,dc_date,dc_creator,isPartOf
2
- RDF::Tabular,http://usefulinc.com/ns/doap#Project,http://ruby-rdf.github.com/rdf-tabular,https://unlicense.org/1.0/,Tabular Data RDF Reader and JSON serializer.,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,Ruby,http://www.w3.org/TR/tabular-data-model/,http://dbpedia.org/resource/Resource_Description_Framework,https://rubygems.org/gems/rdf-tabular,http://lists.w3.org/Archives/Public/public-rdf-ruby/,https://github.com/ruby-rdf/rdf-tabular/issues,http://greggkellogg.net/,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,RDF::Tabular,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,http://greggkellogg.net/foaf#me,https://rubygems.org/gems/rdf
2
+ RDF::Tabular,http://usefulinc.com/ns/doap#Project,https://ruby-rdf.github.io/rdf-tabular,https://unlicense.org/1.0/,Tabular Data RDF Reader and JSON serializer.,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,Ruby,http://www.w3.org/TR/tabular-data-model/,http://dbpedia.org/resource/Resource_Description_Framework,https://rubygems.org/gems/rdf-tabular,http://lists.w3.org/Archives/Public/public-rdf-ruby/,https://github.com/ruby-rdf/rdf-tabular/issues,http://greggkellogg.net/,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,http://greggkellogg.net/foaf#me,RDF::Tabular,RDF::Tabular processes tabular data with metadata creating RDF or JSON output.,1/5/2015,http://greggkellogg.net/foaf#me,https://rubygems.org/gems/rdf
3
3
  ,http://www.w3.org/ns/earl#TestSubject,,,,,,,http://www.w3.org/TR/tabular-metadata/,http://dbpedia.org/resource/Ruby_(programming_language),,,,,,,,,,,,,
4
4
  ,http://www.w3.org/ns/earl#Software,,,,,,,http://www.w3.org/TR/csv2rdf/,,,,,,,,,,,,,,
5
5
  ,,,,,,,,http://www.w3.org/TR/csv2json/,,,,,,,,,,,,,,
data/etc/doap.ttl CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  <> a doap:Project, earl:TestSubject, earl:Software ;
11
11
  doap:name "RDF::Tabular" ;
12
- doap:homepage <https://ruby-rdf.github.com/rdf-tabular> ;
12
+ doap:homepage <https://ruby-rdf.github.io/rdf-tabular> ;
13
13
  doap:license <https://unlicense.org/1.0/> ;
14
14
  doap:shortdesc "Tabular Data RDF Reader and JSON serializer for RDF.rb."@en ;
15
15
  doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output for the RDF.rb library suite."@en ;
data/etc/earl.html CHANGED
@@ -100,8 +100,8 @@
100
100
  <dd property='doap:programming-language'>Ruby</dd>
101
101
  <dt>Home Page</dt>
102
102
  <dd property='doap:homepage'>
103
- <a href='http://ruby-rdf.github.com/rdf-tabular'>
104
- http://ruby-rdf.github.com/rdf-tabular
103
+ <a href='https://ruby-rdf.github.io/rdf-tabular'>
104
+ https://ruby-rdf.github.io/rdf-tabular
105
105
  </a>
106
106
  </dd>
107
107
  <dt>Developer</dt>
data/etc/earl.jsonld CHANGED
@@ -152,7 +152,7 @@
152
152
  }
153
153
  ],
154
154
  "doapDesc": "RDF::Tabular processes tabular data with metadata creating RDF or JSON output.",
155
- "homepage": "http://ruby-rdf.github.com/rdf-tabular",
155
+ "homepage": "https://ruby-rdf.github.io/rdf-tabular",
156
156
  "language": "Ruby"
157
157
  }
158
158
  ],
data/etc/earl.ttl CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  <https://rubygems.org/gems/rdf-tabular> a doap:Project, earl:TestSubject, earl:Software ;
10
10
  doap:name "RDF::Tabular" ;
11
- doap:homepage <http://ruby-rdf.github.com/rdf-tabular> ;
11
+ doap:homepage <https://ruby-rdf.github.io/rdf-tabular> ;
12
12
  doap:license <https://unlicense.org/1.0/> ;
13
13
  doap:shortdesc "Tabular Data RDF Reader and JSON serializer."@en ;
14
14
  doap:description "RDF::Tabular processes tabular data with metadata creating RDF or JSON output."@en ;
@@ -142,7 +142,7 @@ module RDF::Tabular
142
142
  'Accept' => 'application/ld+json, application/json'
143
143
  }
144
144
  )
145
- path = "file:" + path unless path =~ /^\w+:/
145
+ path = "file:#{path}" if RDF::URI(path).relative?
146
146
  RDF::Util::File.open_file(path, **options) do |file|
147
147
  self.new(file, **options.merge(base: path, filenames: path))
148
148
  end
@@ -22,7 +22,7 @@ module RDF::Tabular
22
22
 
23
23
  ##
24
24
  # Writer options
25
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Writer#options-class_method
25
+ # @see https://ruby-rdf.github.io/rdf/RDF/Writer#options-class_method
26
26
  def self.options
27
27
  super + [
28
28
  RDF::CLI::Option.new(
@@ -80,7 +80,8 @@ module RDF::Tabular
80
80
  @options[:base] ||= input.path if input.respond_to?(:path)
81
81
  @options[:base] ||= input.filename if input.respond_to?(:filename)
82
82
  if RDF::URI(@options[:base]).relative? && File.exist?(@options[:base].to_s)
83
- @options[:base] = RDF::URI("file:/#{File.expand_path(@options[:base])}").normalize
83
+ file_uri = "file:" + File.expand_path(@options[:base])
84
+ @options[:base] = RDF::URI(file_uri.to_s).normalize
84
85
  end
85
86
 
86
87
  log_debug("Reader#initialize") {"input: #{input.inspect}, base: #{@options[:base]}"}
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: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcp47
@@ -37,6 +37,9 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '3.2'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 3.2.7
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,6 +47,9 @@ dependencies:
44
47
  - - "~>"
45
48
  - !ruby/object:Gem::Version
46
49
  version: '3.2'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 3.2.7
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rdf-vocab
49
55
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +112,20 @@ dependencies:
106
112
  requirements:
107
113
  - - "~>"
108
114
  - !ruby/object:Gem::Version
109
- version: '1.12'
115
+ version: '1.13'
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 1.13.4
110
119
  type: :development
111
120
  prerelease: false
112
121
  version_requirements: !ruby/object:Gem::Requirement
113
122
  requirements:
114
123
  - - "~>"
115
124
  - !ruby/object:Gem::Version
116
- version: '1.12'
125
+ version: '1.13'
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: 1.13.4
117
129
  - !ruby/object:Gem::Dependency
118
130
  name: rspec
119
131
  requirement: !ruby/object:Gem::Requirement
@@ -323,7 +335,12 @@ files:
323
335
  homepage: https://github.com/ruby-rdf/rdf-tabular
324
336
  licenses:
325
337
  - Unlicense
326
- metadata: {}
338
+ metadata:
339
+ documentation_uri: https://ruby-rdf.github.io/rdf-tabular
340
+ bug_tracker_uri: https://github.com/ruby-rdf/rdf-tabular/issues
341
+ homepage_uri: https://github.com/ruby-rdf/rdf-tabular
342
+ mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
343
+ source_code_uri: https://github.com/ruby-rdf/rdf-tabular
327
344
  post_install_message:
328
345
  rdoc_options: []
329
346
  require_paths: