{
  "runtime": "2.5.4",
  "harnessStatuses": {
    "pass": 262,
    "fail": 4,
    "unsupported": 0,
    "not-run": 7
  },
  "harnessCaseStatesUnchanged": true,
  "cases": [
    {
      "id": "ctm/in/template-ambiguous-parameter5.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter5.ctm",
      "category": "VALID",
      "expectedOutcome": "CXTM-EQUAL",
      "sourceBytes": 146,
      "sourceHex": "0A 23 20 55 73 69 6E 67 20 61 6E 20 49 52 49 20 61 72 67 75 6D 65 6E 74 20 69 6E 20 64 69 66 66 65 72 65 6E 74 20 63 6F 6E 74 65 78 74 73 0A 0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 74 6F 70 69 63 20 24 69 72 69 3B 20 3D 24 69 72 69 3B 20 5E 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 73 6F 6D 65 74 68 69 6E 67 2F 3E 29 0A",
      "sourceText": "\n# Using an IRI argument in different contexts\n\ndef template($iri)\n  topic $iri; =$iri; ^$iri.\nend\n\ntemplate(<http://www.example.org/something/>)\n",
      "baselinePath": "/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/baseline/template-ambiguous-parameter5.ctm.cxtm",
      "baselineBytes": 353,
      "baselineText": "<topicMap>\n<topic number=\"1\">\n<subjectIdentifiers>\n<locator>http://www.example.org/something/</locator>\n</subjectIdentifiers>\n<subjectLocators>\n<locator>http://www.example.org/something/</locator>\n</subjectLocators>\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>http://www.example.org/something/</locator>\n</itemIdentifiers>\n</topic>\n</topicMap>\n",
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/in/template-ambiguous-parameter5.ctm at CHARACTER 79 (line 5, column 13): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 79,
        "line": 5,
        "column": 13,
        "positionUnit": "character",
        "source": "ctm/in/template-ambiguous-parameter5.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    },
    {
      "id": "ctm/in/template-ambiguous-parameter6.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-ambiguous-parameter6.ctm",
      "category": "VALID",
      "expectedOutcome": "CXTM-EQUAL",
      "sourceBytes": 163,
      "sourceHex": "0A 25 70 72 65 66 69 78 20 65 78 20 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 0A 0A 23 20 55 73 69 6E 67 20 61 20 51 4E 61 6D 65 20 61 72 67 75 6D 65 6E 74 20 69 6E 20 64 69 66 66 65 72 65 6E 74 20 63 6F 6E 74 65 78 74 73 0A 0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 71 29 0A 20 20 74 6F 70 69 63 20 24 71 3B 20 3D 24 71 3B 20 5E 24 71 3B 20 6F 63 63 3A 20 24 71 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 65 78 3A 73 6F 6D 65 74 68 69 6E 67 29 0A",
      "sourceText": "\n%prefix ex <http://www.example.org/>\n\n# Using a QName argument in different contexts\n\ndef template($q)\n  topic $q; =$q; ^$q; occ: $q.\nend\n\ntemplate(ex:something)\n",
      "baselinePath": "/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/baseline/template-ambiguous-parameter6.ctm.cxtm",
      "baselineBytes": 613,
      "baselineText": "<topicMap>\n<topic number=\"1\">\n<itemIdentifiers>\n<locator>#occ</locator>\n</itemIdentifiers>\n</topic>\n<topic number=\"2\">\n<subjectIdentifiers>\n<locator>http://www.example.org/something</locator>\n</subjectIdentifiers>\n<subjectLocators>\n<locator>http://www.example.org/something</locator>\n</subjectLocators>\n<itemIdentifiers>\n<locator>#topic</locator>\n<locator>http://www.example.org/something</locator>\n</itemIdentifiers>\n<occurrence number=\"1\">\n<value>http://www.example.org/something</value>\n<datatype>http://www.w3.org/2001/XMLSchema#anyURI</datatype>\n<type topicref=\"1\"></type>\n</occurrence>\n</topic>\n</topicMap>\n",
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/in/template-ambiguous-parameter6.ctm at CHARACTER 114 (line 7, column 11): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 114,
        "line": 7,
        "column": 11,
        "positionUnit": "character",
        "source": "ctm/in/template-ambiguous-parameter6.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    },
    {
      "id": "ctm/in/template-subject-identifier2.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/in/template-subject-identifier2.ctm",
      "category": "VALID",
      "expectedOutcome": "CXTM-EQUAL",
      "sourceBytes": 81,
      "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 20 20 74 6F 70 69 63 20 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 70 73 69 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 66 61 6B 65 3E 29 0A",
      "sourceText": "\ndef template($iri)\n    topic $iri.\nend\n\ntemplate(<http://psi.example.org/fake>)\n",
      "baselinePath": "/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/baseline/template-subject-identifier2.ctm.cxtm",
      "baselineBytes": 204,
      "baselineText": "<topicMap>\n<topic number=\"1\">\n<subjectIdentifiers>\n<locator>http://psi.example.org/fake</locator>\n</subjectIdentifiers>\n<itemIdentifiers>\n<locator>#topic</locator>\n</itemIdentifiers>\n</topic>\n</topicMap>\n",
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/in/template-subject-identifier2.ctm at CHARACTER 34 (line 3, column 15): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 34,
        "line": 3,
        "column": 15,
        "positionUnit": "character",
        "source": "ctm/in/template-subject-identifier2.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    },
    {
      "id": "ctm/invalid/template-item-identifier-2nd-arg.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-item-identifier-2nd-arg.ctm",
      "category": "INVALID",
      "expectedOutcome": "CTM-REJECTION",
      "sourceBytes": 167,
      "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 31 2C 20 24 69 72 69 32 29 0A 20 20 20 20 74 6F 70 69 63 31 20 24 69 72 69 31 2E 0A 20 20 20 20 74 6F 70 69 63 32 20 24 69 72 69 32 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 2C 20 20 20 20 20 23 20 76 61 6C 69 64 0A 20 20 20 20 20 20 20 20 5E 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 20 20 20 20 20 23 20 69 6E 76 61 6C 69 64 0A",
      "sourceText": "\ndef template($iri1, $iri2)\n    topic1 $iri1.\n    topic2 $iri2.\nend\n\ntemplate(<http://www.example.org/>,     # valid\n        ^<http://www.example.org/>)     # invalid\n",
      "baselinePath": null,
      "baselineBytes": null,
      "baselineText": null,
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-item-identifier-2nd-arg.ctm at CHARACTER 44 (line 3, column 17): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 44,
        "line": 3,
        "column": 17,
        "positionUnit": "character",
        "source": "ctm/invalid/template-item-identifier-2nd-arg.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    },
    {
      "id": "ctm/invalid/template-item-identifier3.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-item-identifier3.ctm",
      "category": "INVALID",
      "expectedOutcome": "CTM-REJECTION",
      "sourceBytes": 78,
      "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 20 20 74 6F 70 69 63 20 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 5E 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 0A",
      "sourceText": "\ndef template($iri)\n    topic $iri.\nend\n\ntemplate(^<http://www.example.org/>)\n",
      "baselinePath": null,
      "baselineBytes": null,
      "baselineText": null,
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-item-identifier3.ctm at CHARACTER 34 (line 3, column 15): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 34,
        "line": 3,
        "column": 15,
        "positionUnit": "character",
        "source": "ctm/invalid/template-item-identifier3.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    },
    {
      "id": "ctm/invalid/template-subject-locator-2nd-arg.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-subject-locator-2nd-arg.ctm",
      "category": "INVALID",
      "expectedOutcome": "CTM-REJECTION",
      "sourceBytes": 167,
      "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 31 2C 20 24 69 72 69 32 29 0A 20 20 20 20 74 6F 70 69 63 31 20 24 69 72 69 31 2E 0A 20 20 20 20 74 6F 70 69 63 32 20 24 69 72 69 32 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 2C 20 20 20 20 20 23 20 76 61 6C 69 64 0A 20 20 20 20 20 20 20 20 20 3D 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 20 20 20 20 23 20 69 6E 76 61 6C 69 64 0A",
      "sourceText": "\ndef template($iri1, $iri2)\n    topic1 $iri1.\n    topic2 $iri2.\nend\n\ntemplate(<http://www.example.org/>,     # valid\n         =<http://www.example.org/>)    # invalid\n",
      "baselinePath": null,
      "baselineBytes": null,
      "baselineText": null,
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-subject-locator-2nd-arg.ctm at CHARACTER 44 (line 3, column 17): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 44,
        "line": 3,
        "column": 17,
        "positionUnit": "character",
        "source": "ctm/invalid/template-subject-locator-2nd-arg.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    },
    {
      "id": "ctm/invalid/template-subject-locator3.ctm",
      "documentIRI": "https://ctm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/ctm/invalid/template-subject-locator3.ctm",
      "category": "INVALID",
      "expectedOutcome": "CTM-REJECTION",
      "sourceBytes": 78,
      "sourceHex": "0A 64 65 66 20 74 65 6D 70 6C 61 74 65 28 24 69 72 69 29 0A 20 20 20 20 74 6F 70 69 63 20 24 69 72 69 2E 0A 65 6E 64 0A 0A 74 65 6D 70 6C 61 74 65 28 3D 3C 68 74 74 70 3A 2F 2F 77 77 77 2E 65 78 61 6D 70 6C 65 2E 6F 72 67 2F 3E 29 0A",
      "sourceText": "\ndef template($iri)\n    topic $iri.\nend\n\ntemplate(=<http://www.example.org/>)\n",
      "baselinePath": null,
      "baselineBytes": null,
      "baselineText": null,
      "condition": {
        "condition": "INVALID-TEMPLATE-BODY",
        "message": "TEMPLATE-IDENTITY-TAIL in ctm/invalid/template-subject-locator3.ctm at CHARACTER 34 (line 3, column 15): Unmarked variable identities in Topic Tails remain outside the supported grammar.",
        "code": "template-identity-tail",
        "position": 34,
        "line": 3,
        "column": 15,
        "positionUnit": "character",
        "source": "ctm/invalid/template-subject-locator3.ctm",
        "cause": null,
        "context": null
      },
      "model": null,
      "actualCXTM": null,
      "actualBytes": null,
      "byteExact": false,
      "canonicalizationPreservesMap": false,
      "referencesCurrent": false
    }
  ]
}
