{
  "kind": "executed-original-variant-merge-registration",
  "case": {
    "id": "xtm2/in/merge-itemid-with-variants.xtm",
    "documentIRI": "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm",
    "sourceKey": "xtm2/in/merge-itemid-with-variants.xtm",
    "sourceBytes": 641,
    "sourceHex": "3C746F7069634D617020786D6C6E733D22687474703A2F2F7777772E746F7069636D6170732E6F72672F78746D2F222076657273696F6E3D22322E30223E0A20203C746F7069632069643D22746F706963223E0A202020203C6974656D4964656E7469747920687265663D22687474703A2F2F6578616D706C652E6F72672F23746F706963222F3E0A202020203C6E616D653E0A2020202020203C76616C75653E546F7069633C2F76616C75653E0A2020202020203C76617269616E743E0A20202020202020203C73636F70653E0A202020202020202020203C746F70696352656620687265663D22237468656D65222F3E0A20202020202020203C2F73636F70653E0A20202020202020203C7265736F75726365446174613E544F504943213C2F7265736F75726365446174613E0A2020202020203C2F76617269616E743E0A202020203C2F6E616D653E0A20203C2F746F7069633E0A20203C746F7069632069643D22746F70696332223E0A202020203C6974656D4964656E7469747920687265663D22687474703A2F2F6578616D706C652E6F72672F23746F706963222F3E0A202020203C6E616D653E0A2020202020203C76616C75653E546F70696320323C2F76616C75653E0A2020202020203C76617269616E743E0A20202020202020203C73636F70653E0A202020202020202020203C746F70696352656620687265663D22237468656D65222F3E0A20202020202020203C2F73636F70653E0A20202020202020203C7265736F75726365446174613E544F50494332213C2F7265736F75726365446174613E0A2020202020203C2F76617269616E743E0A202020203C2F6E616D653E0A20203C2F746F7069633E0A3C2F746F7069634D61703E0A",
    "sourceText": "<topicMap xmlns=\"http://www.topicmaps.org/xtm/\" version=\"2.0\">\n  <topic id=\"topic\">\n    <itemIdentity href=\"http://example.org/#topic\"/>\n    <name>\n      <value>Topic</value>\n      <variant>\n        <scope>\n          <topicRef href=\"#theme\"/>\n        </scope>\n        <resourceData>TOPIC!</resourceData>\n      </variant>\n    </name>\n  </topic>\n  <topic id=\"topic2\">\n    <itemIdentity href=\"http://example.org/#topic\"/>\n    <name>\n      <value>Topic 2</value>\n      <variant>\n        <scope>\n          <topicRef href=\"#theme\"/>\n        </scope>\n        <resourceData>TOPIC2!</resourceData>\n      </variant>\n    </name>\n  </topic>\n</topicMap>\n",
    "actualCXTM": "<topicMap>\n<topic number=\"1\">\n<itemIdentifiers>\n<locator>#theme</locator>\n</itemIdentifiers>\n</topic>\n<topic number=\"2\">\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>#topic2</locator>\n<locator>http://example.org/#topic</locator>\n</itemIdentifiers>\n<name number=\"1\">\n<value>Topic</value>\n<type topicref=\"3\"></type>\n<variant number=\"1\">\n<value>TOPIC!</value>\n<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>\n<scope>\n<scopingTopic topicref=\"1\"></scopingTopic>\n</scope>\n</variant>\n</name>\n<name number=\"2\">\n<value>Topic 2</value>\n<type topicref=\"3\"></type>\n<variant number=\"1\">\n<value>TOPIC2!</value>\n<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>\n<scope>\n<scopingTopic topicref=\"1\"></scopingTopic>\n</scope>\n</variant>\n</name>\n</topic>\n<topic number=\"3\">\n<subjectIdentifiers>\n<locator>http://psi.topicmaps.org/iso13250/model/topic-name</locator>\n</subjectIdentifiers>\n</topic>\n</topicMap>\n",
    "expectedCXTM": "<topicMap>\n<topic number=\"1\">\n<itemIdentifiers>\n<locator>#theme</locator>\n</itemIdentifiers>\n</topic>\n<topic number=\"2\">\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>#topic2</locator>\n<locator>http://example.org/#topic</locator>\n</itemIdentifiers>\n<name number=\"1\">\n<value>Topic</value>\n<type topicref=\"3\"></type>\n<variant number=\"1\">\n<value>TOPIC!</value>\n<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>\n<scope>\n<scopingTopic topicref=\"1\"></scopingTopic>\n</scope>\n</variant>\n</name>\n<name number=\"2\">\n<value>Topic 2</value>\n<type topicref=\"3\"></type>\n<variant number=\"1\">\n<value>TOPIC2!</value>\n<datatype>http://www.w3.org/2001/XMLSchema#string</datatype>\n<scope>\n<scopingTopic topicref=\"1\"></scopingTopic>\n</scope>\n</variant>\n</name>\n</topic>\n<topic number=\"3\">\n<subjectIdentifiers>\n<locator>http://psi.topicmaps.org/iso13250/model/topic-name</locator>\n</subjectIdentifiers>\n</topic>\n</topicMap>\n",
    "actualBytes": 919,
    "expectedBytes": 919,
    "firstDifferentByte": null,
    "condition": null,
    "model": {
      "nameModel": {
        "identity": {
          "topicCount": 3,
          "associationCount": 0,
          "canonicalParentsAndInverseReferences": true,
          "topics": [
            {
              "ordinal": 1,
              "itemIdentifiers": [
                "http://example.org/#topic",
                "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#topic",
                "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#topic2"
              ],
              "subjectIdentifiers": [],
              "subjectLocators": []
            },
            {
              "ordinal": 2,
              "itemIdentifiers": [],
              "subjectIdentifiers": [
                "http://psi.topicmaps.org/iso13250/model/topic-name"
              ],
              "subjectLocators": []
            },
            {
              "ordinal": 3,
              "itemIdentifiers": [
                "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#theme"
              ],
              "subjectIdentifiers": [],
              "subjectLocators": []
            }
          ],
          "associations": []
        },
        "mapItemIdentifiers": [],
        "canonicalNameParentTypeReferences": true,
        "names": [
          {
            "value": "Topic",
            "parent": 1,
            "type": 2,
            "scope": [],
            "itemIdentifiers": [],
            "variantCount": 1
          },
          {
            "value": "Topic 2",
            "parent": 1,
            "type": 2,
            "scope": [],
            "itemIdentifiers": [],
            "variantCount": 1
          }
        ]
      },
      "canonicalVariantReferences": true,
      "variants": [
        {
          "value": "TOPIC!",
          "datatype": "http://www.w3.org/2001/XMLSchema#string",
          "parentName": 1,
          "scope": [
            3
          ],
          "itemIdentifiers": [],
          "reifier": null
        },
        {
          "value": "TOPIC2!",
          "datatype": "http://www.w3.org/2001/XMLSchema#string",
          "parentName": 2,
          "scope": [
            3
          ],
          "itemIdentifiers": [],
          "reifier": null
        }
      ]
    },
    "originalReaderStages": [
      {
        "afterTopic": 1,
        "model": {
          "nameModel": {
            "identity": {
              "topicCount": 3,
              "associationCount": 0,
              "canonicalParentsAndInverseReferences": true,
              "topics": [
                {
                  "ordinal": 1,
                  "itemIdentifiers": [
                    "http://example.org/#topic",
                    "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#topic"
                  ],
                  "subjectIdentifiers": [],
                  "subjectLocators": []
                },
                {
                  "ordinal": 2,
                  "itemIdentifiers": [],
                  "subjectIdentifiers": [
                    "http://psi.topicmaps.org/iso13250/model/topic-name"
                  ],
                  "subjectLocators": []
                },
                {
                  "ordinal": 3,
                  "itemIdentifiers": [
                    "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#theme"
                  ],
                  "subjectIdentifiers": [],
                  "subjectLocators": []
                }
              ],
              "associations": []
            },
            "mapItemIdentifiers": [],
            "canonicalNameParentTypeReferences": true,
            "names": [
              {
                "value": "Topic",
                "parent": 1,
                "type": 2,
                "scope": [],
                "itemIdentifiers": [],
                "variantCount": 1
              }
            ]
          },
          "canonicalVariantReferences": true,
          "variants": [
            {
              "value": "TOPIC!",
              "datatype": "http://www.w3.org/2001/XMLSchema#string",
              "parentName": 1,
              "scope": [
                3
              ],
              "itemIdentifiers": [],
              "reifier": null
            }
          ]
        }
      },
      {
        "afterTopic": 2,
        "model": {
          "nameModel": {
            "identity": {
              "topicCount": 3,
              "associationCount": 0,
              "canonicalParentsAndInverseReferences": true,
              "topics": [
                {
                  "ordinal": 1,
                  "itemIdentifiers": [
                    "http://example.org/#topic",
                    "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#topic",
                    "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#topic2"
                  ],
                  "subjectIdentifiers": [],
                  "subjectLocators": []
                },
                {
                  "ordinal": 2,
                  "itemIdentifiers": [],
                  "subjectIdentifiers": [
                    "http://psi.topicmaps.org/iso13250/model/topic-name"
                  ],
                  "subjectLocators": []
                },
                {
                  "ordinal": 3,
                  "itemIdentifiers": [
                    "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-itemid-with-variants.xtm#theme"
                  ],
                  "subjectIdentifiers": [],
                  "subjectLocators": []
                }
              ],
              "associations": []
            },
            "mapItemIdentifiers": [],
            "canonicalNameParentTypeReferences": true,
            "names": [
              {
                "value": "Topic",
                "parent": 1,
                "type": 2,
                "scope": [],
                "itemIdentifiers": [],
                "variantCount": 1
              },
              {
                "value": "Topic 2",
                "parent": 1,
                "type": 2,
                "scope": [],
                "itemIdentifiers": [],
                "variantCount": 1
              }
            ]
          },
          "canonicalVariantReferences": true,
          "variants": [
            {
              "value": "TOPIC!",
              "datatype": "http://www.w3.org/2001/XMLSchema#string",
              "parentName": 1,
              "scope": [
                3
              ],
              "itemIdentifiers": [],
              "reifier": null
            },
            {
              "value": "TOPIC2!",
              "datatype": "http://www.w3.org/2001/XMLSchema#string",
              "parentName": 2,
              "scope": [
                3
              ],
              "itemIdentifiers": [],
              "reifier": null
            }
          ]
        }
      }
    ],
    "status": "pass",
    "sourceSHA256": "1712d72a0f3d908a259c539c13197af5e0d405a1572bbfd865aed8603b1edb45",
    "baselineSHA256": "f157b2f40fa516c51dcc99cc7e151ed709d9ae3e29ba5c5c2bb5d9e9ef8a016a",
    "actualSHA256": "f157b2f40fa516c51dcc99cc7e151ed709d9ae3e29ba5c5c2bb5d9e9ef8a016a",
    "executedInASDFTestOp": true
  }
}
