relaton-w3c 1.9.5 → 1.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +2 -2
- data/{withdrawn → data}/reference.W3C.CR-rdf-schema.xml +0 -0
- data/{withdrawn → data}/reference.W3C.DSig-label.xml +0 -0
- data/{withdrawn → data}/reference.W3C.P3P-rdfschema.xml +0 -0
- data/{withdrawn → data}/reference.W3C.P3P.xml +0 -0
- data/{withdrawn → data}/reference.W3C.PICS-labels.xml +0 -0
- data/{withdrawn → data}/reference.W3C.PICS-rules.xml +0 -0
- data/{withdrawn → data}/reference.W3C.PICS-services.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-RUBY.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-XHTML.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-rdf-syntax.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-xml-1998.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-xml-names.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-xml.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-xmlenc-core.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-xmlschema-1.xml +0 -0
- data/{withdrawn → data}/reference.W3C.REC-xmlschema-2.xml +0 -0
- data/{withdrawn → data}/reference.W3C.daml-oil-reference.xml +0 -0
- data/{withdrawn → data}/reference.W3C.soap11.xml +0 -0
- data/{withdrawn → data}/reference.W3C.soap12-part1.xml +0 -0
- data/{withdrawn → data}/reference.W3C.soap12-part2.xml +0 -0
- data/{withdrawn → data}/reference.W3C.xkms.xml +0 -0
- data/{withdrawn → data}/reference.W3C.xml-c14n.xml +0 -0
- data/{withdrawn → data}/reference.W3C.xmldsig-core.xml +0 -0
- data/{withdrawn → data}/reference.W3C.xmlenc-core.xml +0 -0
- data/{withdrawn → data}/reference.W3C.xpath.xml +0 -0
- data/lib/relaton_w3c/data_fethcer.rb +1 -1
- data/lib/relaton_w3c/version.rb +1 -1
- metadata +27 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2d2cf6329e829e43950fbf7ecee8086f7568797fea42040e3a0cefd5e3029a
|
4
|
+
data.tar.gz: 2c28c079df6d7d84deeb38abfb8aff9dc358786caa6b07f0a06bd39e46be0ad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfdf8eea72bfbbe5e02309d7cc86e4b1d392d3d636797faaf9550d1e293bad3dee26c162a1f180f1f6815f87643198e2a3a26fced9e32786f948b10b06ea782c
|
7
|
+
data.tar.gz: fc0d81a938cc8dda2a20779504a37e26b326a4889b31be42de788f773291f75686c67a13b644c092b03b00de7a57fb9032945d9c8e00a5d127689e4d584fe3f7
|
data/README.adoc
CHANGED
@@ -151,13 +151,13 @@ RelatonW3c::W3cBibliographicItem.new **bib_hash
|
|
151
151
|
|
152
152
|
=== Fetch data
|
153
153
|
|
154
|
-
There is a W3C dataset http://www.w3.org/2002/01/tr-automation/tr.rdf which can be converted into RelatonXML/BibXML/BibYAML formats.
|
154
|
+
There is a W3C dataset http://www.w3.org/2002/01/tr-automation/tr.rdf which can be converted into RelatonXML/BibXML/BibYAML formats. The static files from the `path_to_gem/withdrawn` directory are added to output during fetching data.
|
155
155
|
|
156
156
|
The method `RelatonW3c::DataFetcher.fetch(output: "data", format: "yaml")` converts all the documents from the dataset and save them to the `./data` folder in YAML format.
|
157
157
|
Arguments:
|
158
158
|
|
159
159
|
- `output` - folder to save documents (default './data').
|
160
|
-
- `format` - format in which the documents are saved.
|
160
|
+
- `format` - format in which the documents are saved. Possible formats are: `yaml`, `xml`, `bibxml` (default `yaml`).
|
161
161
|
|
162
162
|
[source,ruby]
|
163
163
|
----
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -47,7 +47,7 @@ module RelatonW3c
|
|
47
47
|
#
|
48
48
|
def fetch
|
49
49
|
query.each { |sl| save_doc DataParser.parse(sl, self) }
|
50
|
-
Dir[File.expand_path("../../
|
50
|
+
Dir[File.expand_path("../../data/*", __dir__)].each do |file|
|
51
51
|
xml = File.read file, encoding: "UTF-8"
|
52
52
|
save_doc RelatonBib::BibXMLParser.parse(xml)
|
53
53
|
end
|
data/lib/relaton_w3c/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-w3c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -170,6 +170,31 @@ files:
|
|
170
170
|
- bin/console
|
171
171
|
- bin/rspec
|
172
172
|
- bin/setup
|
173
|
+
- data/reference.W3C.CR-rdf-schema.xml
|
174
|
+
- data/reference.W3C.DSig-label.xml
|
175
|
+
- data/reference.W3C.P3P-rdfschema.xml
|
176
|
+
- data/reference.W3C.P3P.xml
|
177
|
+
- data/reference.W3C.PICS-labels.xml
|
178
|
+
- data/reference.W3C.PICS-rules.xml
|
179
|
+
- data/reference.W3C.PICS-services.xml
|
180
|
+
- data/reference.W3C.REC-RUBY.xml
|
181
|
+
- data/reference.W3C.REC-XHTML.xml
|
182
|
+
- data/reference.W3C.REC-rdf-syntax.xml
|
183
|
+
- data/reference.W3C.REC-xml-1998.xml
|
184
|
+
- data/reference.W3C.REC-xml-names.xml
|
185
|
+
- data/reference.W3C.REC-xml.xml
|
186
|
+
- data/reference.W3C.REC-xmlenc-core.xml
|
187
|
+
- data/reference.W3C.REC-xmlschema-1.xml
|
188
|
+
- data/reference.W3C.REC-xmlschema-2.xml
|
189
|
+
- data/reference.W3C.daml-oil-reference.xml
|
190
|
+
- data/reference.W3C.soap11.xml
|
191
|
+
- data/reference.W3C.soap12-part1.xml
|
192
|
+
- data/reference.W3C.soap12-part2.xml
|
193
|
+
- data/reference.W3C.xkms.xml
|
194
|
+
- data/reference.W3C.xml-c14n.xml
|
195
|
+
- data/reference.W3C.xmldsig-core.xml
|
196
|
+
- data/reference.W3C.xmlenc-core.xml
|
197
|
+
- data/reference.W3C.xpath.xml
|
173
198
|
- grammars/basicdoc.rng
|
174
199
|
- grammars/biblio.rng
|
175
200
|
- grammars/isodoc.rng
|
@@ -188,31 +213,6 @@ files:
|
|
188
213
|
- lib/relaton_w3c/workgroups.yaml
|
189
214
|
- lib/relaton_w3c/xml_parser.rb
|
190
215
|
- relaton_w3c.gemspec
|
191
|
-
- withdrawn/reference.W3C.CR-rdf-schema.xml
|
192
|
-
- withdrawn/reference.W3C.DSig-label.xml
|
193
|
-
- withdrawn/reference.W3C.P3P-rdfschema.xml
|
194
|
-
- withdrawn/reference.W3C.P3P.xml
|
195
|
-
- withdrawn/reference.W3C.PICS-labels.xml
|
196
|
-
- withdrawn/reference.W3C.PICS-rules.xml
|
197
|
-
- withdrawn/reference.W3C.PICS-services.xml
|
198
|
-
- withdrawn/reference.W3C.REC-RUBY.xml
|
199
|
-
- withdrawn/reference.W3C.REC-XHTML.xml
|
200
|
-
- withdrawn/reference.W3C.REC-rdf-syntax.xml
|
201
|
-
- withdrawn/reference.W3C.REC-xml-1998.xml
|
202
|
-
- withdrawn/reference.W3C.REC-xml-names.xml
|
203
|
-
- withdrawn/reference.W3C.REC-xml.xml
|
204
|
-
- withdrawn/reference.W3C.REC-xmlenc-core.xml
|
205
|
-
- withdrawn/reference.W3C.REC-xmlschema-1.xml
|
206
|
-
- withdrawn/reference.W3C.REC-xmlschema-2.xml
|
207
|
-
- withdrawn/reference.W3C.daml-oil-reference.xml
|
208
|
-
- withdrawn/reference.W3C.soap11.xml
|
209
|
-
- withdrawn/reference.W3C.soap12-part1.xml
|
210
|
-
- withdrawn/reference.W3C.soap12-part2.xml
|
211
|
-
- withdrawn/reference.W3C.xkms.xml
|
212
|
-
- withdrawn/reference.W3C.xml-c14n.xml
|
213
|
-
- withdrawn/reference.W3C.xmldsig-core.xml
|
214
|
-
- withdrawn/reference.W3C.xmlenc-core.xml
|
215
|
-
- withdrawn/reference.W3C.xpath.xml
|
216
216
|
homepage: https://github.com/relaton/relaton-wc3
|
217
217
|
licenses:
|
218
218
|
- BSD-2-Clause
|