Skip to content

Commit

Permalink
TODOs are added for the next release
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Mar 28, 2024
1 parent fdfc143 commit abb2593
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
15 changes: 6 additions & 9 deletions owlapy/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
"""The OWL-APy Model classes and methods.
Their names should match those of OWL API [1].
If OWL API has streaming and getter API, it is enough to provide the streaming API only.
Many help texts copied from OWL API.
[1] https://github.com/owlcs/owlapi"""
"""@TODO: CD: This is not a python code. We should refactor this model module."""

from abc import ABCMeta, abstractmethod
from functools import total_ordering
Expand Down Expand Up @@ -249,6 +241,11 @@ def get_nnf(self) -> 'OWLClass':
def str(self):
return self.get_iri().as_str()

@property
def reminder(self)->str:
"""The reminder of the IRI """
return self.get_iri().get_remainder()

class OWLPropertyExpression(OWLObject, metaclass=ABCMeta):
"""Represents a property or possibly the inverse of a property."""
__slots__ = ()
Expand Down
9 changes: 9 additions & 0 deletions owlapy/model/_iri.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ def str(self) -> str:
"""
return self.as_str()

@property
def reminder(self) -> str:
"""
Returns:
The string corresponding to the reminder of the IRI.
"""
return self.reminder()

def get_short_form(self) -> str:
"""Gets the short form.
Expand Down

0 comments on commit abb2593

Please sign in to comment.