{
  "@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",
            "valueExpr": {
              "type": "NodeConstraint",
              "values": [
                { "value": "1", "type": "http://www.w3.org/2001/XMLSchema#integer" }
              ]
            }
          },
          {
            "type": "OneOf",
            "expressions": [
              {
                "type": "TripleConstraint",
                "predicate": "http://a.example/a",
                "valueExpr": {
                  "type": "NodeConstraint",
                  "values": [
                    { "value": "2", "type": "http://www.w3.org/2001/XMLSchema#integer" }
                  ]
                },
                "min": 1,
                "max": -1
              },
              {
                "type": "TripleConstraint",
                "predicate": "http://a.example/a",
                "valueExpr": {
                  "type": "NodeConstraint",
                  "values": [
                    { "value": "3", "type": "http://www.w3.org/2001/XMLSchema#integer" }
                  ]
                }
              }
            ]
          },
          {
            "type": "TripleConstraint",
            "predicate": "http://a.example/a",
            "valueExpr": {
              "type": "NodeConstraint",
              "values": [
                { "value": "4", "type": "http://www.w3.org/2001/XMLSchema#integer" }
              ]
            },
            "min": 0,
            "max": -1
          }
        ]
      }
    }
  ]
}
