forked from OregonDigital/cdm2bag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapping.yml
261 lines (260 loc) · 7.94 KB
/
mapping.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
namespaces:
rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
rdfs: "http://www.w3.org/2000/01/rdf-schema#"
owl: "http://www.w3.org/2002/07/owl#"
skos: "http://www.w3.org/2004/02/skos/core#"
dct: "http://purl.org/dc/terms/"
dce: "http://purl.org/dc/elements/1.1/"
bibo: "http://purl.org/ontology/bibo/"
foaf: "http://xmlns.com/foaf/0.1/"
geo: "http://www.w3.org/2003/01/geo/wgs84_pos#"
frbr: "http://iflastandards.info/ns/fr/frbr/frbrer/"
mads: "http://www.loc.gov/mads/rdf/v1#"
marcrel: "http://id.loc.gov/vocabulary/relators/"
modsrdf: "http://www.loc.gov/standards/mods/modsrdf/v1/"
premis: "http://www.loc.gov/premis/rdf/v1#"
oregon: "http://opaquenamespace.org/ns/"
vra: "http://www.loc.gov/standards/vracore/vocab/"
aat: "http://vocab.getty.edu/resource/aat/"
##
# METHODS:
#
# *xsd_date - converts date to yyyy-mm-dd format and serializes it as a literal of type xsd:date
# *dc_date - uses dcterms:date and a string value
# *dc_created - uses dcterms:created and a string value
# *dc_modified - uses dcterms:modified and a string value
# *iso_lanugage - converts two and three letter language codes (;-delimited) into LoC ISO 639 URIs.
# *rights - tries to identify EU rights, CC Licenses, and OregonDigital (opaque namespace) rights statements.
# *type - splits ;-delimited types and identifies dcmitype for each.
# *mime - converts string mimetype into a purl.org/NET/mediatypes uri
# *geographic - attempts to identify a geonames URI locations in field. Will strip "(Ore.)" from string before searching. (probably needs honing, check data in bags before ingest).
# *geopup -
# *aat -
# *att_sheetmusic - ignores data, adds rdf:type of 'sheet music' uri from aat.
# *att_format - matches data to either 'silver gelatin print', 'film negative', or ... in aat; adds appropriate rdf:type statement
# *lc_subject -
# *dc_subject_lc -
# *cover -
# *collection -
# *dc_subject_lcna -
# *replace - (unnecessary) converts dmrecord field into an OregonDigital ContentDM url. This happens whether dmrecord is included in field list or not.
mappings:
#
# braceros
#
bracero:
title: dct:title
creato: marcrel:pht
date:
method: dc_date
descri: dct:description
subjec:
method: lc_subject
covera:
method: geographic
object:
method: type
type:
method: aat_format
source:
method: collection
relate: SKIP
identi: dct:identifier
other: # what?
rights:
method: rights
format: oregon:conversionSpecifications
file: SKIP
dmaccess: SKIP
dmimage: SKIP
dmcreated:
method: dc_created
dmmodified:
method: dc_modified
fullrs: oregon:full
date_of_publication:
method: dc_date
dmrecord:
method: replace # dmrecord has CDM number used in old CDM URL dct:replaces https://oregondigital.org/u?/folklore,5322
# find: premis:hasOriginalName # domain is the union of premis:File and premis:Representation; range is xsd:string (ignoring this, using plain literals)
#
# afpep
#
afpep:
work:
method: aat # vra:workType class not a property; uses Getty AAT cv in rdf:type
title: dct:title
view: oregon:cco/viewDescription
creato: dct:creator
politi: dct:contributor
date:
method: dc_date
earlie: vra:earliestDate
latest: vra:latestDate
subject:
method: dc_subject_lc # field also contains lc names as subjects and lcsh
cultur: vra:culturalContext
countr:
method: geographic
region: dct:coverage
locati: dct:provenance
measur: vra:measurements
descri: dct:description
inscri: vra:inscription
langua:
method: iso_language
relati: dct:hasPart
type:
method: type
format:
method: mime
identi: dct:identifier
rights:
method: rights # cc licenses for all by-nc-nd , later look at lc.rightsbasis
digiti: oregon:conversionSpecifications
digita: oregon:isPartOf/set
full: oregon:fullText
contri: oregon:contributingInstitution
fullrs: oregon:full # some items in collection PDF, so no data in this field
find: SKIP
dmaccess: SKIP
dmimage: SKIP
dmad1: SKIP
dmad2: SKIP
dmoclcno: SKIP
dmcreated: SKIP
dmmodified: SKIP
dmrecord:
method: replace # dmrecord has CDM number used in old CDM URL dct:replaces https://oregondigital.org/u?/folklore,5322
#
# sheet music
#
sheetmusic:
title: dct:title
creato: dct:creator
captio: oregon:captionTitle # subproperty of dct:alternative, schema.org has caption for images and video only, not in sheetmusic dd
other: dct:alternative
composer: marcrel:cmp
lyrici: marcrel:lyr
arrang: marcrel:arr
origib:
method: geopup # marcrel:pup, street-level info., geonamesify this!
publis: dct:publisher
origin: marcrel:cpc
date: dct:issued
physic: modsrdf:physicalExtent
perfor: oregon:sheetmusic/instrumentation
descri: dct:description
subjec:
method: dc_subject_lc # uses LCSH and LC Names
genre:
method: aat_sheetmusic # vra:workType class, use AAT, always "sheet music" for this collection
cover:
method: cover # create oregon:coverDescription, not in sheetmusic dd, so don't want to put under sheetmusic.
illust: marcrel:ill
lithog: marcrel:prm
sourca:
method: aat # vra:workType, new VRA may have workType as class, add as second workType entry if present (e.g. lithographs)
first: oregon:sheetmusic/firstLine
firsa: oregon:sheetmusic/firsLineChorus
relati: oregon:sheetmusic/largerWork
publia: oregon:sheetmusic/hostItem
theme: oregon:exhibit # curated set, terms LC Subject, different from oregon:set?
source: mods:locationCopySublocation
reposi:
method: collection # use aat:collections concept as dc:isPartof
identi: modsrdf:locationCopyShelfLocator
rights:
method: rights
contac: SKIP
type:
method: type
format:
method: mime
digiti: SKIP
data: oregon:dateDigitized
image: SKIP
metada: SKIP
digita: oregon:set
contri: oregon:contributingInstitution
fullrs: SKIP
# oregon:full will need to be scripted, CDM doesn't track file paths for PDF files
dmoclcno: SKIP
dmaccess: SKIP
find: oregon:full # coordinating file in CDM
dmcreated: SKIP
dmmodified: SKIP
dmrecord:
method: replace # dmrecord has CDM number used in old CDM URL dct:replaces
#
# folklore
#
folklore:
collec:
method: collection # need to add to dc:isPartOfis
collea: SKIP
title: dct:title
photo: modsrdf:locationCopyShelfLocator
photoa: dc:date
colleb: aat:collectors # aat concept of type of agent
contri: dct:contributor
descri: dct:description
inscri: vra:inscription
langua:
method: language
notes: modsrdf:note
subjec:
method: dc_subject_lcna
subjea:
method: dc_subject_lcna
contra: dct:spatial
subjed: vra:culture
subjee: SKIP
subjef: SKIP
sebjeg: oregon:ethnot
segjeh: oregon:keywords
resour:
method: aat #workType, some might not be in AAT and may need to be changed
relati: SKIP
subjeb: SKIP
reposi: marcrel:rps
source: SKIP
rights:
method: rights
record: SKIP
type:
method: type
format:
method: format
catalo: SKIP
identi: dct:identifier #use to match file names in directories
digita: oregon:set
contri: oregon:contributingInstitution
fullrs: SKIP # didn't work for this collection
find: SKIP
dmcreated: SKIP
dmmodified: SKIP
dmrecord:
method: replace # dmrecord has CDM number used in old CDM URL dct:replaces
#
# siuslaw
#
siuslaw:
identi: dct:identifier
title: dct:title
creato: marcrel:pht
date:
method: dc_date
descri: dct:description
subjec:
method: lc_subject
#
# baseball
#
baseball:
title: dct:title
academ: dct:date
type:
method: type
format:
method: aat_format