Skip to content

Commit

Permalink
fix: InfixOWL fixes and cleanup (#2024)
Browse files Browse the repository at this point in the history
- InfixOWL fixes and cleanup.
  [PR #2024](#2024).
  - `rdflib.extras.infixowl.Restriction.__init__` will now raise a `ValueError`
    if there is no restriction value instead of an `AssertionError`.
  - Fixed numerous issues with
    `rdflib.extras.infixowl.Restriction.restrictionKind` which was essentially
    not working at all.
  - Fixed how `rdflib.extras.infixowl.Property.__repr__` uses
    `rdflib.namespace.OWL`. 
  - Removed `rdflib.extras.infixowl.Infix.__ror__` and
    `rdflib.extras.infixowl.Infix.__or__` as they were broken.
  - Removed unused `rdflib.extras.infixowl.termDeletionDecorator`.
  - Added `rdflib.extras.infixowl.MalformedClassError` which will replace
    `rdflib.extras.infixowl.MalformedClass` (which is an exception) in the next
    major version.

Final stage of update to InfixOWL, removing unused code, tidying, adding some docu-comments, minor improvements in robustness, updating previously-failing tests, adding more tests. Expanded documentation to follow.

Co-authored-by: Iwan Aucamp <aucampia@gmail.com>
  • Loading branch information
Graham Higgins and aucampia committed Jul 17, 2022
1 parent 81b36e2 commit 40eaa26
Show file tree
Hide file tree
Showing 7 changed files with 396 additions and 467 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@ and will be removed for release.
<!-- -->
<!-- -->

- InfixOWL fixes and cleanup.
[PR #2024](https://github.com/RDFLib/rdflib/pull/2024).
- `rdflib.extras.infixowl.Restriction.__init__` will now raise a `ValueError`
if there is no restriction value instead of an `AssertionError`.
- Fixed numerous issues with
`rdflib.extras.infixowl.Restriction.restrictionKind` which was essentially
not working at all.
- Fixed how `rdflib.extras.infixowl.Property.__repr__` uses
`rdflib.namespace.OWL`.
- Removed `rdflib.extras.infixowl.Infix.__ror__` and
`rdflib.extras.infixowl.Infix.__or__` as they were broken.
- Removed unused `rdflib.extras.infixowl.termDeletionDecorator`.
- Added `rdflib.extras.infixowl.MalformedClassError` which will replace
`rdflib.extras.infixowl.MalformedClass` (which is an exception) in the next
major version.

<!-- -->
<!-- -->
<!-- CHANGE BARRIER: END -->
<!-- -->
<!-- -->

<!-- -->
<!-- -->
<!-- CHANGE BARRIER: START -->
<!-- -->
<!-- -->

- Description of changes.
Closed [issue #....](https://github.com/RDFLib/rdflib/issues/).
[PR #....](https://ichard26.github.io/next-pr-number/?owner=RDFLib&name=rdflib).
Expand Down

0 comments on commit 40eaa26

Please sign in to comment.