Skip to main content

A tool for parsing and visualizing ontology files written in the Ontol DSL

Project description

Ontol DSL Parser

Authors: Skvortsov Vladimir, Aptukov Mikhail, Markov Mikhail, Afanasyev Andrew, Khamidullin Ilsaf.

Ontol DSL Parser is a command-line tool for parsing and visualizing ontology files written in the Ontol DSL. It generates JSON representations and PlantUML diagrams from .ontol files.

Features

  • Parse .ontol files to extract ontology structures.
  • Serialize ontology to JSON format.
  • Generate PlantUML diagrams from ontology.
  • Automatically render PlantUML diagrams to PNG images.
  • Watch files for changes and re-parse them automatically.
  • Display version and help information.

Requirements

  • Python 3.7 or higher
  • Java (for local PlantUML rendering)
  • PlantUML (for local rendering)

Installation

Install from PyPi:

pip install ontol

Usage

Parse a file

To parse an .ontol file and generate JSON and PlantUML files:

ontol path/to/yourfile.ontol

Watch Mode

To watch a file for changes and automatically re-parse it:

ontol path/to/yourfile.ontol --watch

Display Version

To display the version of the program:

ontol --version

Help

To display help information:

ontol --help

Output

  • JSON File: A JSON representation of the ontology is saved with the same basename as the .ontol file.
  • PlantUML File: A .puml file is generated for visualization.
  • PNG Image: A PNG image is rendered from the PlantUML file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ontol-2.7.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ontol-2.7.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file ontol-2.7.0.tar.gz.

File metadata

  • Download URL: ontol-2.7.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ontol-2.7.0.tar.gz
Algorithm Hash digest
SHA256 3f3e5092ae0836aec27648e4bdbeb17ec69a9b77a5d0f45fb62f07829cebbecf
MD5 9e20d4ee1e5346e7281c8236d439637e
BLAKE2b-256 7eb6393b2e4164b828eba904fc0611666877f19b436223cc01709f839a74af07

See more details on using hashes here.

File details

Details for the file ontol-2.7.0-py3-none-any.whl.

File metadata

  • Download URL: ontol-2.7.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for ontol-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 373f5ca2e8e912de8c193d57261a44b4e6e0daf93fe66176979d23998df8966d
MD5 cbdd7bff53a4572250bdaa2613ffb158
BLAKE2b-256 e2176095f61a375b8ca0892e4a0d3e39b0cccd46dc8e976303fd3c14dfe40b32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page