Ontology documentation & validation CLI — bridges auto-extracted OWL/SHACL definitions with Markdown narrative
Project description
Blathers
Ontology documentation & validation CLI -- bridges auto-extracted OWL/SHACL definitions with Markdown narrative.
Features
- 5 validators -- SHACL, consistency, completeness, naming conventions, and overlap detection
- Sidecar Markdown -- author rich narrative alongside your ontology using YAML frontmatter
- Static HTML output -- generates a self-contained documentation site with ReSpec-style layout
- RDF/OWL extraction -- parses classes, properties, and named individuals via rdflib
- Content negotiation -- generates Apache, nginx, and w3id configuration
Quick start
pip install blathers
Scaffold a new project:
blathers init my-ontology
cd my-ontology
Validate your ontology:
blathers validate
Build the documentation site:
blathers build
Configuration
Blathers reads from blathers.yaml in your project root:
ontology: ontology/my-ontology.ttl
shacl: []
sidecars: sidecars/
figures: figures/
output: dist/
metadata:
title: "My Ontology"
version: "1.0.0"
namespace: "http://example.org/onto#"
prefix: onto
validation:
fail_on: error
rules:
shacl: true
consistency: true
completeness: true
conventions: true
overlap: true
Sidecar authoring
Create Markdown files in sidecars/ with YAML frontmatter to add narrative:
---
term: onto:MyClass
section: overview
order: 1
---
Description of MyClass and its role in the ontology.
CLI commands
| Command | Description |
|---|---|
init |
Scaffold a new ontology project |
validate |
Run validators against ontology and SHACL shapes |
build |
Generate static HTML documentation site |
fetch |
Fetch remote ontology imports |
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
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 blathers-1.0.0a6.tar.gz.
File metadata
- Download URL: blathers-1.0.0a6.tar.gz
- Upload date:
- Size: 74.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a19ccff2ff33c0475090db9020bef197012190a5251c0f8fe83df32b2d51ea9b
|
|
| MD5 |
8cae1d8ae107a07dad3fcf660b19523f
|
|
| BLAKE2b-256 |
703aa6fcf6fd37c228c25d86f0ace272b04ca7d0e6608b07cd474fedce500cba
|
File details
Details for the file blathers-1.0.0a6-py3-none-any.whl.
File metadata
- Download URL: blathers-1.0.0a6-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
729f5760ad541e136122ed5fe18df36fd8631c28ba6f1f8085179a2880891aed
|
|
| MD5 |
82ee7f4dfbe605e00fb457d8e6385d38
|
|
| BLAKE2b-256 |
e52af471f9ab4b917c2bd11b2a45a4757740ab006344c5bf234404a4c0532c70
|