0.0.1-alpha.28 • Published 28 days ago
@ldo/cli v0.0.1-alpha.28
@ldo/cli
The @ldo/cli
is a command line interface for initializing LDO and building ShapeTypes.
Setup
Automatic Setup
To setup LDO, cd
into your typescript project and run npx @ldo/cli init
.
cd my-typescript-project
npx @ldo/cli init
Manual Setup
The following is handled by the automatic setup:
Install the LDO dependencies.
npm install @ldo/ldo
npm install @ldo/cli --save-dev
Create a folder to store your ShEx shapes:
mkdir shapes
Create a script to build ShEx shapes and convert them into Linked Data Objects. You can put this script in package.json
{
...
scripts: {
...
"build:ldo": "ldo build --input ./shapes --output ./ldo"
...
}
...
}
Generating a ShapeType
@ldo/cli generates shape types using the *.shex
files in the "input" folder. If you followed the instructions above, run the following command:
npm run build:ldo
This will generate five files:
./ldo/foafProfile.shapeTypes.ts
<-- This is the important file./ldo/foafProfile.typings.ts
./ldo/foafProfile.schema.ts
./ldo/foafProfile.context.ts
API Details
## Sponsorship
This project was made possible by a grant from NGI Zero Entrust via nlnet. Learn more on the [NLnet project page](https://nlnet.nl/project/SolidUsableApps/).
[<img src="https://nlnet.nl/logo/banner.png" alt="nlnet foundation logo" width="300" />](https://nlnet.nl/)
[<img src="https://nlnet.nl/image/logos/NGI0Entrust_tag.svg" alt="NGI Zero Entrust Logo" width="300" />](https://nlnet.nl/)
## Liscense
MIT
0.0.1-alpha.28
28 days ago
0.0.1-alpha.26
4 months ago
0.0.1-alpha.24
8 months ago
0.0.1-alpha.23
9 months ago
0.0.1-alpha.19
9 months ago
0.0.1-alpha.18
10 months ago
0.0.1-alpha.17
1 year ago
0.0.1-alpha.16
1 year ago
0.0.1-alpha.14
1 year ago