Skip to content
Merged
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
31 changes: 7 additions & 24 deletions entityshape/api_v2/comparejsonld.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,29 +132,12 @@ def _get_start_shape(self) -> dict:

:return: the start shape
"""
if "start" in self._shape:
start: dict = self._shape['start']
start_shape: dict = {}
if "shapes" in self._shape:
for shape in self._shape['shapes']:
if shape["id"] == start:
start_shape = shape
return start_shape
else:
if "start" not in self._shape:
return {}
if "shapes" not in self._shape:
return {}

def _process_one_of(self) -> None:
"""
Processes one of expression types in the shape

:return:
"""
pass

def _process_each_of(self) -> None:
"""
Processes each of expression types in the shape

:return:
"""
pass
for shape in self._shape['shapes']:
if shape["id"] == self._shape["start"]:
return shape
return {}