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 (ontospy). 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 easily. E.g. see the Schema.org ontology, or FOAF ontology.
This functionality relies on a module called ontodocs, which used to be maintained as a separate library but is now distributed with ontospy as an add-on:
pip install ontospy[FULL]
For more examples of the kind of documentation that can be generated out-of-the-box, take a look at this page.
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
Metadata
Release files for ontospy 1.9.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ontospy-1.9.9.4.tar.gz | 3.7 MB | Without provenance | Details for ontospy-1.9.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ontospy-1.9.9.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ontospy-1.9.9.4-py2.py3-none-any.whl |
Total release size: 11.4 MB
Release files / ontospy-1.9.9.4.tar.gz
| Download URL | ontospy-1.9.9.4.tar.gz |
|---|---|
| Size | 3.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
219ec1ae2655c204376e36cbb7ae5aac74fc3df9f84b5332550e5370f60ee856
|
|
BLAKE2b-256 checksum How to use checksums |
6465c7049fb6f1ed635c048754c947a706b4fbc55ac8ec08e091ee746ee6cfb0
|
| 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-1.9.9.4-py2.py3-none-any.whl
| Download URL | ontospy-1.9.9.4-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
62a0be78dc40bdd8e28364381eb18768895daedc0076df37c992c35416c75790
|
|
BLAKE2b-256 checksum How to use checksums |
06dea7e48b1b44ef0bdc9ac356ab95150689318a2a1d63457da00011dbd4c301
|
| 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
|
Security for ontospy 1.9.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.