|
|
@ -7,7 +7,7 @@ import type { CompactSchema } from "@ldo/ldo"; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export const testShapeSchema: CompactSchema = { |
|
|
|
export const testShapeSchema: CompactSchema = { |
|
|
|
"http://example.org/TestObject": { |
|
|
|
"http://example.org/TestObject": { |
|
|
|
schemaUri: "http://example.org/TestObject", |
|
|
|
iri: "http://example.org/TestObject", |
|
|
|
predicates: [ |
|
|
|
predicates: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "literal", |
|
|
|
type: "literal", |
|
|
@ -16,6 +16,7 @@ export const testShapeSchema: CompactSchema = { |
|
|
|
minCardinality: 1, |
|
|
|
minCardinality: 1, |
|
|
|
predicateUri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", |
|
|
|
predicateUri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", |
|
|
|
readablePredicate: "type", |
|
|
|
readablePredicate: "type", |
|
|
|
|
|
|
|
extra: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "string", |
|
|
|
type: "string", |
|
|
@ -63,10 +64,17 @@ export const testShapeSchema: CompactSchema = { |
|
|
|
predicateUri: "http://example.org/anotherObject", |
|
|
|
predicateUri: "http://example.org/anotherObject", |
|
|
|
readablePredicate: "anotherObject", |
|
|
|
readablePredicate: "anotherObject", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: "string", |
|
|
|
|
|
|
|
maxCardinality: 1, |
|
|
|
|
|
|
|
minCardinality: 1, |
|
|
|
|
|
|
|
predicateUri: "http://example.org/numOrStr", |
|
|
|
|
|
|
|
readablePredicate: "numOrStr", |
|
|
|
|
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
"http://example.org/TestObject::http://example.org/objectValue": { |
|
|
|
"http://example.org/TestObject::http://example.org/objectValue": { |
|
|
|
schemaUri: "http://example.org/TestObject::http://example.org/objectValue", |
|
|
|
iri: "http://example.org/TestObject::http://example.org/objectValue", |
|
|
|
predicates: [ |
|
|
|
predicates: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "string", |
|
|
|
type: "string", |
|
|
@ -92,8 +100,7 @@ export const testShapeSchema: CompactSchema = { |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
"http://example.org/TestObject::http://example.org/anotherObject": { |
|
|
|
"http://example.org/TestObject::http://example.org/anotherObject": { |
|
|
|
schemaUri: |
|
|
|
iri: "http://example.org/TestObject::http://example.org/anotherObject", |
|
|
|
"http://example.org/TestObject::http://example.org/anotherObject", |
|
|
|
|
|
|
|
predicates: [ |
|
|
|
predicates: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "string", |
|
|
|
type: "string", |
|
|
|