Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODOs are added for the next release #7

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading