Class: GeoblacklightAdmin::FieldMappingsBtaaAardvark

Inherits:
Object
  • Object
show all
Defined in:
app/models/geoblacklight_admin/field_mappings_btaa_aardvark.rb

Class Method Summary collapse

Class Method Details

.callObject



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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
# File 'app/models/geoblacklight_admin/field_mappings_btaa_aardvark.rb', line 7

def self.call
  {
    dct_title_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:title],
      delimited: false,
      transformation_method: nil
    },
    dct_alternative_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:alternative_title],
      delimited: true,
      transformation_method: nil
    },
    dct_description_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:description],
      delimited: true,
      transformation_method: nil
    },
    dct_language_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:language],
      delimited: true,
      transformation_method: nil
    },
    dct_creator_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:creator],
      delimited: true,
      transformation_method: nil
    },
    dct_publisher_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:publisher],
      delimited: true,
      transformation_method: nil
    },
    schema_provider_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:provider],
      delimited: false,
      transformation_method: nil
    },
    gbl_resourceClass_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_class],
      delimited: true,
      transformation_method: nil
    },
    gbl_resourceType_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_type],
      delimited: true,
      transformation_method: nil
    },
    dct_subject_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:subject],
      delimited: true,
      transformation_method: nil
    },
    dcat_theme_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:theme],
      delimited: true,
      transformation_method: nil
    },
    dcat_keyword_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:keyword],
      delimited: true,
      transformation_method: nil
    },
    dct_temporal_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:temporal_coverage],
      delimited: true,
      transformation_method: nil
    },
    dct_issued_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_issued],
      delimited: false,
      transformation_method: nil
    },
    gbl_dateRange_drsim: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_range],
      delimited: true,
      transformation_method: nil
    },
    dct_spatial_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:spatial_coverage],
      delimited: true,
      transformation_method: nil
    },
    locn_geometry: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:geometry],
      delimited: false,
      transformation_method: nil
    },
    dcat_bbox: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:bounding_box],
      delimited: false,
      transformation_method: nil
    },
    b1g_geonames_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:geonames],
      delimited: true,
      transformation_method: nil
    },
    dct_relation_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:relation],
      delimited: true,
      transformation_method: nil
    },
    pcdm_memberOf_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:member_of],
      delimited: true,
      transformation_method: nil
    },
    dct_isPartOf_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:is_part_of],
      delimited: true,
      transformation_method: nil
    },
    dct_source_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:source],
      delimited: true,
      transformation_method: nil
    },
    dct_isVersionOf_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:is_version_of],
      delimited: true,
      transformation_method: nil
    },
    dct_replaces_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:replaces],
      delimited: true,
      transformation_method: nil
    },
    dct_isReplacedBy_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:is_replaced_by],
      delimited: true,
      transformation_method: nil
    },
    dct_format_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:format],
      delimited: false,
      transformation_method: nil
    },
    gbl_fileSize_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:file_size],
      delimited: false,
      transformation_method: nil
    },
    gbl_wxsIdentifier_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:wxs_identifier],
      delimited: false,
      transformation_method: nil
    },
    gbl_georeferenced_b: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:georeferenced],
      delimited: false,
      transformation_method: nil
    },
    dct_references_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:reference],
      delimited: false,
      transformation_method: "build_dct_references"
    },
    b1g_image_ss: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:b1g_image_url],
      delimited: false,
      transformation_method: nil
    },
    geomg_id_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:id],
      delimited: false,
      transformation_method: nil
    },
    dct_identifier_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:identifier],
      delimited: true,
      transformation_method: nil
    },
    b1g_code_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:code],
      delimited: false,
      transformation_method: nil
    },

    layer_geom_type_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:resource_type],
      delimited: false,
      transformation_method: nil
    },
    dc_rights_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:rights],
      delimited: true,
      transformation_method: nil
    },
    dct_rightsHolder_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:right_holder],
      delimited: true,
      transformation_method: nil
    },
    dct_license_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:license],
      delimited: true,
      transformation_method: nil
    },
    dct_accessRights_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:access_right],
      delimited: false,
      transformation_method: nil
    },
    b1g_dct_accrualMethod_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:accrual_method],
      delimited: false,
      transformation_method: nil
    },
    b1g_dct_accrualPeriodicity_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:accrual_periodicity],
      delimited: false,
      transformation_method: nil
    },
    b1g_dateAccessioned_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_accessioned],
      delimited: true,
      transformation_method: nil
    },
    b1g_dateRetired_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:date_retired],
      delimited: false,
      transformation_method: nil
    },
    b1g_status_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:status],
      delimited: false,
      transformation_method: nil
    },
    gbl_suppressed_b: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:suppressed_record],
      delimited: false,
      transformation_method: nil
    },
    b1g_child_record_b: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:child_record],
      delimited: false,
      transformation_method: nil
    },
    b1g_dct_mediator_sm: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:mediator],
      delimited: false,
      transformation_method: nil
    },
    b1g_access_s: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:access],
      delimited: false,
      transformation_method: nil
    },
    gbl_mdVersion_s: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    gbl_indexYear_im: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:index_year],
      delimited: false,
      transformation_method: nil
    },
    gbl_mdModified_dt: {
      destination: GeoblacklightAdmin::Schema.instance.solr_fields[:updated_at],
      delimited: false,
      transformation_method: nil
    },
    score: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__maxX: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__minX: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__maxY: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    solr_bboxtype__minY: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    timestamp: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    _version_: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    cugir_category_sm: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    b1g_centroid_ss: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    dcat_centroid: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    nyu_addl_dspace_s: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    georss_polygon_s: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    cugir_addl_downloads_s: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    cugir_filesize_s: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    },
    stanford_rights_metadata_s: {
      destination: "Discard",
      delimited: false,
      transformation_method: nil
    }
  }
end

.uri_2_category_references_mappingsObject



353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
# File 'app/models/geoblacklight_admin/field_mappings_btaa_aardvark.rb', line 353

def self.uri_2_category_references_mappings
  ActiveSupport::HashWithIndifferentAccess.new({
    "http://www.opengis.net/def/serviceType/ogc/wcs": "wcs",
    "http://www.opengis.net/def/serviceType/ogc/wms": "wms",
    "http://www.opengis.net/def/serviceType/ogc/wfs": "wfs",
    "http://iiif.io/api/image": "iiif_image",
    "http://iiif.io/api/presentation#manifest": "iiif_manifest",
    "http://schema.org/image": "image",
    "http://schema.org/downloadUrl": "download",
    "http://schema.org/thumbnailUrl": "thumbnail",
    "http://lccn.loc.gov/sh85035852": "documentation_download",
    "http://schema.org/url": "documentation_external",
    "http://www.isotc211.org/schemas/2005/gmd/": "metadata_iso",
    "http://www.opengis.net/cat/csw/csdgm": "metadata_fgdc",
    "http://www.loc.gov/mods/v3": "metadata_mods",
    "http://www.w3.org/1999/xhtml": "metadata_html",
    "urn:x-esri:serviceType:ArcGIS#FeatureLayer": "arcgis_feature_layer",
    "urn:x-esri:serviceType:ArcGIS#TiledMapLayer": "arcgis_tiled_map_layer",
    "urn:x-esri:serviceType:ArcGIS#DynamicMapLayer": "arcgis_dynamic_map_layer",
    "urn:x-esri:serviceType:ArcGIS#ImageMapLayer": "arcgis_image_map_layer",
    "http://schema.org/DownloadAction": "harvard",
    "https://openindexmaps.org": "open_index_map",
    "https://oembed.com": "oembed"
  })
end