Source code for digit.child_base_data

# -*- coding:utf-8 -*-

from .base_data import BaseData

"""
按照下面的继承关系实现各个数据类
- BaseData
    - RelationalData
        - TableData
        - LabelData
    - NonRelationalData
        - DocData
        - PhotoData
        - VideoData
        - AudioData
    - GraphData
"""


[docs]class RelationalData(BaseData): """ 关系型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class TableData(RelationalData): """ 表格型数据类,集成继承关系型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class LabelData(RelationalData): """ 标签型数据类,继承关系型数据类s """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class NonRelationalData(BaseData): """ 非关系型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class DocData(NonRelationalData): """ 文本型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class ImageData(NonRelationalData): """ 图片型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class VideoData(NonRelationalData): """ 视频型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class AudioData(NonRelationalData): """ 音频型数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)
[docs]class GraphData(BaseData): """ 图数据类 """ def __init__(self, data_id:str ): super().__init__(data_id)