Skip to main content

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

Project description

Ontol DSL Parser

Build Status PyPi downloads

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

Tests

To display run tests:

pytest tests

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-0.0.0.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

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

ontol-0.0.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ontol-0.0.0.tar.gz
Algorithm Hash digest
SHA256 fcc2f76179d1f6d2a9b7dd5d84ca9f6cad1cf15c7e94d81ba025eb0e9597b4fb
MD5 88deb347ce6784b61328bb4e57005b7e
BLAKE2b-256 b0d777e8e816e24a7cd4f1ddfc270afad92e10fea04045d03cabf6724e2869fa

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ontol-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5b4403b25a3f55665782dcb75e07dc2e20bd29fe8204b0c7e79db66fc013bd
MD5 b34f2a1939aff812c8321522f85c15c9
BLAKE2b-256 59a14790686f4f4757581799aee057a89f37311196951fb820812ae1f60b0339

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