shex-test
Version:
Shape Expressions library tests.
65 lines (64 loc) • 1.81 kB
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",
"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
}
]
}
}
]
}