Skip to content

Commit

Permalink
Merge pull request #19 from dice-group/refactoring_sparql_mapping
Browse files Browse the repository at this point in the history
WIP:Refactoring:Restriction moved from model
  • Loading branch information
Demirrr committed Apr 8, 2024
2 parents d48c918 + 61acb77 commit bf980e6
Show file tree
Hide file tree
Showing 5 changed files with 372 additions and 379 deletions.
14 changes: 14 additions & 0 deletions owlapy/has.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@ def get_filler(self) -> _T:
the value
"""
pass


class HasCardinality(metaclass=ABCMeta):
"""An interface to objects that have a cardinality."""
__slots__ = ()

@abstractmethod
def get_cardinality(self) -> int:
"""Gets the cardinality of a restriction.
Returns:
The cardinality. A non-negative integer.
"""
pass
Loading

0 comments on commit bf980e6

Please sign in to comment.