Skip to content

Commit

Permalink
Added sub_schemata to EntitySchema
Browse files Browse the repository at this point in the history
  • Loading branch information
robertisele committed Nov 30, 2023
1 parent 3bfae0c commit f86698b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmem_plugin_base/dataintegration/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ class EntitySchema:
:param type_uri: The entity type
:param paths: Ordered list of paths
:param sub_path: Path starting from the root for enumerating the entities.
:param sub_schemata:
"""

def __init__(self,
type_uri: str,
paths: Sequence[EntityPath],
sub_path: EntityPath = EntityPath("")) -> None:
sub_path: EntityPath = EntityPath(""),
sub_schemata: Optional[Sequence['EntitySchema']] = None) -> None:
self.type_uri = type_uri
self.paths = paths
self.sub_path = sub_path
self.sub_schemata = sub_schemata


class Entity:
Expand Down

0 comments on commit f86698b

Please sign in to comment.