multi-framework-signals example: rebuild shapes

refactor
Laurin Weger 1 day ago
parent d78b7dabd5
commit 615f872663
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 2
      sdk/js/examples/multi-framework-signals/src/shapes/orm/catShape.schema.ts
  2. 6
      sdk/js/examples/multi-framework-signals/src/shapes/orm/catShape.typings.ts
  3. 2
      sdk/js/examples/multi-framework-signals/src/shapes/orm/personShape.schema.ts
  4. 6
      sdk/js/examples/multi-framework-signals/src/shapes/orm/personShape.typings.ts
  5. 2
      sdk/js/examples/multi-framework-signals/src/shapes/orm/testShape.schema.ts
  6. 8
      sdk/js/examples/multi-framework-signals/src/shapes/orm/testShape.typings.ts

@ -19,7 +19,7 @@ export const catShapeSchema: Schema = {
maxCardinality: 1, maxCardinality: 1,
minCardinality: 1, minCardinality: 1,
iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
readablePredicate: "type", readablePredicate: "@type",
}, },
{ {
dataTypes: [ dataTypes: [

@ -10,11 +10,11 @@ export type IRI = string;
* Cat Type * Cat Type
*/ */
export interface Cat { export interface Cat {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#type * Original IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#type
*/ */
type: string; "@type": string;
/** /**
* Original IRI: http://example.org/name * Original IRI: http://example.org/name
*/ */
@ -31,7 +31,7 @@ export interface Cat {
* Original IRI: http://example.org/address * Original IRI: http://example.org/address
*/ */
address: { address: {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://example.org/street * Original IRI: http://example.org/street
*/ */

@ -19,7 +19,7 @@ export const personShapeSchema: Schema = {
maxCardinality: 1, maxCardinality: 1,
minCardinality: 1, minCardinality: 1,
iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
readablePredicate: "type", readablePredicate: "@type",
}, },
{ {
dataTypes: [ dataTypes: [

@ -10,11 +10,11 @@ export type IRI = string;
* Person Type * Person Type
*/ */
export interface Person { export interface Person {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#type * Original IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#type
*/ */
type: string; "@type": string;
/** /**
* Original IRI: http://example.org/name * Original IRI: http://example.org/name
*/ */
@ -23,7 +23,7 @@ export interface Person {
* Original IRI: http://example.org/address * Original IRI: http://example.org/address
*/ */
address: { address: {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://example.org/street * Original IRI: http://example.org/street
*/ */

@ -19,7 +19,7 @@ export const testShapeSchema: Schema = {
maxCardinality: 1, maxCardinality: 1,
minCardinality: 1, minCardinality: 1,
iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", iri: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
readablePredicate: "type", readablePredicate: "@type",
extra: true, extra: true,
}, },
{ {

@ -10,11 +10,11 @@ export type IRI = string;
* TestObject Type * TestObject Type
*/ */
export interface TestObject { export interface TestObject {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#type * Original IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#type
*/ */
type: string; "@type": string;
/** /**
* Original IRI: http://example.org/stringValue * Original IRI: http://example.org/stringValue
*/ */
@ -35,7 +35,7 @@ export interface TestObject {
* Original IRI: http://example.org/objectValue * Original IRI: http://example.org/objectValue
*/ */
objectValue: { objectValue: {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://example.org/nestedString * Original IRI: http://example.org/nestedString
*/ */
@ -55,7 +55,7 @@ export interface TestObject {
anotherObject?: Record< anotherObject?: Record<
IRI, IRI,
{ {
id: IRI; readonly "@id": IRI;
/** /**
* Original IRI: http://example.org/prop1 * Original IRI: http://example.org/prop1
*/ */

Loading…
Cancel
Save