Skip to content

Commit

Permalink
gitignores
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascar committed Sep 13, 2021
1 parent f9c094d commit 34eaf3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ sdist/
*.egg-info/

owlrl*.tar.gz

# Mac
.DS_Store
7 changes: 1 addition & 6 deletions owlrl/OWLRL.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,12 +774,7 @@ def _classes(self, triple, cycle_num):
for cc in self.graph.objects(xx, onClass):
for u, y in self.graph.subject_objects(pp):
# This should not occur:
if ((y, rdf_type, cc) in self.graph or cc == Thing) and (
u,
rdf_type,
xx,
) in self.graph:

if ((y, rdf_type, cc) in self.graph or cc == Thing) and (u, rdf_type, xx) in self.graph:
self.add_error(
"Erroneous usage of maximum qualified cardinality with %s, %s and %s"
% (xx, cc, y)
Expand Down

0 comments on commit 34eaf3f

Please sign in to comment.