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.5.6.tar.gz (20.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.5.6-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ontol-2.5.6.tar.gz
Algorithm Hash digest
SHA256 dfa77645a4f6596745eaecd0423e657cbb0c2b943a05b06a6e155a0d62cb8c19
MD5 c6854b2fd10781b1ba65a60621b3931f
BLAKE2b-256 e1691f2912aa30574ba5e88c690665bf5ed16f3b692bd620089d07720dd8ab12

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ontol-2.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 adebf30d872ccdbaa6a361471c18188a42a4a50d648ba03c128c80660cf847f1
MD5 aa16876c01e22cb2a22bc1ddf0fa3e26
BLAKE2b-256 78300530eddd3793ad50e2eea6a52fbbc25466ea07705a45ad6d11ff31378119

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