Metadata-Version: 2.4
Name: ontospy
Version: 2.3
Summary: Query, inspect and visualize ontologies encoded via RDF and OWL.
Home-page: https://github.com/lambdamusic/ontospy
Author: Michele Pasin
Author-email: michele.pasin@gmail.com
License-Expression: MIT
Keywords: ontology semantic web linked data rdf owl visualization documentation knowledge graph
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rdflib>=6.0.0
Requires-Dist: SPARQLWrapper>=1.8.0
Requires-Dist: html5lib>=1.0.1
Requires-Dist: requests>=2.20.0
Requires-Dist: pyfiglet>=0.7.5
Requires-Dist: click>=6.6
Requires-Dist: colorama>=0.3.7
Requires-Dist: pyparsing>=2.1.10
Requires-Dist: jinja2>=3.1.2
Requires-Dist: jinja2-time>=0.2.0
Requires-Dist: pygments>=2.15
Provides-Extra: shell
Requires-Dist: readline; extra == "shell"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: license-expression
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Ontospy

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


#### Links

-   [Pypi](https://pypi.org/project/ontospy/)
-   [Github](https://github.com/lambdamusic/ontospy)
-   [Docs](http://lambdamusic.github.io/Ontospy/)
-   [Changelog](http://lambdamusic.github.io/Ontospy/pages/changelog.html)
-   [YouTube](https://youtu.be/MkKrtVHi_Ks)

# 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](https://pepy.tech/badge/ontospy)](https://pepy.tech/project/ontospy)


## 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](https://lambdamusic.github.io/ontospy-examples/index.html), or jump straight to the sample [CIDOC-CRM](https://lambdamusic.github.io/ontospy-examples/cidoccrm_ecrm-2022-11owlxml/index.html) or [FOAF](https://lambdamusic.github.io/ontospy-examples/foafrdf/index.html) 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](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)

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](https://docs.pytest.org/):

```
$ 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](docs/pages/tests.md).

## Documentation

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