Skip to main content

Generate easily your markdown documentation for any ontology

Project description

ontodoc logo

ontodoc

A python module to generate markdown documentation for ontologies.

Based on rdflib and jinja2.

Getting Started 🚀

Installation

pip install ontodoc

Command line usage

python -m ontodoc

By default, the file named ontology.ttl will be used to generate your documentation in the build destination folder.

You can easily change settings as you need. Available arguments :

Argument name Default Description
-i, --input INPUT ontology.ttl Input ontology file
-o, --output OUTPUT build/ Output directory for the generated documentation
-t, --templates TEMPLATES templates/ Custom templates folder
-f, --footer, --no-footer true Add footer for each page
-c, --concatenate, --no-concatenate false Concatenate documentation into an unique file
-s, --schema, --no-schema true Display schemas
-m, --model MODEL markdown Model type for the documentation. markdown, gh_wiki

Automatically generate your documentation

You can explore github actions to automatically generate and publish your documentation.

Example 👀

Look at the example for foaf to see what type of documentation you can easily build in 2 lines!

How does it work ? 🔧

flowchart LR
 subgraph s1["Ontodoc"]
        n5["Markdown human readable documentation"]
        n8["Markdown templates"]
        n4["Structured ontology description"]
        n9["Command Line Interface"]
  end
    n4 --> n5
    n8 --> n5
    n7(("Ontology")) --> n9
    n9 --> n4
    n9 -.-> n8

    n4@{ shape: braces}
    n9@{ shape: text}

Contributing </>

Feel free to contribute to this open source project!

We need help to implement new features, fix bugs listed in issues.

If you have any idea, create your own issue.

License 🔓

Apache License 2.0

They already have integrated Ontodoc ♥️

Comming soon...

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

ontodoc-0.0.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

ontodoc-0.0.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ontodoc-0.0.0.tar.gz
Algorithm Hash digest
SHA256 b2f03d198f10e79971decefa98ebe95f2248d5c39bfccce749488ed2bf33b68c
MD5 5d82488429d85e515230ced26f71a424
BLAKE2b-256 a38fd89ca837d62ec8b1cce106c241aa31e5c9c50ef647aefe8a57ab68778f09

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ontodoc-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93f922c2a6ad7da89ce83b947b4ea48b757ea1a99ad7896e8e4d9633e4e1b323
MD5 e82fb6d723295ed78890e47c73559cbf
BLAKE2b-256 e07e1c96e8afd44d981bf30dc33910803a1f7cd318923005b75098c6cd438aa8

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