def execute(self, obj): if not isinstance(obj, str): raise TypeError('\'{}\' is not of type str.'.format(obj)) parsed = self._parse(obj) parsed = self._process(**parsed) return iris.parse(iris.compose(**parsed))
def execute(self, obj): if not isinstance(obj, str): raise InvalidIRI('\'{}\' is not of type str.'.format(obj)) parsed = self._parse(obj) parsed = self._process(**parsed) return iris.parse(iris.compose(**parsed))
def _parse(self, obj): return iris.parse(obj)
def _parse(self, obj): return iris.parse(obj)