relaton-iso 1.19.2 → 2.0.0.pre.alpha.1

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/Gemfile +1 -0
  4. data/README.adoc +134 -131
  5. data/bin/console +1 -1
  6. data/grammars/basicdoc.rng +2110 -0
  7. data/grammars/biblio-standoc.rng +287 -0
  8. data/grammars/biblio.rng +2097 -0
  9. data/grammars/relaton-iso-compile.rng +11 -0
  10. data/grammars/relaton-iso.rng +214 -0
  11. data/lib/relaton/iso/bibliography.rb +206 -0
  12. data/lib/relaton/iso/data_fetcher.rb +227 -0
  13. data/lib/relaton/iso/hash_parser_v1.rb +121 -0
  14. data/lib/relaton/iso/hit.rb +62 -0
  15. data/lib/relaton/iso/hit_collection.rb +117 -0
  16. data/lib/relaton/iso/item_data.rb +49 -0
  17. data/lib/relaton/iso/model/bibdata.rb +9 -0
  18. data/lib/relaton/iso/model/bibitem.rb +7 -0
  19. data/lib/relaton/iso/model/contributor.rb +7 -0
  20. data/lib/relaton/iso/model/contributor_info.rb +9 -0
  21. data/lib/relaton/iso/model/docidentifier.rb +128 -0
  22. data/lib/relaton/iso/model/doctype.rb +13 -0
  23. data/lib/relaton/iso/model/ext.rb +47 -0
  24. data/lib/relaton/iso/model/iso_project_group.rb +21 -0
  25. data/lib/relaton/iso/model/item.rb +17 -0
  26. data/lib/relaton/iso/model/item_base.rb +19 -0
  27. data/lib/relaton/iso/model/organization.rb +9 -0
  28. data/lib/relaton/iso/model/project_number.rb +22 -0
  29. data/lib/relaton/iso/model/relation.rb +9 -0
  30. data/lib/relaton/iso/model/stagename.rb +14 -0
  31. data/lib/relaton/iso/model/structured_identifier.rb +31 -0
  32. data/lib/relaton/iso/processor.rb +78 -0
  33. data/lib/relaton/iso/queue.rb +63 -0
  34. data/lib/relaton/iso/scraper.rb +591 -0
  35. data/lib/relaton/iso/util.rb +8 -0
  36. data/lib/relaton/iso/version.rb +7 -0
  37. data/lib/relaton/iso.rb +17 -0
  38. data/relaton_iso.gemspec +9 -7
  39. metadata +79 -49
  40. data/bin/bundle +0 -109
  41. data/bin/byebug +0 -27
  42. data/bin/coderay +0 -27
  43. data/bin/gdb_wrapper +0 -29
  44. data/bin/htmldiff +0 -27
  45. data/bin/httpclient +0 -29
  46. data/bin/ldiff +0 -27
  47. data/bin/nokogiri +0 -27
  48. data/bin/pry +0 -27
  49. data/bin/pubid-nist +0 -27
  50. data/bin/racc +0 -27
  51. data/bin/rackup +0 -29
  52. data/bin/rake +0 -27
  53. data/bin/rubocop +0 -27
  54. data/bin/ruby-parse +0 -27
  55. data/bin/ruby-rewrite +0 -27
  56. data/bin/safe_yaml +0 -29
  57. data/bin/thor +0 -27
  58. data/lib/relaton_iso/data_fetcher.rb +0 -246
  59. data/lib/relaton_iso/document_identifier.rb +0 -46
  60. data/lib/relaton_iso/hash_converter.rb +0 -15
  61. data/lib/relaton_iso/hit.rb +0 -59
  62. data/lib/relaton_iso/hit_collection.rb +0 -100
  63. data/lib/relaton_iso/iso_bibliography.rb +0 -202
  64. data/lib/relaton_iso/processor.rb +0 -67
  65. data/lib/relaton_iso/queue.rb +0 -61
  66. data/lib/relaton_iso/scrapper.rb +0 -553
  67. data/lib/relaton_iso/util.rb +0 -6
  68. data/lib/relaton_iso/version.rb +0 -5
  69. data/lib/relaton_iso.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae7999f9e96553504fb75338485ad672b1cb176e15860c39b35913b0ed525852
4
- data.tar.gz: 4bf9ec438dd3aebb4b81707b53c7141a466d1f8c504a88c0d6b5d60f46ea0534
3
+ metadata.gz: '0099beeee62c483cd83042053de24308ff48951666f886bca3e307ffeb22d4f0'
4
+ data.tar.gz: 2bc6fae2a6a93e487ba97769bc9bfe8a68db179df9901b88453fc9584bc14766
5
5
  SHA512:
6
- metadata.gz: 05fab25ad1c760bde99b95b230e6616aa6205510cb77454a7c167aeb7501e967c1909ec4afe583e259312802d8172f5099937128bc7d34c8e4901cb7f48c3181
7
- data.tar.gz: e935ceff8ab264b3f4ca6383874c427733633bd744e3a5318cb079f47bf67f580f8957ee5cea36c3a1827b064f1f7022061b13d9e4f60182200180eb50abcbe9
6
+ metadata.gz: d731b1506f27760509a8b26f80e278ad5bffc147ba8feebb97d80fdd5aec8b2cd1645850c9bc29b90cffd2b6ae8621942fe9502f21da89e043a12805d2c8ce34
7
+ data.tar.gz: 0246df7127b4db9e360d269f41fcb20430d54ccd8cc020310d6affce5d4f9b1dda6a39d19555f5e2cc503ed6b79f1fb2f1a766cb934b0cf400934dd1b633987e
data/.rubocop.yml CHANGED
@@ -7,6 +7,6 @@ require: rubocop-rails
7
7
  inherit_from:
8
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
9
9
  AllCops:
10
- TargetRubyVersion: 2.7
10
+ TargetRubyVersion: 3.1
11
11
  Rails:
12
12
  Enabled: false
data/Gemfile CHANGED
@@ -13,6 +13,7 @@ gem "rspec", "~> 3.0"
13
13
  gem "rubocop"
14
14
  gem "rubocop-performance"
15
15
  gem "rubocop-rails"
16
+ gem "ruby-jing"
16
17
  gem "simplecov"
17
18
  gem "vcr"
18
19
  gem "webmock"
data/README.adoc CHANGED
@@ -1,4 +1,4 @@
1
- = RelatonIso: retrieve ISO Standards for bibliographic use using the BibliographicItem model
1
+ = Relaton::Iso: retrieve ISO Standards for bibliographic use using the BibliographicItem model
2
2
 
3
3
  image:https://img.shields.io/gem/v/relaton-iso.svg["Gem Version", link="https://rubygems.org/gems/relaton-iso"]
4
4
  image:https://github.com/relaton/relaton-iso/workflows/macos/badge.svg["Build Status (macOS)", link="https://github.com/relaton/relaton-iso/actions?workflow=macos"]
@@ -8,7 +8,7 @@ image:https://codeclimate.com/github/relaton/relaton-iso/badges/gpa.svg["Code Cl
8
8
  image:https://img.shields.io/github/issues-pr-raw/relaton/relaton-iso.svg["Pull Requests", link="https://github.com/relaton/relaton-iso/pulls"]
9
9
  image:https://img.shields.io/github/commits-since/relaton/relaton/latest.svg["Commits since latest",link="https://github.com/relaton/relaton/releases"]
10
10
 
11
- RelatonIso is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-iso#iso-bibliographic-item[IsoBibliographicItem model].
11
+ Relaton::Iso is a Ruby gem that implements the https://github.com/metanorma/metanorma-model-iso#iso-bibliographic-item[IsoBibliographicItem model].
12
12
 
13
13
  You can use it to retrieve metadata of ISO Standards from https://www.iso.org, and access such metadata through the `IsoBibliographicItem` object.
14
14
 
@@ -35,107 +35,98 @@ Or install it yourself as:
35
35
 
36
36
  [source,ruby]
37
37
  ----
38
- require 'relaton_iso'
38
+ require 'relaton/iso'
39
39
  => true
40
40
 
41
- hit_collection = RelatonIso::IsoBibliography.search("ISO 19115")
42
- => <RelatonIso::HitCollection:0x007fa5bc847038 @ref=19115 @fetched=false>
41
+ hit_collection = Relaton::Iso::Bibliography.search("ISO 19115")
42
+ => <Relaton::Iso::HitCollection:0x0000000003a9a8 @ref=ISO 19115 @fetched=false>
43
43
 
44
44
  hit_collection.first
45
- => <RelatonIso::Hit:0x007f87e71ea9f8 @text="ISO 19115" @fetched="false" @fullIdentifier="" @title="">
45
+ => #<Relaton::Iso::Hit:0x00000001398ecdc8 ...>
46
46
 
47
- item = hit_collection[2].fetch
48
- => #<RelatonIsoBib::IsoBibliographicItem:0x007fa5dca89510
49
- ...
47
+ item = hit_collection[2].item
48
+ => #<Relaton::Iso::ItemData:0x0000000139d07070 ...>
50
49
 
51
- item.docidentifier
52
- => [#<RelatonIso::DocumentIdentifier:0x0000000112a23a88
53
- ...
50
+ item.docidentifier.first.to_s
51
+ => "ISO 19115-2:2019"
54
52
 
55
- item.docidentifier.detect { |di| di.type == "URN" }.id
56
- => "urn:iso:std:iso:19115:-1:ed-1:stage-60.60:amd:2020:v2"
53
+ item.docidentifier.find { |id| id.type == "URN" }.to_s
54
+ => "urn:iso:std:iso:19115:-2:stage-90.93"
57
55
  ----
58
56
 
59
57
  === Fetch document by reference and year
60
58
 
61
59
  [source,ruby]
62
60
  ----
63
- item = RelatonIso::IsoBibliography.get "ISO 19115:2003"
64
- [relaton-iso] (ISO 19115:2003) Fetching from iso.org ...
65
- [relaton-iso] (ISO 19115:2003) Found: `ISO 19115:2003`
66
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8c83429e30
67
- ...
68
-
69
- item = RelatonIso::IsoBibliography.get "ISO 19115", "2003"
70
- [relaton-iso] (ISO 19115:2003) Fetching from iso.org ...
71
- [relaton-iso] (ISO 19115:2003) Found: `ISO 19115:2003`
72
- => #<RelatonIsoBib::IsoBibliographicItem:0x0000000112c9ca80
73
- ...
74
-
75
- item.docidentifier[0].id
76
- => "ISO 19115:2003"
61
+ item = Relaton::Iso::Bibliography.get "ISO 19115:2003"
62
+ [relaton-iso] INFO: (ISO 19115:2003) Fetching from Relaton repository ...
63
+ [relaton-iso] INFO: (ISO 19115:2003) Found: `ISO 19115:2003`
64
+ => #<Relaton::Iso::ItemData:0x000000013c4cdac8 ...>
65
+
66
+ item = Relaton::Iso::Bibliography.get "ISO 19115", "2003"
67
+ [relaton-iso] INFO: (ISO 19115:2003) Fetching from Relaton repository ...
68
+ [relaton-iso] INFO: (ISO 19115:2003) Found: `ISO 19115:2003`
69
+ => #<Relaton::Iso::ItemData:0x000000013c4c5148 ...>
70
+
71
+ item.docidentifier[0].to_s
72
+ => "ISO 19115:2003"
77
73
  ----
78
74
 
79
75
  === Fetch non-part document
80
76
 
81
77
  [source,ruby]
82
78
  ----
83
- item = RelatonIso::IsoBibliography.get "ISO 19115"
84
- [relaton-iso] (ISO 19115) Fetching from iso.org ...
85
- [relaton-iso] (ISO 19115) Found: `ISO 19115:2003`
86
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8c830275a8
87
- ...
88
-
89
- item.docidentifier[0].id
90
- => "ISO 19115"
79
+ item = Relaton::Iso::Bibliography.get "ISO 19115"
80
+ [relaton-iso] INFO: (ISO 19115) Fetching from Relaton repository ...
81
+ [relaton-iso] INFO: (ISO 19115) Found: `ISO 19115:2003`
82
+ => #<Relaton::Iso::ItemData:0x000000013b6a6418 ...>
83
+
84
+ item.docidentifier[0].to_s
85
+ => "ISO 19115"
91
86
  ----
92
87
 
93
88
  === Fetch a part document
94
89
 
95
90
  [source,ruby]
96
91
  ----
97
- item = RelatonIso::IsoBibliography.get "ISO 19115-1"
98
- [relaton-iso] (ISO 19115-1) Fetching from iso.org ...
99
- [relaton-iso] (ISO 19115-1) Found: `ISO 19115-1:2014`
100
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8c83408af0
101
- ...
102
-
103
- item.docidentifier[0].id
104
- => "ISO 19115-1"
92
+ item = Relaton::Iso::Bibliography.get "ISO 19115-1"
93
+ [relaton-iso] INFO: (ISO 19115-1) Fetching from Relaton repository ...
94
+ [relaton-iso] INFO: (ISO 19115-1) Found: `ISO 19115-1:2014`
95
+ => #<Relaton::Iso::ItemData:0x000000013c761410 ...>
96
+
97
+ item.docidentifier[0].to_s
98
+ => "ISO 19115-1"
105
99
  ----
106
100
 
107
101
  === Fetch all-parts document
108
102
 
109
103
  [source,ruby]
110
104
  ----
111
- item = RelatonIso::IsoBibliography.get "ISO 19115 (all parts)"
112
- [relaton-iso] (ISO 19115) Fetching from iso.org ...
113
- [relaton-iso] (ISO 19115) Found: `ISO 19115`
114
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8ca216e118
115
- ...
116
-
117
- item = RelatonIso::IsoBibliography.get "ISO 19115", nil, all_parts: true
118
- [relaton-iso] (ISO 19115) Fetching from iso.org ...
119
- [relaton-iso] (ISO 19115) Found: `ISO 19115`
120
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8c830f3d38
121
- ...
122
-
123
- item.docidentifier[0].id
124
- => "ISO 19115 (all parts)"
125
-
126
- item = RelatonIso::IsoBibliography.get "ISO 19115-1 (all parts)"
127
- [relaton-iso] (ISO 19115) Fetching from iso.org ...
128
- [relaton-iso] (ISO 19115) Found: `ISO 19115`
129
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8c8290e5a0
130
-
131
- item = RelatonIso::IsoBibliography.get "ISO 19115-1", nil, all_parts: true
132
- [relaton-iso] (ISO 19115) Fetching from iso.org ...
133
- [relaton-iso] (ISO 19115) Found: `ISO 19115`
134
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007f8c925355b8
135
- ...
136
-
137
- item.docidentifier[0].id
138
- => "ISO 19115 (all parts)"
105
+ item = Relaton::Iso::Bibliography.get "ISO 19115 (all parts)"
106
+ [relaton-iso] INFO: (ISO 19115 (all parts)) Fetching from Relaton repository ...
107
+ [relaton-iso] INFO: (ISO 19115 (all parts)) Found: `ISO 19115 (all parts)`
108
+ => #<Relaton::Iso::ItemData:0x000000013bb87950 ...>
109
+
110
+ item = Relaton::Iso::Bibliography.get "ISO 19115", nil, all_parts: true
111
+ [relaton-iso] INFO: (ISO 19115 (all parts)) Fetching from Relaton repository ...
112
+ [relaton-iso] INFO: (ISO 19115 (all parts)) Found: `ISO 19115 (all parts)`
113
+ => #<Relaton::Iso::ItemData:0x000000013c855150 ...>
114
+
115
+ item.docidentifier[0].to_s
116
+ => "ISO 19115 (all parts)"
117
+
118
+ item = Relaton::Iso::Bibliography.get "ISO 19115-1 (all parts)"
119
+ [relaton-iso] INFO: (ISO 19115-1 (all parts)) Fetching from Relaton repository ...
120
+ [relaton-iso] INFO: (ISO 19115-1 (all parts)) Found: `ISO 19115 (all parts)`
121
+ => #<Relaton::Iso::ItemData:0x000000013b54c590 ...>
122
+
123
+ item = Relaton::Iso::Bibliography.get "ISO 19115-1", nil, all_parts: true
124
+ [relaton-iso] INFO: (ISO 19115-1 (all parts)) Fetching from Relaton repository ...
125
+ [relaton-iso] INFO: (ISO 19115-1 (all parts)) Found: `ISO 19115 (all parts)`
126
+ => #<Relaton::Iso::ItemData:0x000000013b54dad0 ...>
127
+
128
+ item.docidentifier[0].to_s
129
+ => "ISO 19115 (all parts)"
139
130
  ----
140
131
 
141
132
  === Non-standard ISO/IEC documents
@@ -210,7 +201,6 @@ This is the undated reference.
210
201
  `ISO/IEC DIR 1 + IEC SUP:{yyyy}`::: Available edition years from 2016 (ed12) to 2023 (ed19).
211
202
 
212
203
 
213
-
214
204
  ==== ISO/IEC JTC 1 governance documents
215
205
 
216
206
  `ISO/IEC JTC 1 DIR`::
@@ -254,28 +244,26 @@ Possible options:
254
244
  [source,ruby]
255
245
  ----
256
246
  item.to_xml
257
- => "<bibitem id="ISO19115-1-2014" type="standard" schema-version="v1.2.1">
258
- <fetched>2022-12-04</fetched>
259
- <title type="title-intro" format="text/plain" language="en" script="Latn">Geographic information</title>
260
- <title type="title-main" format="text/plain" language="en" script="Latn">Metadata</title>
247
+ => "<bibitem id="ISO19115-1-2014" type="standard" schema-version="v1.4.1">
248
+ <title language="en" script="Latn" type="title-intro" format="text/plain">Geographic information</title>
249
+ <title language="en" script="Latn" type="title-main" format="text/plain">Metadata</title>
261
250
  ...
262
251
  </bibitem>"
263
252
 
264
253
  item.to_xml bibdata: true
265
- => "<bibdata type="standard" schema-version="v1.2.1">
266
- <fetched>2022-12-04</fetched>
267
- <title type="title-intro" format="text/plain" language="en" script="Latn">Geographic information</title>
254
+ => "<bibdata type="standard" schema-version="v1.4.1">
255
+ <title language="en" script="Latn" type="title-intro" format="text/plain">Geographic information</title>
268
256
  ...
269
- <ext schema-version="v1.0.3">
257
+ <ext schema-version="v1.0.5">
270
258
  <doctype>international-standard</doctype>
271
259
  ...
272
260
  </ext>
273
261
  </bibdata>"
274
262
 
275
- item.to_xml note: [{ text: "Note", type: "note" }]
276
- => "<bibitem id="ISO19115-1-2014" type="standard" schema-version="v1.2.1">
263
+ item.to_xml note: [{ content: "Note", type: "note" }]
264
+ => "<bibitem id="ISO19115-1-2014" type="standard" schema-version="v1.4.1">
277
265
  ...
278
- <note format="text/plain" type="note">Note</note>
266
+ <note type="note">Note</note>
279
267
  ...
280
268
  </bibitem>"
281
269
  ----
@@ -284,50 +272,63 @@ item.to_xml note: [{ text: "Note", type: "note" }]
284
272
 
285
273
  [source,ruby]
286
274
  ----
287
- item.title lang: 'en'
288
- => #<RelatonBib::TypedTitleStringCollection:0x0000000112783fd0
289
- @array=
290
- [#<RelatonBib::TypedTitleString:0x00000001138e2380
291
- @title=#<RelatonBib::FormattedString:0x0000000112d496b8 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
292
- @type="title-intro">,
293
- #<RelatonBib::TypedTitleString:0x00000001138e1f70
294
- @title=#<RelatonBib::FormattedString:0x0000000112d495c8 @content="Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
295
- @type="title-main">,
296
- #<RelatonBib::TypedTitleString:0x00000001138e1d68
297
- @title=
298
- #<RelatonBib::FormattedString:0x0000000112d49488 @content="Geographic information – Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
299
- @type="main">]>
300
-
301
- item.title lang: 'fr'
302
- => #<RelatonBib::TypedTitleStringCollection:0x0000000113067458
303
- @array=
304
- [#<RelatonBib::TypedTitleString:0x00000001138e1c28
305
- @title=#<RelatonBib::FormattedString:0x0000000112d49438 @content="Information géographique", @format="text/plain", @language=["fr"], @script=["Latn"]>,
306
- @type="title-intro">,
307
- #<RelatonBib::TypedTitleString:0x00000001138e1b10
308
- @title=#<RelatonBib::FormattedString:0x0000000112d49398 @content="Métadonnées", @format="text/plain", @language=["fr"], @script=["Latn"]>,
309
- @type="title-main">,
310
- #<RelatonBib::TypedTitleString:0x00000001138e1908
311
- @title=
312
- #<RelatonBib::FormattedString:0x0000000112d491b8
313
- @content="Information géographique – Métadonnées",
314
- @format="text/plain",
315
- @language=["fr"],
316
- @script=["Latn"]>,
317
- @type="main">]>
318
-
319
- item = RelatonIso::IsoBibliography.get "ISO 19115:2003"
275
+ item.title 'en'
276
+ => [#<Relaton::Bib::Title:0x000000013e3de2f0
277
+ @content="Geographic information",
278
+ @format="text/plain",
279
+ @language="en",
280
+ @locale=nil,
281
+ @script="Latn",
282
+ @type="title-intro">,
283
+ #<Relaton::Bib::Title:0x000000013e3de250
284
+ @content="Metadata",
285
+ @format="text/plain",
286
+ @language="en",
287
+ @locale=nil,
288
+ @script="Latn",
289
+ @type="title-main">,
290
+ #<Relaton::Bib::Title:0x000000013e3de110
291
+ @content="Geographic information - Metadata",
292
+ @format="text/plain",
293
+ @language="en",
294
+ @locale=nil,
295
+ @script="Latn",
296
+ @type="main">]
297
+
298
+ item.title 'fr'
299
+ => [#<Relaton::Bib::Title:0x000000013e3de070
300
+ @content="Information géographique",
301
+ @format="text/plain",
302
+ @language="fr",
303
+ @locale=nil,
304
+ @script="Latn",
305
+ @type="title-intro">,
306
+ #<Relaton::Bib::Title:0x000000013e3ddfd0
307
+ @content="Métadonnées",
308
+ @format="text/plain",
309
+ @language="fr",
310
+ @locale=nil,
311
+ @script="Latn",
312
+ @type="title-main">,
313
+ #<Relaton::Bib::Title:0x000000013e3dde90
314
+ @content="Information géographique - Métadonnées",
315
+ @format="text/plain",
316
+ @language="fr",
317
+ @locale=nil,
318
+ @script="Latn",
319
+ @type="main">]
320
+
321
+ item = Relaton::Iso::Bibliography.get "ISO 19115:2003"
320
322
  [relaton-iso] (ISO 19115:2003) Fetching from iso.org ...
321
323
  [relaton-iso] (ISO 19115:2003) Found: `ISO 19115:2003`
322
- => #<RelatonIsoBib::IsoBibliographicItem:0x00007fa8870b69e0
323
-
324
- item.abstract lang: 'en'
325
- => #<RelatonBib::FormattedString:0x00007fa8870b4f78
326
- @content=
327
- "ISO 19115:2003 defines the schema required for describing geographic information ...",
328
- @format="text/plain",
329
- @language=["en"],
330
- @script=["Latn"]>
324
+ => #<Relaton::Iso::ItemData:0x000000013eefe888 ...>
325
+
326
+ item.abstract 'en'
327
+ => [#<Relaton::Bib::LocalizedMarkedUpString:0x000000013e4790c0
328
+ @content= "ISO 19115:2003 defines the schema required for describing geographic information ...",
329
+ @language="en",
330
+ @locale=nil,
331
+ @script="Latn">]
331
332
  ----
332
333
 
333
334
  === Typed links
@@ -336,15 +337,17 @@ Each ISO document has `src` type link and optional `obp`, `rss`, and `pub` link
336
337
 
337
338
  [source,ruby]
338
339
  ----
339
- item.link
340
- => [#<RelatonBib::TypedUri:0x0000000112d66c40
341
- @content=#<Addressable::URI:0x93d71c URI:https://www.iso.org/standard/26020.html>,
340
+ item.source
341
+ => [#<Relaton::Bib::Uri:0x000000013ee73080
342
+ @content="https://www.iso.org/standard/26020.html",
342
343
  @language=nil,
344
+ @locale=nil,
343
345
  @script=nil,
344
346
  @type="src">,
345
- #<RelatonBib::TypedUri:0x0000000112d66920
346
- @content=#<Addressable::URI:0x93d730 URI:https://www.iso.org/contents/data/standard/02/60/26020.detail.rss>,
347
+ #<Relaton::Bib::Uri:0x000000013ee73030
348
+ @content="https://www.iso.org/contents/data/standard/02/60/26020.detail.rss",
347
349
  @language=nil,
350
+ @locale=nil,
348
351
  @script=nil,
349
352
  @type="rss">]
350
353
  ----
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "relaton_iso"
4
+ require "relaton/iso"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.