JSPM

@digicatapult/dtdl-parser

0.0.84
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 951
  • Score
    100M100P100Q118173F
  • License Apache-2.0

JS tool to parse DTDL defined Ontologies

Package Exports

    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)