|
|
@ -9,7 +9,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "Schema", |
|
|
|
type: "Schema", |
|
|
|
shapes: [ |
|
|
|
shapes: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: "https://ldo.js.org/TestObject", |
|
|
|
id: "http://example.org/TestObject", |
|
|
|
type: "ShapeDecl", |
|
|
|
type: "ShapeDecl", |
|
|
|
shapeExpr: { |
|
|
|
shapeExpr: { |
|
|
|
type: "Shape", |
|
|
|
type: "Shape", |
|
|
@ -27,6 +27,7 @@ export const testShapeSchema: Schema = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "type", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -35,6 +36,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "stringValue", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -43,6 +45,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#integer", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#integer", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "numValue", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -51,6 +54,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#boolean", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#boolean", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "boolValue", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -61,6 +65,7 @@ export const testShapeSchema: Schema = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
min: 0, |
|
|
|
min: 0, |
|
|
|
max: -1, |
|
|
|
max: -1, |
|
|
|
|
|
|
|
readablePredicate: "arrayValue", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -77,6 +82,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "nestedString", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -85,6 +91,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#integer", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#integer", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "nestedNum", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -95,10 +102,12 @@ export const testShapeSchema: Schema = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
min: 0, |
|
|
|
min: 0, |
|
|
|
max: -1, |
|
|
|
max: -1, |
|
|
|
|
|
|
|
readablePredicate: "nestedArray", |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "objectValue", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -115,6 +124,7 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#string", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "prop1", |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "TripleConstraint", |
|
|
|
type: "TripleConstraint", |
|
|
@ -123,12 +133,14 @@ export const testShapeSchema: Schema = { |
|
|
|
type: "NodeConstraint", |
|
|
|
type: "NodeConstraint", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#integer", |
|
|
|
datatype: "http://www.w3.org/2001/XMLSchema#integer", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
readablePredicate: "prop2", |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
min: 0, |
|
|
|
min: 0, |
|
|
|
max: -1, |
|
|
|
max: -1, |
|
|
|
|
|
|
|
readablePredicate: "anotherObject", |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|