Skip to main content

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.

Downloads

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.

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 -r requirements.txt
$ pip install -e .

Documentation

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.

Source Distribution

ontospy-1.9.9.1.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

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

ontospy-1.9.9.1-py2.py3-none-any.whl (7.7 MB view details)

Uploaded Python 2Python 3

File details

Details for the file ontospy-1.9.9.1.tar.gz.

File metadata

  • Download URL: ontospy-1.9.9.1.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for ontospy-1.9.9.1.tar.gz
Algorithm Hash digest
SHA256 7d65cc399e5aa60f1ea45aed5ffd269049bc580203e55e3b512417c1297fc0ca
MD5 05df8eb827bd8dd2c4468a13fe61594a
BLAKE2b-256 657f8a645f82e4d35158413a3c7af1746c2e5c2170fd5c32b650d9a94e7de424

See more details on using hashes here.

File details

Details for the file ontospy-1.9.9.1-py2.py3-none-any.whl.

File metadata

  • Download URL: ontospy-1.9.9.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for ontospy-1.9.9.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 66cd269661fd352a1d3c269225bc1f4432d1f48aa2d2b2fd57b3ee6294456be1
MD5 e230a847bb97c54e598b37e86876879c
BLAKE2b-256 1067b2a3195aed1b3d9ad62afd643126247d8c1aa4990161ff2eefa3d7b116d1

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