@manta-eu/codegen 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/generate.js +1 -1
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ A CLI that generates LDkit schemas for one realm, from the SHACL shapes that rea
|
|
|
4
4
|
holds. `@manta-eu/ldo` builds the same types from local files in this repository. An app outside this
|
|
5
5
|
repository has neither the files nor Nix, so this package reads the shapes over HTTP instead.
|
|
6
6
|
|
|
7
|
+
Documentation: [developers.manta.eu](https://developers.manta.eu)
|
|
8
|
+
|
|
7
9
|
## Use
|
|
8
10
|
|
|
9
11
|
```shell
|
package/dist/generate.js
CHANGED
|
@@ -57,7 +57,7 @@ export function failOnUnknownNamespace(outDir) {
|
|
|
57
57
|
export function runLdkit(shaclPath, outDir) {
|
|
58
58
|
removeGeneratedFiles(outDir);
|
|
59
59
|
mkdirSync(outDir, { recursive: true });
|
|
60
|
-
execFileSync(process.execPath, [ldkitCliPath(), "shacl-to-package", "--prefix-alias", `${realmPrefix}=Manta`, "file", shaclPath, outDir], { stdio: "inherit" });
|
|
60
|
+
execFileSync(process.execPath, [ldkitCliPath(), "shacl-to-package", "--prefix-alias", `${realmPrefix}=Manta`, "file", shaclPath, outDir], { stdio: "inherit", env: { ...process.env, LC_ALL: "en_US.UTF-8" } });
|
|
61
61
|
if (!existsSync(join(outDir, "index.ts"))) {
|
|
62
62
|
throw new Error(`LDkit wrote no schema into ${outDir}. Read the error above.`);
|
|
63
63
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/codegen",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "CLI that generates LDkit schemas from a realm's SHACL shapes, read from its datastore",
|
|
5
|
+
"homepage": "https://developers.manta.eu",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"manta",
|
|
8
|
+
"knowledge-graph",
|
|
9
|
+
"ldkit",
|
|
10
|
+
"shacl",
|
|
11
|
+
"codegen",
|
|
12
|
+
"cli"
|
|
13
|
+
],
|
|
5
14
|
"type": "module",
|
|
6
15
|
"bin": {
|
|
7
16
|
"manta-codegen": "./dist/cli.js"
|
|
@@ -20,7 +29,7 @@
|
|
|
20
29
|
"ldkit": "^2.9.0",
|
|
21
30
|
"n3": "^2.7.12",
|
|
22
31
|
"prettier": "^3.8.1",
|
|
23
|
-
"@manta-eu/auth": "0.1.
|
|
32
|
+
"@manta-eu/auth": "0.1.9"
|
|
24
33
|
},
|
|
25
34
|
"devDependencies": {
|
|
26
35
|
"@types/node": "^24.13.3",
|