relaton-un 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: d329d6b49f77f6a2fd2a1ed6b1ccc1204074e5f9415d948de9352361af97cb7b
4
- data.tar.gz: 64946c2287d40673e5fbd186c542f9a7e47cf53c0082c0a62f6f150e7af63e80
3
+ metadata.gz: 37cccd313d3ca90065cc74e0ffe9be80812d56a0ac4a127a8262fae0465cad2d
4
+ data.tar.gz: b32115bdbdf99a74dcc8af00367cd4ef107e643a9d27b8841b6535295ae9871a
5
5
  SHA512:
6
- metadata.gz: 485f49c382375e5b4b91775562d62e456b5a9066eb4d728eb8c018b9121fd94c768cfa8f8f4bc7cdfb315f1e78a9d7eafa610f29ecec1f1b711258603dd1ad18
7
- data.tar.gz: dbb0cb1629ab456306d0746602e687c3d977b20eadb55331c523ccc7207ee72ed2af4bbe803bf413b39e79b053c7ccccdcb4c203d061d2c57731d99f0880a18a
6
+ metadata.gz: 671dbf200b4d9928c6364686edf37e136ad04bb7d9d9790f9bb9693cc19aa670265d0d1c8f1a5ebe92b0b1dd7c2fecbcf336e6c021ed32bd7f99463e76aaa2d1
7
+ data.tar.gz: 8f1e7128367cfd36c61987175080c2fe30f08eccd8652d866adb1992d55eeb602357d8bafe5e0c97155b68c0336186704896282b2db4e3eb635f76617d66bf88
@@ -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>
@@ -16,33 +16,21 @@
16
16
  <value>resolution</value>
17
17
  </choice>
18
18
  </define>
19
- <define name="BibDataExtensionType">
20
- <optional>
21
- <attribute name="schema-version"/>
22
- </optional>
23
- <optional>
24
- <ref name="doctype"/>
25
- </optional>
26
- <optional>
27
- <ref name="docsubtype"/>
28
- </optional>
29
- <zeroOrMore>
30
- <ref name="submissionlanguage"/>
31
- </zeroOrMore>
32
- <zeroOrMore>
33
- <ref name="ics"/>
34
- </zeroOrMore>
35
- <optional>
36
- <ref name="distribution"/>
37
- </optional>
38
- <optional>
39
- <ref name="session"/>
40
- </optional>
41
- <optional>
42
- <ref name="job_number"/>
43
- </optional>
44
- </define>
45
19
  </include>
20
+ <define name="BibDataExtensionType" combine="interleave">
21
+ <zeroOrMore>
22
+ <ref name="submissionlanguage"/>
23
+ </zeroOrMore>
24
+ <optional>
25
+ <ref name="distribution"/>
26
+ </optional>
27
+ <optional>
28
+ <ref name="session"/>
29
+ </optional>
30
+ <optional>
31
+ <ref name="job_number"/>
32
+ </optional>
33
+ </define>
46
34
  <define name="session">
47
35
  <element name="session">
48
36
  <optional>
@@ -12,11 +12,7 @@ module Relaton
12
12
  attribute :job_number, :string
13
13
 
14
14
  xml do
15
- map_attribute "schema-version", to: :schema_version
16
- map_element "doctype", to: :doctype
17
- map_element "subdoctype", to: :subdoctype
18
15
  map_element "submissionlanguage", to: :submissionlanguage
19
- map_element "ics", to: :ics
20
16
  map_element "distribution", to: :distribution
21
17
  map_element "session", to: :session
22
18
  map_element "job_number", to: :job_number
@@ -74,7 +74,7 @@ module Relaton
74
74
  def fetch_keyword
75
75
  subjects = english_data&.dig("subjects") || []
76
76
  subjects.map do |kw|
77
- Bib::Keyword.new(vocab: [Bib::LocalizedString.new(content: kw)])
77
+ Bib::Keyword.new(vocab: Bib::LocalizedString.new(content: kw))
78
78
  end
79
79
  end
80
80
 
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Un
3
- VERSION = "2.0.0-alpha.1".freeze
3
+ VERSION = "2.0.0-alpha.2".freeze
4
4
  end
5
5
  end
data/relaton_un.gemspec CHANGED
@@ -34,8 +34,8 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_dependency "addressable", "~> 2.8.0"
36
36
  spec.add_dependency "faraday", "~> 2.7"
37
- spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.4"
38
- spec.add_dependency "relaton-core", "~> 0.0.9"
37
+ spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.7"
38
+ spec.add_dependency "relaton-core", "~> 0.0.13"
39
39
  spec.add_dependency "wasmtime", "~> 41.0"
40
40
  end
41
41
  # rubocop:enable Metrics/BlockLength
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-un
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
  - !ruby/object:Gem::Dependency
69
69
  name: wasmtime
70
70
  requirement: !ruby/object:Gem::Requirement