From 026065f94553dc8936d96a5d2e616ff6b783d022 Mon Sep 17 00:00:00 2001 From: Jacobus Geluk Date: Wed, 14 Sep 2022 10:37:38 +0100 Subject: [PATCH 1/3] Fixing RDFLib/OWL-RL#53 --- owlrl/OWLRLExtras.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owlrl/OWLRLExtras.py b/owlrl/OWLRLExtras.py index 5c32156..272d5a7 100755 --- a/owlrl/OWLRLExtras.py +++ b/owlrl/OWLRLExtras.py @@ -351,8 +351,8 @@ class for further details. to_be_removed.add((RDFS.Class, RDFS.subClassOf, OWL.Class)) to_be_removed.add((RDFS.Datatype, RDFS.subClassOf, OWL.DataRange)) to_be_removed.add((RDFS.Datatype, OWL.equivalentClass, OWL.DataRange)) - to_be_removed.add((OWL.DataRange, RDFS.subClassOf, OWL.Datatype)) - to_be_removed.add((OWL.DataRange, OWL.equivalentClass, OWL.Datatype)) + to_be_removed.add((OWL.DataRange, RDFS.subClassOf, OWL.DatatypeProperty)) + to_be_removed.add((OWL.DataRange, OWL.equivalentClass, OWL.DatatypeProperty)) for t in to_be_removed: self.graph.remove(t) From 4b85d3577f0c7b4b557a307481c9bc328491a07b Mon Sep 17 00:00:00 2001 From: Jacobus Geluk Date: Wed, 14 Sep 2022 10:49:49 +0100 Subject: [PATCH 2/3] Work with rdflib 6.2.0 --- CHANGELOG.rst | 2 +- Doc_OLD/RDFClosure.Closure-module.html | 2 +- requirements.txt | 2 +- setup.py | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e71294c..548dab6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,7 +5,7 @@ v.6.0.2 - October, 2021 ~~~~~~~~~~~~~~~~~~~~~~~ Changes: -* works with rdflib >= 6.0.2 +* works with rdflib >= 6.2.0 * replaces owl namespace element lists with those of rdflib (OWL, RDF, RDFS, XSD) v5.2.3 diff --git a/Doc_OLD/RDFClosure.Closure-module.html b/Doc_OLD/RDFClosure.Closure-module.html index 32f2a64..9b65737 100644 --- a/Doc_OLD/RDFClosure.Closure-module.html +++ b/Doc_OLD/RDFClosure.Closure-module.html @@ -62,7 +62,7 @@

Module Closure

Requires: RDFLib, 4.0.0 and higher + target="_top">RDFLib, 6.2.0 and higher

License: This software is available for use under the =6.0.2 +rdflib>=6.2.0 diff --git a/setup.py b/setup.py index 268dcc0..7d27ab7 100755 --- a/setup.py +++ b/setup.py @@ -74,6 +74,7 @@ def open_local(paths, mode="r", encoding="utf8"): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", From d53a1c9eba2e0667a9ce44dbd7e7fdc180d74c5f Mon Sep 17 00:00:00 2001 From: Jacobus Geluk Date: Wed, 14 Sep 2022 10:55:30 +0100 Subject: [PATCH 3/3] Delete OWLRL.rst because it overlaps with owlrl.rst On case-insensitive systems --- docs/source/OWLRL.rst | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 docs/source/OWLRL.rst diff --git a/docs/source/OWLRL.rst b/docs/source/OWLRL.rst deleted file mode 100644 index 48099de..0000000 --- a/docs/source/OWLRL.rst +++ /dev/null @@ -1,8 +0,0 @@ -owlrl -===== - -.. automodule:: owlrl - :members: - :undoc-members: - :inherited-members: - :show-inheritance: