Skip to content
/ OWL-RL Public

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.

License

Notifications You must be signed in to change notification settings

RDFLib/OWL-RL

Repository files navigation

Original Author DOI PyPI badge

OWL-RL Logo

OWL-RL

A simple implementation of the OWL2 RL Profile, as well as a basic RDFS inference, on top of RDFLib, based on forward chaining.

This package is a Python library that also contains a couple of scripts:

  • scripts/RDFConvertService: a CGI script to invoke the library. It may have to be adapted to the local server setup.
  • scripts/owlrl: a 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.

Installation

This package requires RDFLib 7.1.3 as its only dependency and it can be installed from the Python Package index in the usual way:

pip install owlrl

or

poetry add owlrl

Use

This package can run inference according to RDFS and/or OWL-RL.

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

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

License

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

Support & Contacts

For general "how do I..." queries, please use https://stackoverflow.com and tag your question with rdflib. Existing questions:

If you want to contact the rdflib maintainers, please do so via:

Development

Changes

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

Release Procedure

  • update all the version numbers

    • pyproject.toml
    • README.rst
  • remove the current dist/ dir

  • build the new distribution

  • test the metadata rendering

  • test push it to PyPI

  • actually push it to PyPI

rm -vf dist/*
poetry build
bsdtar -xvf dist/owlrl-*.whl -O '*/METADATA' | view -
bsdtar -xvf dist/owlrl-*.tar.gz -O '*/PKG-INFO' | view -

poetry publish --dry-run
poetry publish -u __token__ -p <OWL-RL PyPI Token>
  • commit the version update

  • tag it

  • push the commits & tag to GitHub

  • make a GitHub release

    • reuse the CHANGELOG entry for the release

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages