Ontospy
Python library and command-line interface for inspecting and visualizing RDF models.
Links
Description
Ontospy is a lightweight Python library and command line tool for inspecting and visualizing vocabularies encoded using W3C Semantic Web standards, that is, RDF or any of its dialects (RDFS, OWL, SKOS).
The basic workflow is simple: load a graph by instantiating the Ontospy class with a file containing RDFS, OWL or SKOS definitions. You get back a object that lets you interrogate the ontology. That's all!
The same functionalities are accessible also via a command line application. This is an interactive environment (like a repl) that allows to load ontologies from a local repository, interrogate them and cache them so that they can be quickly reloaded for inspection later on.
Generating ontology documentation
Ontospy can be used to generate HTML documentation for an ontology pretty much out-of-the-box.
See the website Examples of ontology documentation generated via Ontospy, or jump straight to the sample CIDOC-CRM or FOAF documentation pages.
From version 2.0, the documentation generation libraries are installed by default with Ontospy. Previously, third party dependencies (e.g. Django) had to be installed separately.
Status
I have little time to spend on this project these days, so I'm mainly focusing on bug fixes and maintenance. Happy to review PRs if you want to add more functionalities!
Development
# git clone the repo first
$ mkvirtualenv ontospy
$ pip install -r requirements.txt
$ pip install -e .
Documentation
Release files for ontospy 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ontospy-2.1.1.tar.gz | 3.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ontospy-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 MB
Release files / ontospy-2.1.1.tar.gz
| Download URL | ontospy-2.1.1.tar.gz |
|---|---|
| Size | 3.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20ef45a52521fc4aa7c0634b368c659fa34956d5375d22a07f4dbe23c52e954e
|
|
BLAKE2b-256 checksum How to use checksums |
23d647fdfcd1975e0c084cc627d24259d47360a07fdb645a58763c0cc5f6f618
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / ontospy-2.1.1-py3-none-any.whl
| Download URL | ontospy-2.1.1-py3-none-any.whl |
|---|---|
| Size | 3.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df08d47e79bc89bb6b15fd5a5b824f43e343065db017f68bd12be27b8fd055d0
|
|
BLAKE2b-256 checksum How to use checksums |
1e8ece976be68449ef9d9d866ad22914d9c503a044c8e5f0e52d14788527f9cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|