import type { TestData } from "./testData"; /** * Circular */ export const extendsSimple: TestData = { name: "extends simple", shexc: ` PREFIX ex: PREFIX foaf: ex:EntityShape { a [ ex:Entity ] ; ex:entityId . } ex:PersonShape EXTENDS @ex:EntityShape { a [ ex:Person ] ; foaf:name . } ex:EmployeeShape EXTENDS @ex:PersonShape { a [ ex:Employee ] ; ex:employeeNumber . } `, sampleTurtle: ` @prefix example: . example:SampleParent a example:Parent ; example:hasChild example:SampleChild . example:SampleChild a example:Child ; example:hasParent example:SampleParent . `, baseNode: "http://example.com/SampleParent", successfulContext: { Entity: { "@id": "https://example.com/Entity", "@context": { type: { "@id": "@type", }, entityId: "https://example.com/entityId", }, }, Person: { "@id": "https://example.com/Person", "@context": { type: { "@id": "@type", }, entityId: "https://example.com/entityId", name: "http://xmlns.com/foaf/0.1/name", }, }, Employee: { "@id": "https://example.com/Employee", "@context": { type: { "@id": "@type", }, entityId: "https://example.com/entityId", name: "http://xmlns.com/foaf/0.1/name", employeeNumber: "https://example.com/employeeNumber", }, }, }, successfulTypings: 'import {ContextDefinition} from "jsonld"\n\nexport interface EntityShape {\n "@id"?: string;\n "@context"?: ContextDefinition;\n type: {\n "@id": "Entity";\n };\n entityId: any;\n}\n\nexport interface PersonShape {\n "@id"?: (string | string)[];\n "@context"?: (ContextDefinition | ContextDefinition)[];\n type: ({\n "@id": "Entity";\n } | {\n "@id": "Person";\n })[];\n entityId: any;\n name: any;\n}\n\nexport interface EmployeeShape {\n "@id"?: (string | string | string)[];\n "@context"?: (ContextDefinition | ContextDefinition | ContextDefinition)[];\n type: ({\n "@id": "Entity";\n } | {\n "@id": "Person";\n } | {\n "@id": "Employee";\n })[];\n entityId: any;\n name: any;\n employeeNumber: any;\n}\n\n', };