relaton-ccsds 2.0.0.pre.alpha.2 → 2.0.0.pre.alpha.3

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: ca1d83dae265efa50b2dd67e5b53744f2d40c54779e88462b5d7256ffa3a9697
4
- data.tar.gz: dd405986f3ec69cc03e23fb7efc2ab4f0dc2ba85c366a8f4db936c59aa30050a
3
+ metadata.gz: 3399494175ab697251039d9cc57ba8e38576bb6321cd45d5fd65d8deba83a422
4
+ data.tar.gz: e665114a021d30748e744fa4212d41b7b9d9c881599f7a7bd65c9eebf1ce78b4
5
5
  SHA512:
6
- metadata.gz: a0b4b31e16bc01d52e8f5df780c0c3e14e1b7f625d88b2ef49402bb8019cf2a61995e43d5dcdcf6cba2e83b754c2249f616d69a235ec557372101638049fac6e
7
- data.tar.gz: c6bd7db83c568129ed9f434cd25646ff340e265d5133e90c6cef0235fd203c72f73e442629e11819562224e7cb148da5dfc5f9cac236f20c728a1e775069b3f9
6
+ metadata.gz: 02e2bc9c9cb19435b0272c54627e325682175d88b80d926315f02e0e7a13a4e670c6e3f7b608fdf53ebec670e4f24fc6e62fe2a0984b8a87bb77f6cb56e3d555
7
+ data.tar.gz: f06b872936f9616a7dac470a0ffd999e13a4551edbb746c4ce8ba7d5847a6e10e798e7e4a2b29cf3cfbb816c9808f57e734377679db80bb95d435fb595a4b838
data/README.adoc CHANGED
@@ -52,7 +52,7 @@ item = Relaton::Ccsds::Bibliography.get("CCSDS 230.2-G-1")
52
52
  [source,ruby]
53
53
  ----
54
54
  item.to_xml
55
- => "<bibitem id="CCSDS2302G1" schema-version="v1.4.1">
55
+ => "<bibitem id="CCSDS2302G1" schema-version="v1.5.6">
56
56
  <fetched>2025-12-03</fetched>
57
57
  <title language="en" script="Latn">Next Generation Uplink</title>
58
58
  <uri type="src">https://ccsds.org/publications/ccsdsallpubs/entry/3224/</uri>
@@ -65,7 +65,7 @@ With argument `bibdata: true` it outputs XML wrapped by `bibdata` element and ad
65
65
  [source,ruby]
66
66
  ----
67
67
  item.to_xml bibdata: true
68
- => "<bibdata schema-version="v1.4.1">
68
+ => "<bibdata schema-version="v1.5.6">
69
69
  <fetched>2025-12-03</fetched>
70
70
  <title language="en" script="Latn">Next Generation Uplink</title>
71
71
  <uri type="src">https://ccsds.org/publications/ccsdsallpubs/entry/3224/</uri>
@@ -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>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
3
+ <include href="basicdoc.rng"/>
4
+ <include href="biblio-standoc.rng"/>
5
+ <start>
6
+ <choice>
7
+ <ref name="bibitem"/>
8
+ <ref name="bibdata"/>
9
+ </choice>
10
+ </start>
11
+ </grammar>
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>
@@ -200,7 +200,7 @@ module Relaton
200
200
  return unless bib_docid
201
201
 
202
202
  docid = Bib::Docidentifier.from_yaml(bib_docid.to_yaml)
203
- rel = Relaton::Bib::ItemData.new docidentifier: [docid], formattedref: bib_docid.content.dup
203
+ rel = Relaton::Bib::ItemData.new docidentifier: [docid], formattedref: Relaton::Bib::Formattedref.new(content: bib_docid.content.dup)
204
204
  yield Relaton::Bib::Relation.new(type: type, bibitem: rel)
205
205
  end
206
206
 
@@ -64,7 +64,7 @@ module Relaton
64
64
 
65
65
  def parse_abstract
66
66
  a = @doc[7]
67
- [Bib::LocalizedMarkedUpString.new(content: a, language: "en", script: "Latn")]
67
+ [Bib::Abstract.new(content: a, language: "en", script: "Latn")]
68
68
  end
69
69
 
70
70
  def parse_doctype
@@ -160,7 +160,7 @@ module Relaton
160
160
  def create_relation(type, rel_id, uri = nil, id_type = "CCSDS")
161
161
  id = Bib::Docidentifier.new content: rel_id, type: id_type, primary: true
162
162
  source = array(uri).map { |u| Bib::Uri.new(type: "src", content: u) }
163
- bibitem = Bib::ItemData.new docidentifier: [id], source: source, formattedref: rel_id
163
+ bibitem = Bib::ItemData.new docidentifier: [id], source: source, formattedref: Bib::Formattedref.new(content: rel_id)
164
164
  Bib::Relation.new type: type, bibitem: bibitem
165
165
  end
166
166
 
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Ccsds
3
- VERSION = "2.0.0-alpha.2".freeze
3
+ VERSION = "2.0.0-alpha.3".freeze
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "mechanize", "~> 2.10"
29
29
  spec.add_dependency "openssl", "~> 3.3.2"
30
30
  spec.add_dependency "pubid-ccsds", "~> 1.15.2"
31
- spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.4"
31
+ spec.add_dependency "relaton-bib", "~> 2.0.0-alpha.7"
32
32
  spec.add_dependency "relaton-core", "~> 0.0.9"
33
33
  spec.add_dependency "relaton-index", "~> 0.2.16"
34
34
  # For more information and examples about making a new gem, check out our
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ccsds
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.2
4
+ version: 2.0.0.pre.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -71,14 +71,14 @@ dependencies:
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 2.0.0.pre.alpha.4
74
+ version: 2.0.0.pre.alpha.7
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 2.0.0.pre.alpha.4
81
+ version: 2.0.0.pre.alpha.7
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: relaton-core
84
84
  requirement: !ruby/object:Gem::Requirement
@@ -127,6 +127,7 @@ files:
127
127
  - bin/setup
128
128
  - ccsdsallpubs.html
129
129
  - grammars/basicdoc.rng
130
+ - grammars/biblio-compile.rng
130
131
  - grammars/biblio-standoc.rng
131
132
  - grammars/biblio.rng
132
133
  - grammars/relaton-ccsds-compile.rng