Skip to content

Commit

Permalink
Added is_attribute to EntityPath
Browse files Browse the repository at this point in the history
  • Loading branch information
robertisele committed Nov 30, 2023
1 parent c73ed45 commit 3bfae0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmem_plugin_base/dataintegration/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ class EntityPath:
:param path: The path string using the Silk path language.
:param is_uri: If true, values for this path must only contain URIs that point to
a sub entity.
a sub entity.
:param is_attribute If true, a single value is expected and supporting datasets will
not use arrays etc. For instance, in XML, attributes will be
used instead of nested elements.
"""

def __init__(self, path: str, is_uri: bool = False) -> None:
def __init__(self, path: str,
is_uri: bool = False,
is_attribute: bool = False) -> None:
self.path = path
self.is_uri = is_uri
self.is_attribute = is_attribute


class EntitySchema:
Expand Down

0 comments on commit 3bfae0c

Please sign in to comment.