relaton-omg 2.0.0.pre.alpha.1 → 2.0.0.pre.alpha.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 225388efdbed90395039c1f28bd0694182730f06cd60e5afb8333985d1a7aa11
4
- data.tar.gz: 62a961cd80770fd534128ddc36f42b3b465ffba58dfb668a15eacf8a0cb0ee71
3
+ metadata.gz: a943d384450993990abd3c4d4da67975d7e9e94240a8546ea4561415eb2d7d5c
4
+ data.tar.gz: 51b184d350aed3a230cfceb3fc4f8076874a7740bea1064f87865f2bf4d54c51
5
5
  SHA512:
6
- metadata.gz: a7b7956b637f1f53b723cb90d5db542c88c1c01cfc45191e211be05f25db63e9caaf75f3a72239bc51fa25058c59d5659ba8a17514031e6177d08663d3a417a5
7
- data.tar.gz: 1c6493afcafb8b039b6836abf66802c10c0501239d86bbd8dbf9e58b5beab1dff9b0b0e2737a64cf89174a659c0e2790772f049c72225cbfced092e94891e88d
6
+ metadata.gz: c0cb26edb804d43869057cbde0f20d27d7928565b0abd57e9835ee6032b8a77eefd392aa2d8f2c3efbe0b4cc07153f79ceac5b60f4be08665c75a7a852bc652c
7
+ data.tar.gz: 4494d755e60de27ebd0e8c6bbb796f953c0937b18a8f6a2d1bd05814a7b0624243eae34d59f2c2aab59bfdac4e1baeb2e1de0d9565bd1dc3e8cb5243012f7c6f
@@ -187,6 +187,15 @@ Applicable to modify and delete</a:documentation>
187
187
  <a:documentation>Optional caption of this block</a:documentation>
188
188
  </attribute>
189
189
  </optional>
190
+ <optional>
191
+ <attribute name="position">
192
+ <a:documentation>For an "add" change, whether the change is added before or after the location</a:documentation>
193
+ <choice>
194
+ <value>before</value>
195
+ <value>after</value>
196
+ </choice>
197
+ </attribute>
198
+ </optional>
190
199
  <optional>
191
200
  <element name="location">
192
201
  <a:documentation>The location(s) in the original document which have undergone the change described in this block</a:documentation>
@@ -208,11 +217,15 @@ Applicable to modify and delete</a:documentation>
208
217
  </zeroOrMore>
209
218
  <optional>
210
219
  <element name="newcontent">
211
- <a:documentation>New content to be added to the document; applicable to add and modify</a:documentation>
220
+ <a:documentation>New content to be added to the document; applicable to add and modify.
221
+ Can be blocks and/or sections</a:documentation>
212
222
  <ref name="OptionalId"/>
213
223
  <zeroOrMore>
214
224
  <ref name="BasicBlock"/>
215
225
  </zeroOrMore>
226
+ <zeroOrMore>
227
+ <ref name="section"/>
228
+ </zeroOrMore>
216
229
  </element>
217
230
  </optional>
218
231
  <zeroOrMore>
data/grammars/biblio.rng CHANGED
@@ -1142,11 +1142,11 @@ NOTE: This should preferably be encoded as a URI or short identifier, rather th
1142
1142
  <a:documentation>Information about how long the current description of the bibliographic item is valid for</a:documentation>
1143
1143
  </ref>
1144
1144
  </optional>
1145
- <optional>
1145
+ <zeroOrMore>
1146
1146
  <ref name="depiction">
1147
1147
  <a:documentation>Depiction of the bibliographic item, typically an image</a:documentation>
1148
1148
  </ref>
1149
- </optional>
1149
+ </zeroOrMore>
1150
1150
  </define>
1151
1151
  <define name="ReducedBibliographicItem">
1152
1152
  <a:documentation>Reduced description of a bibliographic resource, without mandatory title and docidentifier, used for document relations
@@ -1939,10 +1939,10 @@ Detailed in https://www.relaton.org/model/relations/</a:documentation>
1939
1939
  <value>hasAnnotation</value>
1940
1940
  <value>draftOf</value>
1941
1941
  <value>hasDraft</value>
1942
- <value>preliminaryDraftOf</value>
1943
- <value>hasPreliminaryDraft</value>
1944
- <value>revisionDraftOf</value>
1945
- <value>hasRevisionDraft</value>
1942
+ <value>predecessorDraftOf</value>
1943
+ <value>hasPredecessorDraft</value>
1944
+ <value>successorDraftOf</value>
1945
+ <value>hasSuccessorDraft</value>
1946
1946
  <value>editionOf</value>
1947
1947
  <value>hasEdition</value>
1948
1948
  <value>updates</value>
@@ -2063,13 +2063,13 @@ provided that it is not the entire bibliographic item that is so related</a:docu
2063
2063
  <ref name="LocalizedString"/>
2064
2064
  </element>
2065
2065
  </optional>
2066
- <oneOrMore>
2066
+ <zeroOrMore>
2067
2067
  <element name="taxon">
2068
2068
  <a:documentation>The keywords as a hierarchical taxonomy. For example, the sequence of `taxon` elements
2069
2069
  `pump`, `centrifugal pump`, `line shaft pump` represents a taxonomic classification</a:documentation>
2070
2070
  <ref name="LocalizedString"/>
2071
2071
  </element>
2072
- </oneOrMore>
2072
+ </zeroOrMore>
2073
2073
  <zeroOrMore>
2074
2074
  <ref name="vocabid">
2075
2075
  <a:documentation>Identifiers for the keyword as a controlled vocabulary</a:documentation>
@@ -69,7 +69,7 @@ module Relaton
69
69
 
70
70
  def fetch_abstract
71
71
  content = @doc.at('//section[@id="document-metadata"]/div/div/p').text
72
- [Bib::LocalizedMarkedUpString.new(content: content, language: "en", script: "Latn")]
72
+ [Bib::Abstract.new(content: content, language: "en", script: "Latn")]
73
73
  end
74
74
 
75
75
  def fetch_version
@@ -118,7 +118,7 @@ module Relaton
118
118
  acronym = row.at("td[3]/a")[:href].split("/")[4]
119
119
  id = ["OMG", acronym, ver].join(" ")
120
120
  docid = Bib::Docidentifier.new(content: id, type: "OMG")
121
- bibitem = Bib::ItemBase.new(formattedref: id, docidentifier: [docid])
121
+ bibitem = Bib::ItemBase.new(formattedref: Bib::Formattedref.new(content: id), docidentifier: [docid])
122
122
  mem << Bib::Relation.new(type: "obsoletes", bibitem: bibitem)
123
123
  end
124
124
  mem
@@ -127,7 +127,7 @@ module Relaton
127
127
 
128
128
  def fetch_keyword
129
129
  @doc.xpath('//dt[.="Categories:"]/following-sibling::dd/ul/li/a/em').map do |kw|
130
- Bib::Keyword.new(taxon: [Bib::LocalizedString.new(content: kw.text)])
130
+ Bib::Keyword.new(vocab: Bib::LocalizedString.new(content: kw.text))
131
131
  end
132
132
  end
133
133
 
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Omg
3
- VERSION = "2.0.0-alpha.1".freeze
3
+ VERSION = "2.0.0-alpha.2".freeze
4
4
  end
5
5
  end
data/relaton_omg.gemspec CHANGED
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.add_dependency "base64"
30
30
  spec.add_dependency "mechanize", "~> 2.8"
31
- spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.4"
32
- spec.add_dependency "relaton-core", "~> 0.0.9"
31
+ spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.7"
32
+ spec.add_dependency "relaton-core", "~> 0.0.13"
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-omg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.1
4
+ version: 2.0.0.pre.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -43,28 +43,28 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.0.pre.alpha.4
46
+ version: 2.0.0.pre.alpha.7
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 2.0.0.pre.alpha.4
53
+ version: 2.0.0.pre.alpha.7
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: relaton-core
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.0.9
60
+ version: 0.0.13
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 0.0.9
67
+ version: 0.0.13
68
68
  description: 'Relaton::Omg: retrieve OMG Standards for bibliographic using the IsoBibliographicItem
69
69
  model'
70
70
  email: