rename ldo > orm

feat/orm
Laurin Weger 1 week ago
parent 8db51578be
commit 7de8eca7c6
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 2
      sdk/ng-sdk-js/examples/multi-framework-signals/package.json
  2. 2
      sdk/ng-sdk-js/examples/multi-framework-signals/src/frontends/react/HelloWorld.tsx
  3. 2
      sdk/ng-sdk-js/examples/multi-framework-signals/src/frontends/vue/HelloWorld.vue
  4. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/catShape.schema.ts
  5. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/catShape.shapeTypes.ts
  6. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/catShape.typings.ts
  7. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/personShape.schema.ts
  8. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/personShape.shapeTypes.ts
  9. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/personShape.typings.ts
  10. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/testShape.schema.ts
  11. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/testShape.shapeTypes.ts
  12. 0
      sdk/ng-sdk-js/examples/multi-framework-signals/src/shapes/orm/testShape.typings.ts
  13. 4
      sdk/ng-sdk-js/ng-shex-orm/package.json
  14. 2
      sdk/ng-sdk-js/ng-shex-orm/src/ShexJTypes.ts
  15. 2
      sdk/ng-sdk-js/ng-shex-orm/src/build.ts

@ -11,7 +11,7 @@
"astro": "astro", "astro": "astro",
"test": "vitest", "test": "vitest",
"test:e2e": "playwright test", "test:e2e": "playwright test",
"build:shapes": "ldo build --input ./src/shapes/shex --output ./src/shapes/ldo" "build:orm": "ldo build --input ./src/shapes/shex --output ./src/shapes/orm"
}, },
"dependencies": { "dependencies": {
"@nextgraph-monorepo/ng-signals": "workspace:*", "@nextgraph-monorepo/ng-signals": "workspace:*",

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { useShape } from "@nextgraph-monorepo/ng-signals/react"; import { useShape } from "@nextgraph-monorepo/ng-signals/react";
import flattenObject from "../utils/flattenObject"; import flattenObject from "../utils/flattenObject";
import { TestObjectShapeType } from "../../shapes/ldo/testShape.shapeTypes"; import { TestObjectShapeType } from "../../shapes/orm/testShape.shapeTypes";
export function HelloWorldReact() { export function HelloWorldReact() {
const state = useShape(TestObjectShapeType); const state = useShape(TestObjectShapeType);

@ -2,7 +2,7 @@
import { computed } from 'vue'; import { computed } from 'vue';
import { useShape } from "@nextgraph-monorepo/ng-signals/vue"; import { useShape } from "@nextgraph-monorepo/ng-signals/vue";
import flattenObject from '../utils/flattenObject'; import flattenObject from '../utils/flattenObject';
import { TestObjectShapeType } from "../../shapes/ldo/testShape.shapeTypes"; import { TestObjectShapeType } from "../../shapes/orm/testShape.shapeTypes";
// Acquire deep signal object (proxy) for a shape; scope second arg left empty string for parity // Acquire deep signal object (proxy) for a shape; scope second arg left empty string for parity
const shapeObj = useShape(TestObjectShapeType); const shapeObj = useShape(TestObjectShapeType);

@ -5,7 +5,7 @@
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",
"bin": { "bin": {
"ldo": "./src/cli.ts" "rdf-orm": "./src/cli.ts"
}, },
"scripts": { "scripts": {
"build": "pnpm run build:ts", "build": "pnpm run build:ts",
@ -60,7 +60,7 @@
], ],
"publishConfig": { "publishConfig": {
"bin": { "bin": {
"ldo": "./dist/cli.js" "rdf-orm": "./dist/cli.js"
}, },
"access": "public", "access": "public",
"main": "./dist/index.js", "main": "./dist/index.js",

@ -538,7 +538,7 @@ export interface TripleConstraint extends tripleExprBase {
*/ */
valueExpr?: shapeExprOrRef | undefined; valueExpr?: shapeExprOrRef | undefined;
/** /**
* A human-readable predicate name used for creating compact ldo objects. * The property name used for creating the JSON object.
*/ */
readablePredicate: string; readablePredicate: string;
} }

@ -39,7 +39,7 @@ export async function build({
// Pre-annotate schema with readablePredicate to unify naming across outputs // Pre-annotate schema with readablePredicate to unify naming across outputs
fileTemplates.push("schema", "typings", "shapeTypes"); fileTemplates.push("schema", "typings", "shapeTypes");
load.text = "Generating LDO Documents"; load.text = "Generating Schema Documents";
await forAllShapes(inputFile, async (fileName, shexC) => { await forAllShapes(inputFile, async (fileName, shexC) => {
// Convert to ShexJ // Convert to ShexJ
let schema: Schema; let schema: Schema;

Loading…
Cancel
Save