@digicatapult/dtdl-parser
v0.0.38
Published
JS tool to parse DTDL defined Ontologies
Downloads
1,221
Readme
dtdl-parser library
A library for parsing and validating DTDL ontologies.
Installation / Adding to the Package.json
@digicatapult/dtdl-parser
are available as an npm package. In order to use your local version in the project please use npm link
more on it -> here and below in this document
// with npm
npm install @digicatapult/dtdl-parser
Basic Usage
Install dependencies
import { parseDirectories, validateDirectories, getInterop } from "@digicatapult/dtdl-parser"
const parser = await getInterop()
const parsedDtdl = parseDirectories('../dtdl/simple', parser)