Published April 26, 2019 | Version v1

Mapping DDI 2 to DDI 4

  • 1. Institute for Policy and Social Research, University of Kansas
  • 2. GESIS, Leibniz Institute for the Social Sciences

Description

This poster describes the effort to add a DDI-Codebook (DDI-C) import function into the DDI 4 R package.

The DDI 4 Codebook Group did a lot of the modelling of one section of DDI 4 using a spreadsheet that mapped DDI-C elements into DDI 4 properties. This started with a list of elements used by the Consortium of European Social Science Data Archives (CESSDA) and was refined at the Norway Sprint in Knutholmen in May 2016. Unfortunately, these mappings were not always at the leaf-node level.

An R program also imported DDI-C XML from the European Social Survey and generated a list of unique XPaths of leaf elements used in that set of metadata. These elements, along with corresponding DDI 4 leaf paths, were used to update the spreadsheet.

This spreadsheet has been further refined to create an actionable table mapping DDI-C leaf values to leaf properties in DDI 4. Writing code to import the DDI-C required the following additional information:

  • the mapping of DDI-C sub-paths to DDI 4 identifiable classes (e.g., all of the information for one DDI-C var map to one DDI 4 identifiable variable)
  • the mapping of abstract target classes to specific extensions
  • additional semantic property values, such as type of methodology.

Importing DDI-C into a lifecycle-level version of DDI (e.g., DDI 4) also involves identifying repeated metadata, such as reused value domains (e.g., reused Likertstyle code lists) that are repeated for multiple variables. An R function served to do this sort of matching using the R “all.equal” function, excluding differences in agency, ID and version.

Files

HoyleAndWackerowMappingDDi2ToDDI4.pdf

Files (223.4 kB)

Name Size
md5:662fa6ff43c7e66a73533ee46bbb2ed0
223.4 kB Preview Download