Rust implementation of NextGraph, a Decentralized and local-first web 3.0 ecosystem https://nextgraph.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextgraph-rs/sdk/ng-sdk-js/ng-ldo-compact/packages/schema-converter-shex/test/testData/pluralObjects.ts

15 lines
664 B

import type { TestData } from "./testData.js";
export const pluralObjects: TestData = {
name: "plural objects",
shexc: `
PREFIX ex: <http://ex/>
ex:FooShape { ex:bars @ex:BarShape* }
ex:BarShape { ex:name . }
`,
sampleTurtle: ``,
baseNode: "http://ex/foo1",
successfulContext: {},
successfulTypings: "", // not used in this test context
successfulCompactTypings: `export type IRI = string;\n\nexport interface Foo {\n id: IRI;\n /**\n * Original IRI: http://ex/bars\n */\n bars?: Record<IRI, Bar>;\n}\n\nexport interface Bar {\n id: IRI;\n /**\n * Original IRI: http://ex/name\n */\n name: any;\n}\n\n`,
};