Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Query, inspect and visualize knowledge models encoded as RDF/OWL ontologies.

Project description

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[HTML]

For more examples of the kind of documentation that can be generated out-of-the-box, take a look at this page.

More info

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

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.

Files for ontospy, version 1.9.8.3
Filename, size File type Python version Upload date Hashes
Filename, size ontospy-1.9.8.3-py2.py3-none-any.whl (7.6 MB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ontospy-1.9.8.3.tar.gz (3.7 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page