relaton-ietf 1.13.9 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +32 -38
- data/grammars/basicdoc.rng +3 -27
- data/grammars/biblio-standoc.rng +164 -0
- data/grammars/biblio.rng +82 -19
- data/grammars/relaton-ietf-compile.rng +11 -0
- data/grammars/relaton-ietf.rng +318 -0
- data/lib/relaton_ietf/bibxml_parser.rb +3 -0
- data/lib/relaton_ietf/ietf_bibliographic_item.rb +9 -0
- data/lib/relaton_ietf/rfc_entry.rb +1 -1
- data/lib/relaton_ietf/version.rb +1 -1
- data/lib/relaton_ietf.rb +0 -3
- data/relaton_ietf.gemspec +1 -1
- metadata +7 -7
- data/grammars/ietf.rng +0 -925
- data/grammars/isodoc.rng +0 -2807
- data/grammars/reqt.rng +0 -223
@@ -0,0 +1,318 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
3
|
+
<include href="biblio-standoc.rng">
|
4
|
+
<define name="DocumentType">
|
5
|
+
<choice>
|
6
|
+
<value>rfc</value>
|
7
|
+
<value>internet-draft</value>
|
8
|
+
</choice>
|
9
|
+
</define>
|
10
|
+
<define name="BibDataExtensionType">
|
11
|
+
<optional>
|
12
|
+
<attribute name="schema-version"/>
|
13
|
+
</optional>
|
14
|
+
<optional>
|
15
|
+
<ref name="doctype"/>
|
16
|
+
</optional>
|
17
|
+
<optional>
|
18
|
+
<ref name="docsubtype"/>
|
19
|
+
</optional>
|
20
|
+
<zeroOrMore>
|
21
|
+
<ref name="editorialgroup"/>
|
22
|
+
</zeroOrMore>
|
23
|
+
<zeroOrMore>
|
24
|
+
<ref name="ics"/>
|
25
|
+
</zeroOrMore>
|
26
|
+
<zeroOrMore>
|
27
|
+
<ref name="area"/>
|
28
|
+
</zeroOrMore>
|
29
|
+
<optional>
|
30
|
+
<ref name="ipr"/>
|
31
|
+
</optional>
|
32
|
+
<optional>
|
33
|
+
<ref name="consensus"/>
|
34
|
+
</optional>
|
35
|
+
<optional>
|
36
|
+
<ref name="index-include"/>
|
37
|
+
</optional>
|
38
|
+
<optional>
|
39
|
+
<ref name="ipr-extract"/>
|
40
|
+
</optional>
|
41
|
+
<optional>
|
42
|
+
<ref name="sort-refs"/>
|
43
|
+
</optional>
|
44
|
+
<optional>
|
45
|
+
<ref name="sym-refs"/>
|
46
|
+
</optional>
|
47
|
+
<optional>
|
48
|
+
<ref name="toc-include"/>
|
49
|
+
</optional>
|
50
|
+
<optional>
|
51
|
+
<ref name="toc-depth"/>
|
52
|
+
</optional>
|
53
|
+
<optional>
|
54
|
+
<ref name="show-on-front-page"/>
|
55
|
+
</optional>
|
56
|
+
<optional>
|
57
|
+
<ref name="processing-instructions"/>
|
58
|
+
</optional>
|
59
|
+
</define>
|
60
|
+
<define name="editorialgroup">
|
61
|
+
<element name="editorialgroup">
|
62
|
+
<zeroOrMore>
|
63
|
+
<ref name="committee"/>
|
64
|
+
</zeroOrMore>
|
65
|
+
</element>
|
66
|
+
</define>
|
67
|
+
</include>
|
68
|
+
<define name="committee">
|
69
|
+
<element name="committee">
|
70
|
+
<ref name="IsoWorkgroup"/>
|
71
|
+
</element>
|
72
|
+
</define>
|
73
|
+
<define name="area">
|
74
|
+
<element name="area">
|
75
|
+
<choice>
|
76
|
+
<value>art</value>
|
77
|
+
<value>gen</value>
|
78
|
+
<value>int</value>
|
79
|
+
<value>ops</value>
|
80
|
+
<value>rtg</value>
|
81
|
+
<value>sec</value>
|
82
|
+
<value>tsv</value>
|
83
|
+
<value>Applications and Real-Time</value>
|
84
|
+
<value>General</value>
|
85
|
+
<value>Internet</value>
|
86
|
+
<value>Operations and Management</value>
|
87
|
+
<value>Routing</value>
|
88
|
+
<value>Security</value>
|
89
|
+
<value>Transport</value>
|
90
|
+
</choice>
|
91
|
+
</element>
|
92
|
+
</define>
|
93
|
+
<define name="ipr">
|
94
|
+
<element name="ipr">
|
95
|
+
<text/>
|
96
|
+
</element>
|
97
|
+
</define>
|
98
|
+
<define name="consensus">
|
99
|
+
<element name="consensus">
|
100
|
+
<text/>
|
101
|
+
</element>
|
102
|
+
</define>
|
103
|
+
<define name="index-include">
|
104
|
+
<element name="indexInclude">
|
105
|
+
<text/>
|
106
|
+
</element>
|
107
|
+
</define>
|
108
|
+
<define name="ipr-extract">
|
109
|
+
<element name="iprExtract">
|
110
|
+
<text/>
|
111
|
+
</element>
|
112
|
+
</define>
|
113
|
+
<define name="sort-refs">
|
114
|
+
<element name="sortRefs">
|
115
|
+
<text/>
|
116
|
+
</element>
|
117
|
+
</define>
|
118
|
+
<define name="sym-refs">
|
119
|
+
<element name="symRefs">
|
120
|
+
<text/>
|
121
|
+
</element>
|
122
|
+
</define>
|
123
|
+
<define name="toc-include">
|
124
|
+
<element name="tocInclude">
|
125
|
+
<text/>
|
126
|
+
</element>
|
127
|
+
</define>
|
128
|
+
<define name="toc-depth">
|
129
|
+
<element name="tocDepth">
|
130
|
+
<text/>
|
131
|
+
</element>
|
132
|
+
</define>
|
133
|
+
<define name="show-on-front-page">
|
134
|
+
<element name="showOnFrontPage">
|
135
|
+
<text/>
|
136
|
+
</element>
|
137
|
+
</define>
|
138
|
+
<!-- not relevant to relaton -->
|
139
|
+
<define name="processing-instructions">
|
140
|
+
<element name="pi">
|
141
|
+
<optional>
|
142
|
+
<element name="artworkdelimiter">
|
143
|
+
<text/>
|
144
|
+
</element>
|
145
|
+
</optional>
|
146
|
+
<optional>
|
147
|
+
<element name="artworklines">
|
148
|
+
<text/>
|
149
|
+
</element>
|
150
|
+
</optional>
|
151
|
+
<optional>
|
152
|
+
<element name="authorship">
|
153
|
+
<text/>
|
154
|
+
</element>
|
155
|
+
</optional>
|
156
|
+
<optional>
|
157
|
+
<element name="autobreaks">
|
158
|
+
<text/>
|
159
|
+
</element>
|
160
|
+
</optional>
|
161
|
+
<optional>
|
162
|
+
<element name="background">
|
163
|
+
<text/>
|
164
|
+
</element>
|
165
|
+
</optional>
|
166
|
+
<optional>
|
167
|
+
<element name="colonspace">
|
168
|
+
<text/>
|
169
|
+
</element>
|
170
|
+
</optional>
|
171
|
+
<optional>
|
172
|
+
<element name="comments">
|
173
|
+
<text/>
|
174
|
+
</element>
|
175
|
+
</optional>
|
176
|
+
<optional>
|
177
|
+
<element name="docmapping">
|
178
|
+
<text/>
|
179
|
+
</element>
|
180
|
+
</optional>
|
181
|
+
<optional>
|
182
|
+
<element name="editing">
|
183
|
+
<text/>
|
184
|
+
</element>
|
185
|
+
</optional>
|
186
|
+
<optional>
|
187
|
+
<element name="emoticonic">
|
188
|
+
<text/>
|
189
|
+
</element>
|
190
|
+
</optional>
|
191
|
+
<optional>
|
192
|
+
<element name="footer">
|
193
|
+
<text/>
|
194
|
+
</element>
|
195
|
+
</optional>
|
196
|
+
<optional>
|
197
|
+
<element name="header">
|
198
|
+
<text/>
|
199
|
+
</element>
|
200
|
+
</optional>
|
201
|
+
<optional>
|
202
|
+
<element name="inline">
|
203
|
+
<text/>
|
204
|
+
</element>
|
205
|
+
</optional>
|
206
|
+
<optional>
|
207
|
+
<element name="iprnotified">
|
208
|
+
<text/>
|
209
|
+
</element>
|
210
|
+
</optional>
|
211
|
+
<optional>
|
212
|
+
<element name="linkmailto">
|
213
|
+
<text/>
|
214
|
+
</element>
|
215
|
+
</optional>
|
216
|
+
<optional>
|
217
|
+
<element name="linefile">
|
218
|
+
<text/>
|
219
|
+
</element>
|
220
|
+
</optional>
|
221
|
+
<optional>
|
222
|
+
<element name="notedraftinprogress">
|
223
|
+
<text/>
|
224
|
+
</element>
|
225
|
+
</optional>
|
226
|
+
<optional>
|
227
|
+
<element name="private">
|
228
|
+
<text/>
|
229
|
+
</element>
|
230
|
+
</optional>
|
231
|
+
<optional>
|
232
|
+
<element name="refparent">
|
233
|
+
<text/>
|
234
|
+
</element>
|
235
|
+
</optional>
|
236
|
+
<optional>
|
237
|
+
<element name="rfcedstyle">
|
238
|
+
<text/>
|
239
|
+
</element>
|
240
|
+
</optional>
|
241
|
+
<optional>
|
242
|
+
<element name="slides">
|
243
|
+
<text/>
|
244
|
+
</element>
|
245
|
+
</optional>
|
246
|
+
<optional>
|
247
|
+
<element name="text-list-symbols">
|
248
|
+
<text/>
|
249
|
+
</element>
|
250
|
+
</optional>
|
251
|
+
<optional>
|
252
|
+
<element name="tocappendix">
|
253
|
+
<text/>
|
254
|
+
</element>
|
255
|
+
</optional>
|
256
|
+
<optional>
|
257
|
+
<element name="tocindent">
|
258
|
+
<text/>
|
259
|
+
</element>
|
260
|
+
</optional>
|
261
|
+
<optional>
|
262
|
+
<element name="tocnarrow">
|
263
|
+
<text/>
|
264
|
+
</element>
|
265
|
+
</optional>
|
266
|
+
<optional>
|
267
|
+
<element name="tocompact">
|
268
|
+
<text/>
|
269
|
+
</element>
|
270
|
+
</optional>
|
271
|
+
<optional>
|
272
|
+
<element name="topblock">
|
273
|
+
<text/>
|
274
|
+
</element>
|
275
|
+
</optional>
|
276
|
+
<optional>
|
277
|
+
<element name="useobject">
|
278
|
+
<text/>
|
279
|
+
</element>
|
280
|
+
</optional>
|
281
|
+
<optional>
|
282
|
+
<element name="strict">
|
283
|
+
<text/>
|
284
|
+
</element>
|
285
|
+
</optional>
|
286
|
+
<optional>
|
287
|
+
<element name="compact">
|
288
|
+
<text/>
|
289
|
+
</element>
|
290
|
+
</optional>
|
291
|
+
<optional>
|
292
|
+
<element name="subcompact">
|
293
|
+
<text/>
|
294
|
+
</element>
|
295
|
+
</optional>
|
296
|
+
<optional>
|
297
|
+
<element name="tocinclude">
|
298
|
+
<text/>
|
299
|
+
</element>
|
300
|
+
</optional>
|
301
|
+
<optional>
|
302
|
+
<element name="tocdepth">
|
303
|
+
<text/>
|
304
|
+
</element>
|
305
|
+
</optional>
|
306
|
+
<optional>
|
307
|
+
<element name="symrefs">
|
308
|
+
<text/>
|
309
|
+
</element>
|
310
|
+
</optional>
|
311
|
+
<optional>
|
312
|
+
<element name="sortrefs">
|
313
|
+
<text/>
|
314
|
+
</element>
|
315
|
+
</optional>
|
316
|
+
</element>
|
317
|
+
</define>
|
318
|
+
</grammar>
|
@@ -17,6 +17,15 @@ module RelatonIetf
|
|
17
17
|
super
|
18
18
|
end
|
19
19
|
|
20
|
+
#
|
21
|
+
# Fetch flavor schema version
|
22
|
+
#
|
23
|
+
# @return [String] schema version
|
24
|
+
#
|
25
|
+
def ext_schema
|
26
|
+
@ext_schema ||= schema_versions["relaton-model-ietf"]
|
27
|
+
end
|
28
|
+
|
20
29
|
# @param hash [Hash]
|
21
30
|
# @return [RelatonIetf::IetfBibliographicItem]
|
22
31
|
def self.from_hash(hash)
|
@@ -159,7 +159,7 @@ module RelatonIetf
|
|
159
159
|
end
|
160
160
|
RelatonBib::ContributionInfo.new(entity: entity, role: parse_role(contrib))
|
161
161
|
end
|
162
|
-
contribs << create_org_contrib("RFC Publisher", "publisher")
|
162
|
+
# contribs << create_org_contrib("RFC Publisher", "publisher")
|
163
163
|
contribs << create_org_contrib("RFC Series", "authorizer")
|
164
164
|
end
|
165
165
|
|
data/lib/relaton_ietf/version.rb
CHANGED
data/lib/relaton_ietf.rb
CHANGED
@@ -5,12 +5,9 @@ require "relaton_bib"
|
|
5
5
|
require "relaton_ietf/version"
|
6
6
|
require "relaton_ietf/bibxml_parser"
|
7
7
|
require "relaton_ietf/ietf_bibliography"
|
8
|
-
require "relaton_ietf/ietf_bibliographic_item"
|
9
8
|
require "relaton_ietf/xml_parser"
|
10
9
|
require "relaton_ietf/hash_converter"
|
11
|
-
require "relaton_ietf/committee"
|
12
10
|
require "relaton_ietf/data_fetcher"
|
13
|
-
|
14
11
|
require "relaton/provider_ietf"
|
15
12
|
|
16
13
|
module RelatonIetf
|
data/relaton_ietf.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
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-
|
11
|
+
date: 2022-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
131
|
+
version: 1.14.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 1.
|
138
|
+
version: 1.14.0
|
139
139
|
description: "RelatonIetf: retrieve IETF Standards for bibliographic use \nusing the
|
140
140
|
BibliographicItem model.\n\nFormerly known as rfcbib.\n"
|
141
141
|
email:
|
@@ -158,10 +158,10 @@ files:
|
|
158
158
|
- bin/rspec
|
159
159
|
- bin/setup
|
160
160
|
- grammars/basicdoc.rng
|
161
|
+
- grammars/biblio-standoc.rng
|
161
162
|
- grammars/biblio.rng
|
162
|
-
- grammars/ietf.rng
|
163
|
-
- grammars/
|
164
|
-
- grammars/reqt.rng
|
163
|
+
- grammars/relaton-ietf-compile.rng
|
164
|
+
- grammars/relaton-ietf.rng
|
165
165
|
- lib/relaton/provider_ietf.rb
|
166
166
|
- lib/relaton_ietf.rb
|
167
167
|
- lib/relaton_ietf/bibxml_parser.rb
|