Skip to main content

Ontospy

Python library and command-line interface for inspecting and visualizing RDF models.

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.

Downloads

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

Maintenance

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 -e .

Run the tests with pytest:

$ pip install pytest
$ pytest                 # all tests
$ pytest -m "not remote"  # skip tests that need network access, as CI does

More details in docs/pages/tests.md.

Documentation

http://lambdamusic.github.io/Ontospy/

Metadata

Release files for ontospy 2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ontospy 2.5
File Size Uploaded
ontospy-2.5.tar.gz 3.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ontospy 2.5
File Interpreter ABI Platform
ontospy-2.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 MB

Release files / ontospy-2.5.tar.gz

Download URL ontospy-2.5.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
958aa9cda504d4cce22fa5a849cb6c6146e7c6d965754bbd9630c9fbb777f79e
BLAKE2b-256 checksum
How to use checksums
cd21a4151a2df1f7a999d573a55101052e92a63235ac783df06f11012318a47d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / ontospy-2.5-py3-none-any.whl

Download URL ontospy-2.5-py3-none-any.whl
Size 3.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d5e95ce0a3b0fea13e479f61f68d3853a31545976e73aecddce907355626e5be
BLAKE2b-256 checksum
How to use checksums
330b618f85eb23a80d7a2fa1b9d296b65ddd4edfcec2a449bb154df08c754c5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

2.5 This release

2 release files

2.4

2 release files

2.3

2 release files

2.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.9.9

2 release files

1.9.8

2 release files

1.9.7

2 release files

1.9.6

2 release files

1.9.5

2 release files

1.9.4

2 release files

1.9.3

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9

2 release files

1.8.8

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8

2 release files

1.7.7

2 release files

1.7.6

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.9

2 release files

1.6.8

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

3 release files

1.5.2

2 release files

1.5.1

1.5.0

2 release files

1.2.3

2 release files

1.2.2

3 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page