cocina-models 0.40.1 → 0.41.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +31 -0
- data/lib/cocina/generator/generator.rb +2 -2
- data/lib/cocina/models/access.rb +0 -2
- data/lib/cocina/models/description.rb +1 -1
- data/lib/cocina/models/descriptive_basic_value.rb +1 -0
- data/lib/cocina/models/descriptive_value.rb +1 -0
- data/lib/cocina/models/descriptive_value_language.rb +2 -0
- data/lib/cocina/models/event.rb +3 -0
- data/lib/cocina/models/language.rb +15 -17
- data/lib/cocina/models/related_resource.rb +7 -0
- data/lib/cocina/models/source.rb +2 -0
- data/lib/cocina/models/standard.rb +2 -0
- data/lib/cocina/models/{descriptive_value_required.rb → title.rb} +2 -1
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +100 -26
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29038502bea77b7be8adc58a0af9e73573a3da0d614c1d8c413a63ca80ffed72
|
4
|
+
data.tar.gz: b4e750e2124c23cbf11203a672a20f59f838cd8eb9a57fd592a00a26ef9b169e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc11509d28f0f9a6b174ec4943fbf51c6eb98a42dd2fe578082aa5fcf3b30a9291f293791ac3a69f2835bb7982a9c578190a4650be1af8585cf52f28c9236a65
|
7
|
+
data.tar.gz: 1dbd66908e5aaa6ac7cc38a9ea9b72062e537daa1c5d54844f8a86c75884b83a51e3cc9ad307dcebc2199276b092eede8dbc96a87578b28fcf328456617bd4d6
|
data/.rubocop.yml
CHANGED
@@ -143,3 +143,34 @@ Style/SingleArgumentDig:
|
|
143
143
|
|
144
144
|
Style/StringConcatenation:
|
145
145
|
Enabled: true
|
146
|
+
|
147
|
+
Layout/BeginEndAlignment: # (new in 0.91)
|
148
|
+
Enabled: true
|
149
|
+
Lint/ConstantDefinitionInBlock: # (new in 0.91)
|
150
|
+
Enabled: true
|
151
|
+
Lint/DuplicateRequire: # (new in 0.90)
|
152
|
+
Enabled: true
|
153
|
+
Lint/EmptyFile: # (new in 0.90)
|
154
|
+
Enabled: true
|
155
|
+
Lint/HashCompareByIdentity: # (new in 0.93)
|
156
|
+
Enabled: true
|
157
|
+
Lint/IdentityComparison: # (new in 0.91)
|
158
|
+
Enabled: true
|
159
|
+
Lint/RedundantSafeNavigation: # (new in 0.93)
|
160
|
+
Enabled: true
|
161
|
+
Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
|
162
|
+
Enabled: true
|
163
|
+
Lint/UselessMethodDefinition: # (new in 0.90)
|
164
|
+
Enabled: true
|
165
|
+
Lint/UselessTimes: # (new in 0.91)
|
166
|
+
Enabled: true
|
167
|
+
Style/ClassEqualityComparison: # (new in 0.93)
|
168
|
+
Enabled: true
|
169
|
+
Style/CombinableLoops: # (new in 0.90)
|
170
|
+
Enabled: true
|
171
|
+
Style/KeywordParametersOrder: # (new in 0.90)
|
172
|
+
Enabled: true
|
173
|
+
Style/RedundantSelfAssignment: # (new in 0.90)
|
174
|
+
Enabled: true
|
175
|
+
Style/SoleNestedConditional: # (new in 0.89)
|
176
|
+
Enabled: true
|
@@ -45,7 +45,7 @@ module Cocina
|
|
45
45
|
FileUtils.rm_f(filepath)
|
46
46
|
|
47
47
|
create_file filepath, vocab.generate
|
48
|
-
run("rubocop -a #{filepath}")
|
48
|
+
run("rubocop -a #{filepath} > /dev/null")
|
49
49
|
end
|
50
50
|
|
51
51
|
private
|
@@ -71,7 +71,7 @@ module Cocina
|
|
71
71
|
FileUtils.rm_f(filepath)
|
72
72
|
|
73
73
|
create_file filepath, schema.generate
|
74
|
-
run("rubocop -a #{filepath}")
|
74
|
+
run("rubocop -a #{filepath} > /dev/null")
|
75
75
|
end
|
76
76
|
|
77
77
|
def clean_output
|
data/lib/cocina/models/access.rb
CHANGED
@@ -5,8 +5,6 @@ module Cocina
|
|
5
5
|
class Access < Struct
|
6
6
|
# Access level
|
7
7
|
attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
|
8
|
-
# Download access level for a file
|
9
|
-
attribute :download, Types::Strict::String.default('none').enum('world', 'stanford', 'location-based', 'none').meta(omittable: true)
|
10
8
|
# If access is "location-based", which location should have access.
|
11
9
|
attribute :readLocation, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
|
12
10
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class Description < Struct
|
6
|
-
attribute :title, Types::Strict::Array.of(
|
6
|
+
attribute :title, Types::Strict::Array.of(Title).default([].freeze)
|
7
7
|
attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
|
8
8
|
attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
|
9
9
|
attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
@@ -17,6 +17,7 @@ module Cocina
|
|
17
17
|
attribute :uri, Types::Strict::String.meta(omittable: true)
|
18
18
|
attribute :standard, Standard.optional.meta(omittable: true)
|
19
19
|
attribute :encoding, Standard.optional.meta(omittable: true)
|
20
|
+
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
20
21
|
attribute :source, Source.optional.meta(omittable: true)
|
21
22
|
# The preferred display label to use for the descriptive element in access systems.
|
22
23
|
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
@@ -17,6 +17,7 @@ module Cocina
|
|
17
17
|
attribute :uri, Types::Strict::String.meta(omittable: true)
|
18
18
|
attribute :standard, Standard.optional.meta(omittable: true)
|
19
19
|
attribute :encoding, Standard.optional.meta(omittable: true)
|
20
|
+
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
20
21
|
attribute :source, Source.optional.meta(omittable: true)
|
21
22
|
# The preferred display label to use for the descriptive element in access systems.
|
22
23
|
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
@@ -10,6 +10,8 @@ module Cocina
|
|
10
10
|
# String describing the standard or encoding.
|
11
11
|
attribute :value, Types::Strict::String.meta(omittable: true)
|
12
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
|
+
# The version of the standard or encoding.
|
14
|
+
attribute :version, Types::Strict::String.meta(omittable: true)
|
13
15
|
attribute :source, Source.optional.meta(omittable: true)
|
14
16
|
attribute :valueScript, Standard.optional.meta(omittable: true)
|
15
17
|
end
|
data/lib/cocina/models/event.rb
CHANGED
@@ -6,9 +6,12 @@ module Cocina
|
|
6
6
|
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
7
|
# Description of the event (creation, publication, etc.).
|
8
8
|
attribute :type, Types::Strict::String.meta(omittable: true)
|
9
|
+
# The preferred display label to use for the event in access systems.
|
10
|
+
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
9
11
|
attribute :date, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
10
12
|
attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
|
11
13
|
attribute :location, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
14
|
+
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
12
15
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
16
|
end
|
14
17
|
end
|
@@ -3,29 +3,27 @@
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
5
|
class Language < Struct
|
6
|
-
attribute :
|
7
|
-
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
-
# String or integer value of the descriptive element.
|
9
|
-
attribute :value, Types::Nominal::Any.meta(omittable: true)
|
10
|
-
# Type of value provided by the descriptive element.
|
11
|
-
attribute :type, Types::Strict::String.meta(omittable: true)
|
12
|
-
# Status of the descriptive element value relative to other instances of the element.
|
13
|
-
attribute :status, Types::Strict::String.meta(omittable: true)
|
6
|
+
attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
|
14
7
|
# Code value of the descriptive element.
|
15
8
|
attribute :code, Types::Strict::String.meta(omittable: true)
|
16
|
-
# URI value of the descriptive element.
|
17
|
-
attribute :uri, Types::Strict::String.meta(omittable: true)
|
18
|
-
attribute :standard, Standard.optional.meta(omittable: true)
|
19
|
-
attribute :encoding, Standard.optional.meta(omittable: true)
|
20
|
-
attribute :source, Source.optional.meta(omittable: true)
|
21
9
|
# The preferred display label to use for the descriptive element in access systems.
|
22
10
|
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
23
|
-
|
24
|
-
attribute :qualifier, Types::Strict::String.meta(omittable: true)
|
11
|
+
attribute :encoding, Standard.optional.meta(omittable: true)
|
25
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
26
|
-
attribute :
|
27
|
-
|
13
|
+
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
14
|
+
# present for mapping to additional schemas in the future and for consistency but not otherwise used
|
15
|
+
attribute :qualifier, Types::Strict::String.meta(omittable: true)
|
28
16
|
attribute :script, DescriptiveValue.optional.meta(omittable: true)
|
17
|
+
attribute :source, Source.optional.meta(omittable: true)
|
18
|
+
# Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
|
19
|
+
attribute :status, Types::Strict::String.enum('primary').meta(omittable: true)
|
20
|
+
attribute :standard, Standard.optional.meta(omittable: true)
|
21
|
+
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
22
|
+
# URI value of the descriptive element.
|
23
|
+
attribute :uri, Types::Strict::String.meta(omittable: true)
|
24
|
+
# Value of the descriptive element.
|
25
|
+
attribute :value, Types::Strict::String.meta(omittable: true)
|
26
|
+
attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
|
29
27
|
end
|
30
28
|
end
|
31
29
|
end
|
@@ -5,6 +5,10 @@ module Cocina
|
|
5
5
|
class RelatedResource < Struct
|
6
6
|
# The relationship of the related resource to the described resource.
|
7
7
|
attribute :type, Types::Strict::String.meta(omittable: true)
|
8
|
+
# Status of the related resource relative to other related resources.
|
9
|
+
attribute :status, Types::Strict::String.meta(omittable: true)
|
10
|
+
# The preferred display label to use for the related resource in access systems.
|
11
|
+
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
8
12
|
attribute :title, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
9
13
|
attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
|
10
14
|
attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
|
@@ -12,10 +16,13 @@ module Cocina
|
|
12
16
|
attribute :language, Types::Strict::Array.of(Language).meta(omittable: true)
|
13
17
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
14
18
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
19
|
+
attribute :standard, Standard.optional.meta(omittable: true)
|
15
20
|
attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
16
21
|
# Stanford persistent URL associated with the related resource.
|
17
22
|
attribute :purl, Types::Strict::String.meta(omittable: true)
|
18
23
|
attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
|
24
|
+
# The version of the related resource.
|
25
|
+
attribute :version, Types::Strict::String.meta(omittable: true)
|
19
26
|
end
|
20
27
|
end
|
21
28
|
end
|
data/lib/cocina/models/source.rb
CHANGED
@@ -10,6 +10,8 @@ module Cocina
|
|
10
10
|
# String describing the value source.
|
11
11
|
attribute :value, Types::Strict::String.meta(omittable: true)
|
12
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
|
+
# The version of the value source.
|
14
|
+
attribute :version, Types::Strict::String.meta(omittable: true)
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -10,6 +10,8 @@ module Cocina
|
|
10
10
|
# String describing the standard or encoding.
|
11
11
|
attribute :value, Types::Strict::String.meta(omittable: true)
|
12
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
|
+
# The version of the standard or encoding.
|
14
|
+
attribute :version, Types::Strict::String.meta(omittable: true)
|
13
15
|
attribute :source, Source.optional.meta(omittable: true)
|
14
16
|
end
|
15
17
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Cocina
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class Title < Struct
|
6
6
|
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
7
|
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
8
|
# String or integer value of the descriptive element.
|
@@ -17,6 +17,7 @@ module Cocina
|
|
17
17
|
attribute :uri, Types::Strict::String.meta(omittable: true)
|
18
18
|
attribute :standard, Standard.optional.meta(omittable: true)
|
19
19
|
attribute :encoding, Standard.optional.meta(omittable: true)
|
20
|
+
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
20
21
|
attribute :source, Source.optional.meta(omittable: true)
|
21
22
|
# The preferred display label to use for the descriptive element in access systems.
|
22
23
|
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
data/openapi.yml
CHANGED
@@ -108,15 +108,6 @@ components:
|
|
108
108
|
- 'citation-only'
|
109
109
|
- 'dark'
|
110
110
|
default: 'dark'
|
111
|
-
download:
|
112
|
-
description: Download access level for a file
|
113
|
-
type: string
|
114
|
-
enum:
|
115
|
-
- 'world'
|
116
|
-
- 'stanford'
|
117
|
-
- 'location-based'
|
118
|
-
- 'none'
|
119
|
-
default: 'none'
|
120
111
|
readLocation:
|
121
112
|
description: If access is "location-based", which location should have access.
|
122
113
|
type: string
|
@@ -270,6 +261,7 @@ components:
|
|
270
261
|
description: Status of the contributor relative to other parallel contributors
|
271
262
|
(e.g. the primary author among a group of contributors).
|
272
263
|
type: string
|
264
|
+
# type: integer
|
273
265
|
role:
|
274
266
|
description: Relationships of the contributor to the resource or to an event
|
275
267
|
in its history.
|
@@ -295,7 +287,7 @@ components:
|
|
295
287
|
type: array
|
296
288
|
minItems: 1
|
297
289
|
items:
|
298
|
-
$ref: "#/components/schemas/
|
290
|
+
$ref: "#/components/schemas/Title"
|
299
291
|
contributor:
|
300
292
|
description: Agents contributing in some way to the creation and history of the
|
301
293
|
resource.
|
@@ -309,7 +301,7 @@ components:
|
|
309
301
|
$ref: "#/components/schemas/Event"
|
310
302
|
form:
|
311
303
|
description: Characteristics of the resource's physical, digital, and intellectual
|
312
|
-
form and genre.
|
304
|
+
form and genre, and of its process of creation.
|
313
305
|
type: array
|
314
306
|
items:
|
315
307
|
$ref: "#/components/schemas/DescriptiveValue"
|
@@ -433,7 +425,10 @@ components:
|
|
433
425
|
description: String or integer value of the descriptive element.
|
434
426
|
oneOf:
|
435
427
|
- type: string
|
436
|
-
|
428
|
+
# Title note (nonsorting character count) was supposed to be able to accept an integer value,
|
429
|
+
# but this triggered a bug in committee:
|
430
|
+
# https://github.com/interagent/committee/issues/286
|
431
|
+
# - type: integer
|
437
432
|
type:
|
438
433
|
description: Type of value provided by the descriptive element.
|
439
434
|
type: string
|
@@ -441,6 +436,7 @@ components:
|
|
441
436
|
description: Status of the descriptive element value relative to other instances
|
442
437
|
of the element.
|
443
438
|
type: string
|
439
|
+
# type: integer (uncomment when issue #154 is resolved)
|
444
440
|
code:
|
445
441
|
description: Code value of the descriptive element.
|
446
442
|
type: string
|
@@ -454,6 +450,11 @@ components:
|
|
454
450
|
encoding:
|
455
451
|
# description: Encoding schema, standard, or syntax to which the value conforms.
|
456
452
|
$ref: "#/components/schemas/Standard"
|
453
|
+
identifier:
|
454
|
+
description: Identifiers and URIs associated with the descriptive element.
|
455
|
+
type: array
|
456
|
+
items:
|
457
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
457
458
|
source:
|
458
459
|
$ref: "#/components/schemas/Source"
|
459
460
|
displayLabel:
|
@@ -506,7 +507,7 @@ components:
|
|
506
507
|
$ref: '#/components/schemas/Standard'
|
507
508
|
# description: An alphabet or other notation used to represent a
|
508
509
|
# language or other symbolic system of the descriptive element value.
|
509
|
-
|
510
|
+
Title:
|
510
511
|
type: object
|
511
512
|
additionalProperties: false
|
512
513
|
allOf:
|
@@ -691,6 +692,9 @@ components:
|
|
691
692
|
type:
|
692
693
|
description: Description of the event (creation, publication, etc.).
|
693
694
|
type: string
|
695
|
+
displayLabel:
|
696
|
+
description: The preferred display label to use for the event in access systems.
|
697
|
+
type: string
|
694
698
|
date:
|
695
699
|
description: Dates associated with the event.
|
696
700
|
type: array
|
@@ -706,6 +710,11 @@ components:
|
|
706
710
|
type: array
|
707
711
|
items:
|
708
712
|
$ref: "#/components/schemas/DescriptiveValue"
|
713
|
+
identifier:
|
714
|
+
description: Identifiers and URIs associated with the event.
|
715
|
+
type: array
|
716
|
+
items:
|
717
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
709
718
|
note:
|
710
719
|
description: Other information about the event.
|
711
720
|
type: array
|
@@ -871,17 +880,63 @@ components:
|
|
871
880
|
or part of a resource or its descriptive metadata.
|
872
881
|
type: object
|
873
882
|
additionalProperties: false
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
883
|
+
properties:
|
884
|
+
appliesTo:
|
885
|
+
type: array
|
886
|
+
items:
|
887
|
+
$ref: "#/components/schemas/DescriptiveBasicValue"
|
888
|
+
code:
|
889
|
+
description: Code value of the descriptive element.
|
890
|
+
type: string
|
891
|
+
displayLabel:
|
892
|
+
description: The preferred display label to use for the descriptive element in access systems.
|
893
|
+
type: string
|
894
|
+
encoding:
|
895
|
+
# description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
896
|
+
$ref: "#/components/schemas/Standard"
|
897
|
+
note:
|
898
|
+
description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
899
|
+
type: array
|
900
|
+
items:
|
901
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
902
|
+
parallelValue:
|
903
|
+
description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
904
|
+
type: array
|
905
|
+
items:
|
906
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
907
|
+
qualifier:
|
908
|
+
type: string
|
909
|
+
description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
910
|
+
script:
|
911
|
+
$ref: '#/components/schemas/DescriptiveValue'
|
912
|
+
# description: An alphabet or other notation used to represent a
|
913
|
+
# language or other symbolic system associated with the resource.
|
914
|
+
source:
|
915
|
+
$ref: "#/components/schemas/Source"
|
916
|
+
status:
|
917
|
+
description: Status of the contributor relative to other parallel contributors
|
918
|
+
(e.g. the primary author among a group of contributors).
|
919
|
+
type: string
|
920
|
+
enum:
|
921
|
+
- primary
|
922
|
+
standard:
|
923
|
+
# description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
924
|
+
$ref: "#/components/schemas/Standard"
|
925
|
+
structuredValue:
|
926
|
+
description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
927
|
+
type: array
|
928
|
+
items:
|
929
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
930
|
+
uri:
|
931
|
+
description: URI value of the descriptive element.
|
932
|
+
type: string
|
933
|
+
format: uri
|
934
|
+
value:
|
935
|
+
description: Value of the descriptive element.
|
936
|
+
type: string
|
937
|
+
valueLanguage:
|
938
|
+
# description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
939
|
+
$ref: "#/components/schemas/DescriptiveValueLanguage"
|
885
940
|
MessageDigest:
|
886
941
|
description: The output of the message digest algorithm.
|
887
942
|
type: object
|
@@ -918,6 +973,13 @@ components:
|
|
918
973
|
type:
|
919
974
|
description: The relationship of the related resource to the described resource.
|
920
975
|
type: string
|
976
|
+
status:
|
977
|
+
description: Status of the related resource relative to other related resources.
|
978
|
+
type: string
|
979
|
+
# type: integer
|
980
|
+
displayLabel:
|
981
|
+
description: The preferred display label to use for the related resource in access systems.
|
982
|
+
type: string
|
921
983
|
title:
|
922
984
|
description: Titles of the related resource.
|
923
985
|
type: array
|
@@ -936,7 +998,7 @@ components:
|
|
936
998
|
$ref: "#/components/schemas/Event"
|
937
999
|
form:
|
938
1000
|
description: Characteristics of the related resource's physical, digital, and intellectual
|
939
|
-
form and genre.
|
1001
|
+
form and genre, and of its process of creation.
|
940
1002
|
type: array
|
941
1003
|
items:
|
942
1004
|
$ref: "#/components/schemas/DescriptiveValue"
|
@@ -956,6 +1018,9 @@ components:
|
|
956
1018
|
type: array
|
957
1019
|
items:
|
958
1020
|
$ref: "#/components/schemas/DescriptiveValue"
|
1021
|
+
standard:
|
1022
|
+
# description: Descriptive or content standards to which the value conforms.
|
1023
|
+
$ref: "#/components/schemas/Standard"
|
959
1024
|
subject:
|
960
1025
|
description: Terms associated with the intellectual content of the related resource.
|
961
1026
|
type: array
|
@@ -967,6 +1032,9 @@ components:
|
|
967
1032
|
format: uri
|
968
1033
|
access:
|
969
1034
|
$ref: "#/components/schemas/DescriptiveAccessMetadata"
|
1035
|
+
version:
|
1036
|
+
description: The version of the related resource.
|
1037
|
+
type: string
|
970
1038
|
ReleaseTag:
|
971
1039
|
description: A tag that indicates the item or collection should be released.
|
972
1040
|
type: object
|
@@ -1234,6 +1302,9 @@ components:
|
|
1234
1302
|
type: array
|
1235
1303
|
items:
|
1236
1304
|
$ref: "#/components/schemas/DescriptiveValue"
|
1305
|
+
version:
|
1306
|
+
description: The version of the value source.
|
1307
|
+
type: string
|
1237
1308
|
SourceId:
|
1238
1309
|
type: string
|
1239
1310
|
pattern: '^.+:.+$'
|
@@ -1247,7 +1318,7 @@ components:
|
|
1247
1318
|
example: 'sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026'
|
1248
1319
|
Standard:
|
1249
1320
|
description: Property model for indicating the encoding, standard, or syntax
|
1250
|
-
to which a value conforms.
|
1321
|
+
to which a value conforms (e.g. RDA).
|
1251
1322
|
type: object
|
1252
1323
|
additionalProperties: false
|
1253
1324
|
properties:
|
@@ -1266,5 +1337,8 @@ components:
|
|
1266
1337
|
type: array
|
1267
1338
|
items:
|
1268
1339
|
$ref: "#/components/schemas/DescriptiveValue"
|
1340
|
+
version:
|
1341
|
+
description: The version of the standard or encoding.
|
1342
|
+
type: string
|
1269
1343
|
source:
|
1270
1344
|
$ref: "#/components/schemas/Source"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocina-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.41.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -271,7 +271,6 @@ files:
|
|
271
271
|
- lib/cocina/models/descriptive_structured_value.rb
|
272
272
|
- lib/cocina/models/descriptive_value.rb
|
273
273
|
- lib/cocina/models/descriptive_value_language.rb
|
274
|
-
- lib/cocina/models/descriptive_value_required.rb
|
275
274
|
- lib/cocina/models/dro.rb
|
276
275
|
- lib/cocina/models/dro_access.rb
|
277
276
|
- lib/cocina/models/dro_structural.rb
|
@@ -302,6 +301,7 @@ files:
|
|
302
301
|
- lib/cocina/models/source.rb
|
303
302
|
- lib/cocina/models/source_id.rb
|
304
303
|
- lib/cocina/models/standard.rb
|
304
|
+
- lib/cocina/models/title.rb
|
305
305
|
- lib/cocina/models/validator.rb
|
306
306
|
- lib/cocina/models/version.rb
|
307
307
|
- lib/cocina/models/vocab.rb
|
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
324
|
- !ruby/object:Gem::Version
|
325
325
|
version: '0'
|
326
326
|
requirements: []
|
327
|
-
rubygems_version: 3.
|
327
|
+
rubygems_version: 3.0.3
|
328
328
|
signing_key:
|
329
329
|
specification_version: 4
|
330
330
|
summary: Data models for the SDR
|