🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

ontology2dot

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ontology2dot

Create a "dot" format graph from a YAML ontology file

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

ontology2dot - create dot graphs from YAML ontology documents

installation: npm install -g ontology2dot

usage: ontology2dot < ontology.yaml > output.dot

or to add inherited edges: ontology2dot --children < ontology.yaml > output.dot

as a module:

var o2d = require("ontology2dot");

//read yaml from stream, work out inherited, result as string in callback.
o2d.fromStream(process.stdin, {children: true}, function(result){
    console.warn("finished!");
    console.log(result);
});

//from a yaml string.
var dot = o2d.fromString(yamlString);

//from decoded yaml object
o2d.fromObject(ontologyObject, {stream: process})

works well with Graphviz, e.g.

ontology2dot --children < ontology.yaml | dot -Tsvg > ontology.svg

FAQs

Package last updated on 17 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts