======================
= Readme mapping.zip =
======================
Version: 01.06.2026


- Contents of mapping.zip -
This zip file consists of mapping.json and mapping.xml. For convenience, the mapping.json is taken as a starting point in this readme. The XML version is set up according to the same principles and contains the same fields as the JSON version.

- Intermediate format - 
The mapping file consists of all entities and attributes from AFD 1.0, and their corresponding labels in AFD 2.0. Attributes that are new in AFD 2.0 have a newly added corresponding AFD 1.0 attribute in traditional format: for example MDATID (1.0) for masterDataId (2.0).

The mapping data are presented in a so-called intermediate format. This intermediate format is one large 'Mapping' array, with one item in the array for each label. Such an item always consists of one 'AFD 1.0' element and one 'AFD 2.0' element. 

- Example 1: entities -

As an example of one item in the Mapping array, we take the AH entity from AFD 1.0. Within 1.0, only the two-letter entity code is stored, but AFD 2.0 also includes an 'entityType':
			{
				"AFD_1.0": [
					{
						"entity": [
							"AH"
						]
					}
				],
				"AFD_2.0": [
					{
						"entity": [
							"coverage"
						],
						"entityType": [
							"hullTrailer"
						]
					}
				]
			}

- Example 2: attributes -

In addition to entities, all attributes from both versions of the AFD are also mapped in the array. Attribute mappings also include data types, possible codelists and formats (in AFD 1.0), so that any changes in restrictions can be anticipated. Take for example the 'MVZHE' attribute (1.0). As you can see from this example, the 'ADNLOG'-codelist from AFD 1.0 is mapped to a boolean data type in 2.0:
			{
				"AFD_1.0": [
					{
						"attribute": [
							"MVZHE"
						],
						"code": [
							"JN"
						],
						"format": [
							"AN1"
						],
						"codeList": [
							"ADNLOG"
						]
					}
				],
				"AFD_2.0": [
					{
						"attribute": [
							"insureHomeOwner"
						],
						"dataType": [
							"boolean"
						],
						"codeList": [
							{
							}
						]
					}
				]
			}