Section attributes
还没有人认领这个 Issue。
评估
调研方向
首先检查 odml.Section() 和 odml.Property() 构造函数,以及它们的 parent 和 reference 属性是如何使用的。明确 Section 是否应接受 parent 和 reference,并在进行更改之前定义所需的 API 行为;当该设计达成一致并得到一致实现时,issue 即完成。
由索引模型根据 Issue 内容生成。
描述
Currently odml.Section() takes name, type, parent and definition.
For me parent does not make sense here. Especially since odml.Property() does not have a parent args.
Another thing: a Section object has a reference attribute, but it can't be defined when creating the Section like it can be done for a Property. In general I think that the reference (if interpreted as reference from where metadata are coming from) is an attribute which should only belong to Properties and not Sections. A Section could contain Properties with metadata coming from different sources.
What do you think?
- 主要语言
- Python
- 星标
- 25
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
G-Node/python-odml 的其他 Issue
-
RDF
难度 2/5 1-3 小时 新手友好度 72/100
G-Node/python-odml#172 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
G-Node/python-odml#420 ·
-
难度 4/5 3-5 天 新手友好度 35/100
G-Node/python-odml#418 ·
-
难度 5/5 一周以上 新手友好度 25/100
G-Node/python-odml#417 · 8 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
G-Node/python-odml#406 ·
查看 G-Node/python-odml 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 85/100
data-umbrella/du-event-board#225 ·
-
难度 2/5 1-3 小时 新手友好度 75/100