[shexTest] Format of JSON files in validation folder (#66)

labra has just created a new issue for https://github.com/shexSpec/shexTest:

== Format of JSON files in validation folder ==
I think the format of the JSON files in the validation folder is not updated to the new JSON structure which was using "shapeDecl". 

For example, the file [nPlus1.json](https://github.com/shexSpec/shexTest/blob/main/validation/nPlus1.json) has this structure:

```json
{
  "@context": "http://www.w3.org/ns/shex.jsonld",
  "type": "Schema",
  "shapes": [
    {
      "id": "http://a.example.org/S",
      "type": "Shape",
      "expression": {
        "type": "EachOf",
        "expressions": [
          {
            "type": "TripleConstraint",
            "predicate": "http://a.example/a",
            "min": 0,
            "max": -1
          },
          {
            "type": "OneOf",
            "expressions": [
              {
                "type": "TripleConstraint",
                "predicate": "http://a.example/a",
                "min": 1,
                "max": -1
              },
              {
                "type": "TripleConstraint",
                "predicate": "http://a.example/a"
              }
            ]
          },
          {
            "type": "TripleConstraint",
            "predicate": "http://a.example/a"
          }
        ]
      }
    }
  ]
}
```

but I think it should be:

```json
{
  "@context": "http://www.w3.org/ns/shex.jsonld",
  "type": "Schema",
  "shapes": [
    {
      "type": "ShapeDecl",
      "id": "http://a.example.org/S",
      "abstract": false,
      "shapeExpr": {
        "type": "Shape",
        "expression": {
          "type": "EachOf",
          "expressions": [
            {
              "type": "TripleConstraint",
              "predicate": "http://a.example/a",
              "min": 0,
              "max": -1
            },
            {
              "type": "OneOf",
              "expressions": [
                {
                  "type": "TripleConstraint",
                  "predicate": "http://a.example/a",
                  "min": 1,
                  "max": -1
                },
                {
                  "type": "TripleConstraint",
                  "predicate": "http://a.example/a"
                }
              ]
            },
            {
              "type": "TripleConstraint",
              "predicate": "http://a.example/a"
            }
          ]
        }
      }
    }
  ],
}
```

Please view or discuss this issue at https://github.com/shexSpec/shexTest/issues/66 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 22 March 2026 07:36:29 UTC