Skip to content

A library for parsing and validating DTDL ontologies.

License

Notifications You must be signed in to change notification settings

digicatapult/dtdl-parser

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)