npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ysgao/ontograph-cli-standalone

v0.3.4

Published

Standalone CLI for OntoGraph OWL ontology reasoning — bundles a Java runtime, zero external dependencies (no VS Code, no system Java)

Readme

@ysgao/ontograph-cli-standalone

Standalone CLI for OntoGraph OWL ontology reasoning. Bundles its own Java runtime and reasoner — no VS Code, no system Java installation required.

This is a separate, independent distribution from @ysgao/ontograph-cli (the "minimal" CLI). Install whichever fits your use case — the two are not designed to be installed together under the same global ontograph binary name.

Platform support (this release): macOS on Apple Silicon (arm64) only. Running on any other platform/architecture reports a clear PLATFORM_UNSUPPORTED error rather than a silent or cryptic failure. Broader platform coverage may follow as a separate release.

All commands print one JSON object to stdout and exit with a standard code. No interactive prompts.

Install

npm install -g @ysgao/ontograph-cli-standalone

That's it — the package includes everything needed to reason over an ontology: a bundled Eclipse Temurin 21 JRE and the OntoGraph reasoner. No separate Java install, no running VS Code required for any command in this package.

Quick start

ontograph --help
ontograph parse ./ontology.ofn
ontograph classify ./ontology.ofn
ontograph dl-query ./ontology.ofn "Animal and hasHabitat some Ocean" --types directSubClasses

Shared commands — identical to the minimal CLI

parse, search, validate, convert, stats, entity-info behave exactly as documented in cli/README.md's "Core commands" section — none of these need Java or VS Code in either package, and both packages register them from the same source (cli/src/registerCoreCommands.ts), so they can never drift apart.


Reasoning commands — bundled runtime, no VS Code

Unlike the minimal CLI's classify/check-consistency/dl-query (which require a running VS Code extension), these commands take a local ontology file directly and reason over it using this package's own bundled runtime.

ontograph classify <file>

ontograph classify ./ontology.ofn
ontograph classify ./ontology.ofn --reasoner hermit

Flags:

  • --reasoner <hermit|elk|auto> — reasoner engine selection. Default: elk (a deliberate, predictable default for scripts/CI — not the minimal CLI's own size-based auto selection, though auto remains available as an explicit choice).

Output: identical shape to the minimal CLI's classify result (consistent, incoherentClasses, hierarchy, equivalentClasses).

ontograph check-consistency <file>

ontograph check-consistency ./ontology.ofn

Output: identical shape to the minimal CLI's check-consistency result (consistent, explanation?).

ontograph dl-query <file> <expression>

ontograph dl-query ./ontology.ofn "Koala" --types directSuperClasses
ontograph dl-query ./ontology.ofn "Body structure" --types subClasses --filter "liver"

Identical --types/--filter contract to the minimal CLI's dl-query — same six category names (directSuperClasses, superClasses, equivalentClasses, directSubClasses, subClasses, instances), same subClasses-only default when --types is omitted, same case-insensitive label/IRI substring --filter, same partial-keys result shape (only requested categories are present in data).


Error handling

| Exit code | Error code | Meaning | |-----------|-----------|---------| | 0 | — | Success | | 1 | FILE_NOT_FOUND | File path does not exist | | 2 | PARSE_ERROR | File cannot be parsed as valid OWL | | 4 | INVALID_ARGS | Missing or invalid argument (e.g. an unrecognized --types value) | | 12 | BRIDGE_ERROR | The reasoner reported an error for this specific request (e.g. a malformed DL expression) | | 13 | RUNTIME_UNAVAILABLE | The bundled runtime is missing or corrupted — reinstall the package | | 14 | PLATFORM_UNSUPPORTED | This platform/architecture isn't supported by this release (macOS arm64 only) |

Formats supported

Same as the minimal CLI: OWL Functional Syntax (.ofn), Manchester Syntax (.omn), OWL/XML (.owl, .owx), Turtle/N-Triples (.ttl, .n3).

License

Apache-2.0 — same as OntoGraph-lite.