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.9 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-2.8.1.tar.gz (22.8 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.8.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ontol-2.8.1.tar.gz
Algorithm Hash digest
SHA256 35e5d94c2b27dff5c2555c9a8036023c2e8e14d5383e4b099ddd13f0316d72be
MD5 c9ac9fc45d6342b92c02bb928e9ac0d9
BLAKE2b-256 e3ff85fe7831eb7f8afc95387616c6b9f6ab5e2bd2387506df23c18fb52b8af4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ontol-2.8.1-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-2.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2056f5d3fb5b079b523bf25ba70e1df3bb815cf0ff02f09de9e1828590374b22
MD5 2dd0219c41c0c3b03e0a8decfbee5f0f
BLAKE2b-256 0eb5eaef48762d2ef5e2b3bfc0e0c7b4e80920c3c10468621ac87c878f0d3ad7

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