A simple implementation of the OWL2 RL Profile on top of RDFLib: it expands the graph with all possible triples that OWL RL defines. It can be used together with RDFLib to expand an RDFLib Graph object, or as a stand alone service with its own serialization.
Clone or download
ashleysommer Merged LiteralProxy removal code by @wrobell
Renamed closure.py to owlrl.py
Moved changelog to its own CHANGELOG.rst file
Fixed bdist_wheel bug that mangled shebang lines in scripts.
Latest commit 29c4baf Nov 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Doc_OLD
docs
owlrl Merged LiteralProxy removal code by @wrobell Nov 28, 2018
scripts Merged LiteralProxy removal code by @wrobell Nov 28, 2018
tests
.gitignore
CHANGELOG.rst
LICENSE.txt
MANIFEST.in
PKG-INFO
README.rst
README_OLD.md
epydoc.css
requirements-dev.txt
requirements.txt
setup.cfg
setup.py
setup.py.old

README.rst

Original Author DOI PyPI badge

OWL-RL

A simple implementation of the OWL2 RL Profile, as well as a basic RDFS inference, on top of RDFLib. Based mechanical forward chaining. The distribution contains:

OWL-RL: the Python library. You should copy the directory somewhere into your PYTHONPATH. Alternatively, you can also run the python setup.py install script in the directory.

  • scripts/RDFConvertService.py: can be used as a CGI script to invoke the library. It may have to be adapted to the local server setup.
  • scripts/owlrl.py: script that can be run locally on to transform a file into RDF (on the standard output). Run the script with -h to get the available flags.

The package requires Python version 3.5 or higher; it depends on RDFLib; version 4.2.2 or higher is required. If you need the python 2.7.x compatible version, see the @/py2 branch in this repository.

For the details on RDFS, see the RDF Semanics Specification; for OWL 2 RL, see the OWL 2 Profile specification.

View the OWL-RL documentation online: http://owl-rl.readthedocs.io/

To view the changelog for this software library, see CHANGELOG.rst.

This software is released under the W3C© SOFTWARE NOTICE AND LICENSE. See LICENSE.txt.