{
  "@context": "http://www.w3.org/ns/shex.jsonld",
  "type": "Schema",
  "shapes": [
    { "type": "ShapeDecl",
    "id": "http://a.example/S1",
    "shapeExpr": {
      "type": "Shape",
      "expression": {
        "type": "OneOf",
        "expressions": [
          {
            "type": "TripleConstraint",
            "predicate": "http://a.example/p0"
          },
          {
            "type": "EachOf",
            "expressions": [
              {
                "type": "TripleConstraint",
                "predicate": "http://a.example/p1",
                "valueExpr": {
                  "type": "NodeConstraint",
                  "values": [
                    "http://a.example/o1"
                  ]
                }
              },
              {
                "type": "TripleConstraint",
                "predicate": "http://a.example/p2",
                "min": 0,
                "max": 1
              }
            ]
          }
        ]
      },
      "extra": [
        "http://a.example/p1"
      ]
    } }
  ]
}
