cocina-models 0.75.0 → 0.78.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +40 -12
  3. data/.rubocop_todo.yml +71 -2
  4. data/README.md +41 -5
  5. data/cocina-models.gemspec +2 -0
  6. data/description_types.yml +167 -38
  7. data/docs/description_types.md +471 -216
  8. data/lib/cocina/generator/generator.rb +7 -12
  9. data/lib/cocina/generator/schema.rb +1 -3
  10. data/lib/cocina/generator/schema_base.rb +0 -8
  11. data/lib/cocina/generator/schema_ref.rb +1 -1
  12. data/lib/cocina/generator/schema_value.rb +14 -4
  13. data/lib/cocina/models/access.rb +4 -4
  14. data/lib/cocina/models/admin_policy.rb +1 -1
  15. data/lib/cocina/models/admin_policy_access_template.rb +7 -7
  16. data/lib/cocina/models/admin_policy_administrative.rb +1 -1
  17. data/lib/cocina/models/admin_policy_with_metadata.rb +3 -3
  18. data/lib/cocina/models/builders/name_title_group_builder.rb +0 -4
  19. data/lib/cocina/models/builders/title_builder.rb +0 -2
  20. data/lib/cocina/models/citation_only_access.rb +2 -2
  21. data/lib/cocina/models/collection_access.rb +4 -4
  22. data/lib/cocina/models/collection_identification.rb +1 -1
  23. data/lib/cocina/models/collection_with_metadata.rb +2 -2
  24. data/lib/cocina/models/contributor.rb +4 -4
  25. data/lib/cocina/models/controlled_digital_lending_access.rb +2 -2
  26. data/lib/cocina/models/dark_access.rb +4 -4
  27. data/lib/cocina/models/description.rb +3 -3
  28. data/lib/cocina/models/descriptive_basic_value.rb +13 -13
  29. data/lib/cocina/models/descriptive_parallel_contributor.rb +5 -5
  30. data/lib/cocina/models/descriptive_parallel_event.rb +3 -3
  31. data/lib/cocina/models/descriptive_value.rb +13 -13
  32. data/lib/cocina/models/descriptive_value_language.rb +6 -6
  33. data/lib/cocina/models/dro.rb +1 -1
  34. data/lib/cocina/models/dro_access.rb +8 -8
  35. data/lib/cocina/models/dro_with_metadata.rb +3 -3
  36. data/lib/cocina/models/embargo.rb +5 -5
  37. data/lib/cocina/models/event.rb +3 -3
  38. data/lib/cocina/models/file.rb +4 -4
  39. data/lib/cocina/models/file_access.rb +4 -4
  40. data/lib/cocina/models/identification.rb +2 -2
  41. data/lib/cocina/models/language.rb +12 -12
  42. data/lib/cocina/models/location_based_access.rb +1 -1
  43. data/lib/cocina/models/location_based_download_access.rb +1 -1
  44. data/lib/cocina/models/mapping/error_notifier.rb +36 -0
  45. data/lib/cocina/models/mapping/from_mods/access.rb +177 -0
  46. data/lib/cocina/models/mapping/from_mods/admin_metadata.rb +217 -0
  47. data/lib/cocina/models/mapping/from_mods/alt_rep_group.rb +26 -0
  48. data/lib/cocina/models/mapping/from_mods/authority.rb +51 -0
  49. data/lib/cocina/models/mapping/from_mods/contributor.rb +161 -0
  50. data/lib/cocina/models/mapping/from_mods/description.rb +98 -0
  51. data/lib/cocina/models/mapping/from_mods/description_builder.rb +61 -0
  52. data/lib/cocina/models/mapping/from_mods/event.rb +543 -0
  53. data/lib/cocina/models/mapping/from_mods/form.rb +381 -0
  54. data/lib/cocina/models/mapping/from_mods/geographic.rb +219 -0
  55. data/lib/cocina/models/mapping/from_mods/hydrus_default_title_builder.rb +28 -0
  56. data/lib/cocina/models/mapping/from_mods/identifier.rb +51 -0
  57. data/lib/cocina/models/mapping/from_mods/identifier_builder.rb +71 -0
  58. data/lib/cocina/models/mapping/from_mods/identifier_type.rb +292 -0
  59. data/lib/cocina/models/mapping/from_mods/language.rb +36 -0
  60. data/lib/cocina/models/mapping/from_mods/language_script.rb +30 -0
  61. data/lib/cocina/models/mapping/from_mods/language_term.rb +106 -0
  62. data/lib/cocina/models/mapping/from_mods/name_builder.rb +307 -0
  63. data/lib/cocina/models/mapping/from_mods/note.rb +162 -0
  64. data/lib/cocina/models/mapping/from_mods/part_builder.rb +147 -0
  65. data/lib/cocina/models/mapping/from_mods/primary.rb +27 -0
  66. data/lib/cocina/models/mapping/from_mods/purl.rb +53 -0
  67. data/lib/cocina/models/mapping/from_mods/related_resource.rb +105 -0
  68. data/lib/cocina/models/mapping/from_mods/subject.rb +413 -0
  69. data/lib/cocina/models/mapping/from_mods/subject_authority_codes.rb +794 -0
  70. data/lib/cocina/models/mapping/from_mods/title.rb +160 -0
  71. data/lib/cocina/models/mapping/from_mods/title_builder.rb +106 -0
  72. data/lib/cocina/models/mapping/from_mods/title_builder_strategy.rb +19 -0
  73. data/lib/cocina/models/mapping/from_mods/value_uri.rb +25 -0
  74. data/lib/cocina/models/mapping/normalizers/base.rb +16 -0
  75. data/lib/cocina/models/mapping/normalizers/mods/geo_extension_normalizer.rb +69 -0
  76. data/lib/cocina/models/mapping/normalizers/mods/name_normalizer.rb +191 -0
  77. data/lib/cocina/models/mapping/normalizers/mods/origin_info_normalizer.rb +157 -0
  78. data/lib/cocina/models/mapping/normalizers/mods/subject_normalizer.rb +296 -0
  79. data/lib/cocina/models/mapping/normalizers/mods/title_normalizer.rb +91 -0
  80. data/lib/cocina/models/mapping/normalizers/mods_normalizer.rb +409 -0
  81. data/lib/cocina/models/mapping/purl.rb +27 -0
  82. data/lib/cocina/models/mapping/to_mods/access.rb +155 -0
  83. data/lib/cocina/models/mapping/to_mods/admin_metadata.rb +129 -0
  84. data/lib/cocina/models/mapping/to_mods/contributor.rb +49 -0
  85. data/lib/cocina/models/mapping/to_mods/description.rb +63 -0
  86. data/lib/cocina/models/mapping/to_mods/event.rb +200 -0
  87. data/lib/cocina/models/mapping/to_mods/form.rb +292 -0
  88. data/lib/cocina/models/mapping/to_mods/geographic.rb +151 -0
  89. data/lib/cocina/models/mapping/to_mods/id_generator.rb +25 -0
  90. data/lib/cocina/models/mapping/to_mods/identifier.rb +57 -0
  91. data/lib/cocina/models/mapping/to_mods/language.rb +82 -0
  92. data/lib/cocina/models/mapping/to_mods/mods_writer.rb +38 -0
  93. data/lib/cocina/models/mapping/to_mods/name_title_group.rb +29 -0
  94. data/lib/cocina/models/mapping/to_mods/name_writer.rb +228 -0
  95. data/lib/cocina/models/mapping/to_mods/note.rb +105 -0
  96. data/lib/cocina/models/mapping/to_mods/part_writer.rb +115 -0
  97. data/lib/cocina/models/mapping/to_mods/related_resource.rb +108 -0
  98. data/lib/cocina/models/mapping/to_mods/role_writer.rb +50 -0
  99. data/lib/cocina/models/mapping/to_mods/subject.rb +486 -0
  100. data/lib/cocina/models/mapping/to_mods/title.rb +260 -0
  101. data/lib/cocina/models/object_metadata.rb +2 -2
  102. data/lib/cocina/models/presentation.rb +2 -2
  103. data/lib/cocina/models/related_resource.rb +9 -9
  104. data/lib/cocina/models/release_tag.rb +4 -4
  105. data/lib/cocina/models/request_admin_policy.rb +1 -1
  106. data/lib/cocina/models/request_administrative.rb +1 -1
  107. data/lib/cocina/models/request_collection.rb +2 -2
  108. data/lib/cocina/models/request_description.rb +3 -3
  109. data/lib/cocina/models/request_dro.rb +4 -4
  110. data/lib/cocina/models/request_file.rb +5 -5
  111. data/lib/cocina/models/request_identification.rb +1 -1
  112. data/lib/cocina/models/sequence.rb +1 -1
  113. data/lib/cocina/models/source.rb +4 -4
  114. data/lib/cocina/models/standard.rb +5 -5
  115. data/lib/cocina/models/stanford_access.rb +2 -2
  116. data/lib/cocina/models/title.rb +13 -13
  117. data/lib/cocina/models/validators/dark_validator.rb +4 -2
  118. data/lib/cocina/models/validators/description_values_validator.rb +77 -0
  119. data/lib/cocina/models/validators/open_api_validator.rb +0 -4
  120. data/lib/cocina/models/validators/validator.rb +2 -1
  121. data/lib/cocina/models/version.rb +1 -1
  122. data/lib/cocina/models/world_access.rb +2 -2
  123. data/lib/cocina/models.rb +4 -0
  124. data/lib/cocina/rspec/factories.rb +205 -0
  125. data/lib/cocina/rspec.rb +2 -0
  126. data/openapi.yml +5 -5
  127. metadata +89 -17
  128. data/docs/_config.yml +0 -1
  129. data/docs/maps/Agent.json +0 -18
  130. data/docs/maps/Collection.json +0 -240
  131. data/docs/maps/DRO.json +0 -316
  132. data/docs/maps/Description.json +0 -17
  133. data/docs/maps/File.json +0 -196
  134. data/docs/maps/Fileset.json +0 -143
  135. data/docs/maps/README.md +0 -7
  136. data/docs/maps/ReleaseTag.json +0 -39
  137. data/docs/maps/Sequence.json +0 -46
  138. data/docs/maps/Title.json +0 -18
  139. data/docs/sampleETD/foxml-export.xml +0 -935
  140. data/docs/sampleETD/foxml.xml +0 -3475
  141. data/docs/sampleETD/xn109qc9773_bibframe.ttl +0 -95
  142. data/docs/sampleETD/xn109qc9773_taco.json +0 -158
@@ -1,95 +0,0 @@
1
- :xn109qc9773_work a bf:Work , bf:Text ;
2
- rdfs:label "From superteacher to 'bad teacher': goals 2000, comic book films, and changing depictions of educators in the movies" ;
3
- bf:title [ a bf:Title ;
4
- bf:mainTitle "From superteacher to 'bad teacher'" ;
5
- bf:subTitle "goals 2000, comic book films, and changing depictions of educators in the movies"
6
- ] ;
7
- bf:contribution [ a bf:Contribution ;
8
- bf:agent [ a bf:Agent , bf:Person ;
9
- rdfs:label "Grant, Derisa"
10
- ] ;
11
- ] ;
12
- bf:contribution [ a bf:Contribution ;
13
- bf:agent [ a bf:Agent , bf:Person ;
14
- rdfs:label "Labaree, David F., 1947-"
15
- ] ;
16
- bf:role [ a bf:Role ;
17
- rdfs:label "primary advisor"
18
- ] ;
19
- bf:role <http://id.loc.gov/vocabulary/relators/ths>
20
- ] ;
21
- bf:contribution [ a bf:Contribution ;
22
- bf:agent [ a bf:Agent , bf:Person ;
23
- rdfs:label "McDermott, Ray"
24
- ] ;
25
- bf:role [ a bf:Role ;
26
- rdfs:label "advisor"
27
- ] ;
28
- bf:role <http://id.loc.gov/vocabulary/relators/ths>
29
- ] ;
30
- bf:contribution [ a bf:Contribution ;
31
- bf:agent [ a bf:Agent , bf:Person ;
32
- rdfs:label "Willinsky, John, 1950-"
33
- ] ;
34
- bf:role [ a bf:Role ;
35
- rdfs:label "advisor"
36
- ] ;
37
- bf:role <http://id.loc.gov/vocabulary/relators/ths>
38
- ] ;
39
- bf:contribution [ a bf:Contribution ;
40
- bf:agent [ a bf:Agent , bf:Organization ;
41
- rdfs:label "Stanford University. Graduate School of Education"
42
- ]
43
- ]
44
- bf:genreForm [ a bf:GenreForm ;
45
- rdfs:label "theses" ;
46
- bf:source [ a bf:Source ;
47
- bf:code "marcgt"
48
- ]
49
- ] ;
50
- bf:language <http://id.loc.gov/vocabulary/iso639-2/eng> ;
51
- bf:summary [ a bf:Summary ;
52
- rdfs:label "Since 1939, 46 eddies, or fictional movies about primary or secondary schooling that foreground a teacher..."
53
- ] ;
54
- bf:dissertation [ a bf:Dissertation ;
55
- rdfs:label "Thesis (Ph.D.)--Stanford University, 2015."
56
- ]
57
- ] .
58
-
59
- :xn109qc9773_instance a bf:Instance ;
60
- rdfs:label "From superteacher to 'bad teacher': goals 2000, comic book films, and changing depictions of educators in the movies" ;
61
- bf:title [ a bf:Title ;
62
- bf:mainTitle "From superteacher to 'bad teacher'" ;
63
- bf:subTitle "goals 2000, comic book films, and changing depictions of educators in the movies"
64
- ] ;
65
- bf:provisionActivity [ a bf:ProvisionActivity , a bf:Publication ;
66
- bf:date "2015" ;
67
- bf:place [ a bf:Place ;
68
- bf:code "xx" ;
69
- bf:source [ a bf:Source ;
70
- bf:code "marccountry"
71
- ] ;
72
- ] ;
73
- bf:issuance <http://id.loc.gov/vocabulary/issuance/mono>
74
- ] ;
75
- bf:carrier [ a bf:Carrier ;
76
- rdfs:label "digital"
77
- ] ;
78
- bf:extent [ a bf:Extent ;
79
- rdfs:label "1 online resource"
80
- ] ;
81
- bf:note [ a bf:Note ;
82
- rdfs:label "Submitted to the Graduate School of Education."
83
- ] ;
84
- bf:responsibilityStatement "Derisa Grant."
85
- ] .
86
-
87
- :xn109qc9773_item [ a bf:Item ;
88
- bf:electronicLocator [ a rdf:Resource ;
89
- rdf:value <https://purl.stanford.edu/xn109qc9773> ;
90
- bf:note [ a bf:Note ;
91
- rdfs:label "primary display" ;
92
- bf:noteType "URL usage"
93
- ]
94
- ]
95
- ] .
@@ -1,158 +0,0 @@
1
- { "version": "1.0",
2
- "lastUpdated": "2018-11-13",
3
- "druid": "xn109qc9773",
4
- "descriptiveMetadata": {
5
- "title": [{
6
- "primary": "TRUE",
7
- "titleParts": [
8
- {"mainTitle": "From superteacher to 'bad teacher'"},
9
- {"subTitle": "goals 2000, comic book films, and changing depictions of educators in the movies"}
10
- ],
11
- "titleFull": "From superteacher to 'bad teacher': goals 2000, comic book films, and changing depictions of educators in the movies",
12
- "titleBrief": "From superteacher to 'bad teacher'"
13
- }],
14
- "origin": [
15
- {
16
- "primary": "TRUE",
17
- "event": "creation",
18
- "agent": [{
19
- "type": "personal",
20
- "name": {
21
- "nameFromSource": "Grant, Derisa",
22
- "lastName": "Grant",
23
- "firstName": "Derisa"
24
- }
25
- }]
26
- },
27
- {
28
- "event": "creation",
29
- "agent": [{
30
- "type": "personal",
31
- "name": {
32
- "nameFromSource": "Labaree, David F.",
33
- "lastName": "Labaree",
34
- "firstName": "David F.",
35
- "nameDate": {
36
- "type": "life",
37
- "startDate": "1947",
38
- "endDate": "open"
39
- }
40
- }
41
- }],
42
- "role": [
43
- {"roleTerm": "primary advisor"},
44
- {
45
- "roleTerm": "thesis advisor",
46
- "roleAuthority": "marcrelator",
47
- "roleValueURI": "http://id.loc.gov/vocabulary/relators/ths"
48
- }
49
- ]
50
- },
51
- {
52
- "event": "creation",
53
- "agent": [{
54
- "type": "personal",
55
- "name": {
56
- "nameFromSource": "McDermott, Ray",
57
- "lastName": "McDermott",
58
- "firstName": "Ray"
59
- }
60
- }],
61
- "role": [
62
- {"roleTerm": "advisor"},
63
- {
64
- "roleTerm": "thesis advisor",
65
- "roleAuthority": "marcrelator",
66
- "roleValueURI": "http://id.loc.gov/vocabulary/relators/ths"
67
- }
68
- ]
69
- },
70
- {
71
- "event": "creation",
72
- "agent": [{
73
- "type": "personal",
74
- "name": {
75
- "nameFromSource": "Willinsky, John",
76
- "lastName": "Willinsky",
77
- "firstName": "John",
78
- "nameDate": {
79
- "type": "life",
80
- "startDate": "1950",
81
- "endDate": "open"
82
- }
83
- }
84
- }],
85
- "role": [
86
- {"roleTerm": "advisor"},
87
- {
88
- "roleTerm": "thesis advisor",
89
- "roleAuthority": "marcrelator",
90
- "roleValueURI": "http://id.loc.gov/vocabulary/relators/ths"
91
- }
92
- ]
93
- },
94
- {
95
- "event": "creation",
96
- "agent": [{
97
- "type": "corporate",
98
- "name": {"nameParts": [
99
- "Stanford University",
100
- "Graduate School of Education"
101
- ]}
102
- }]
103
- },
104
- {
105
- "event": "publication",
106
- "place": [{
107
- "code": "xx",
108
- "authority": "marccountry"
109
- }],
110
- "date": {"singleDate": "2015"},
111
- "periodicity": [{
112
- "value": "monographic",
113
- "vocabulary": "MODS issuance"
114
- }]
115
- }
116
- ],
117
- "typeOfResource": [{
118
- "typeOfResourceTerm": "text",
119
- "authority": "MODS typeOfResource"
120
- }],
121
- "genre": [{
122
- "genreTerm": "theses",
123
- "authority": "marcgt"
124
- }],
125
- "language": [{
126
- "languageTerm": "English",
127
- "languageAuthority": "iso639-2b",
128
- "languageValueURI": "http://id.loc.gov/vocabulary/iso639-2/eng"
129
- }],
130
- "form": {
131
- "appliesTo": "resource",
132
- "medium": "digital",
133
- "extent": {
134
- "extentStatement": "1 online resource",
135
- "extentNumber": 1,
136
- "extentUnit": "online resource"
137
- }
138
- },
139
- "access": ["online"],
140
- "abstract": "Since 1939, 46 eddies, or fictional movies about primary or secondary schooling that foreground a teacher, have been released in the United States. From the 1950s through the 1990s, eddies often featured two interconnected and dominant tropes: the separation of home and school, and a superteacher, or a dedicated educator who uses unconventional teaching methods. However, many of the eddies made after 2000 blur or wholly erase the boundary between home and school, and nearly half of the 15 eddies made after 2000 feature unsavory or morally ambiguous teacher protagonists. This dissertation explores the contexts surrounding the genre's shift in tropes, and asserts that changes in eddies coincide with broader changes within the film industry, as well as with changes in educational policy and rhetoric. Specifically, generic changes in eddies coincide with the rise of the comic book film in the early 2000s, and President Bill Clinton's 1994 Goals 2000: Educate America Act, through which the Clinton administration framed education reform as a systemic problem requiring federal interventions and gained the public's support for federally led reforms. By the early 2000s, caped crusaders had begun proving lucrative at the box office, and the federal government had gained unprecedented traction in schools. Concurrently, the cinematic teacher--with no mask, no cape, and no federal authority&#x2014;was increasingly depicted as a drug addict, a coward, or a cheater who brought the dysfunction of her home life into the classroom.",
141
- "note": [
142
- {"value": "Submitted to the Graduate School of Education."},
143
- {
144
- "type": "thesis",
145
- "value": "Thesis (Ph.D.)--Stanford University, 2015."
146
- },
147
- {
148
- "type": "statementOfResponsibility",
149
- "value": "Derisa Grant."
150
- }
151
- ],
152
- "accessURL": [{
153
- "type": "purl",
154
- "url": "https://purl.stanford.edu/xn109qc9773",
155
- "primary": "TRUE"
156
- }]
157
- }
158
- }