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
.ontolfiles 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
.ontolfile. - PlantUML File: A
.pumlfile is generated for visualization. - PNG Image: A PNG image is rendered from the PlantUML file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ontol-2.7.5.tar.gz.
File metadata
- Download URL: ontol-2.7.5.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c29ab9b39a908d8978581ee5e5d4d0fad4dae52d1740fb542de4b2670659a652
|
|
| MD5 |
f6f8b3acff5e66adfaec03f80742ff12
|
|
| BLAKE2b-256 |
78b8e03228471fe62a4169a27cd0f73f30a322b5482dc799f09161deb084095e
|
File details
Details for the file ontol-2.7.5-py3-none-any.whl.
File metadata
- Download URL: ontol-2.7.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fba021d0ce2ea67d017fa78eea2dad2f89b0d9370783e4142f7d9cf57263712
|
|
| MD5 |
97a778dd410ee37bf43ddbfb789a6354
|
|
| BLAKE2b-256 |
0ede66218246f35e2700c8fdfaa504b012b9279871fe16d52562105393c347ed
|