@ -11,7 +11,7 @@
"astro": "astro",
"test": "vitest",
"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": {
"@nextgraph-monorepo/ng-signals": "workspace:*",
@ -1,7 +1,7 @@
import React from "react";
import { useShape } from "@nextgraph-monorepo/ng-signals/react";
import flattenObject from "../utils/flattenObject";
import { TestObjectShapeType } from "../../shapes/ldo/testShape.shapeTypes";
import { TestObjectShapeType } from "../../shapes/orm/testShape.shapeTypes";
export function HelloWorldReact() {
const state = useShape(TestObjectShapeType);
@ -2,7 +2,7 @@
import { computed } from 'vue';
import { useShape } from "@nextgraph-monorepo/ng-signals/vue";
import flattenObject from '../utils/flattenObject';
// Acquire deep signal object (proxy) for a shape; scope second arg left empty string for parity
const shapeObj = useShape(TestObjectShapeType);
@ -5,7 +5,7 @@
"type": "module",
"main": "src/index.ts",
"bin": {
"ldo": "./src/cli.ts"
"rdf-orm": "./src/cli.ts"
"scripts": {
"build": "pnpm run build:ts",
@ -60,7 +60,7 @@
],
"publishConfig": {
"ldo": "./dist/cli.js"
"rdf-orm": "./dist/cli.js"
"access": "public",
"main": "./dist/index.js",
@ -538,7 +538,7 @@ export interface TripleConstraint extends tripleExprBase {
*/
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;
}
@ -39,7 +39,7 @@ export async function build({
// Pre-annotate schema with readablePredicate to unify naming across outputs
fileTemplates.push("schema", "typings", "shapeTypes");
load.text = "Generating LDO Documents";
load.text = "Generating Schema Documents";
await forAllShapes(inputFile, async (fileName, shexC) => {
// Convert to ShexJ
let schema: Schema;