Skip to content

Commit

Permalink
Merge pull request #18 from dice-group/refactoring_sparql_mapping
Browse files Browse the repository at this point in the history
Refactoring sparql mapping
  • Loading branch information
Demirrr authored Apr 8, 2024
2 parents 2fa7b73 + fd04520 commit d48c918
Show file tree
Hide file tree
Showing 11 changed files with 469 additions and 466 deletions.
21 changes: 21 additions & 0 deletions owlapy/has.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,24 @@ def operands(self) -> Iterable[_T]:
The operands.
"""
pass



class HasFiller(Generic[_T], metaclass=ABCMeta):
"""An interface to objects that have a filler.
Args:
_T: Filler type.
"""
__slots__ = ()

@abstractmethod
def get_filler(self) -> _T:
"""Gets the filler for this restriction. In the case of an object restriction this will be an individual, in
the case of a data restriction this will be a constant (data value). For quantified restriction this will be
a class expression or a data range.
Returns:
the value
"""
pass
2 changes: 1 addition & 1 deletion owlapy/iri.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from weakref import WeakKeyDictionary

from owlapy import namespaces
from owlapy.owlobject import OWLAnnotationSubject, OWLAnnotationValue
from .owl_annotation import OWLAnnotationSubject, OWLAnnotationValue
from owlapy.namespaces import Namespaces


Expand Down
Loading

0 comments on commit d48c918

Please sign in to comment.