Convenience functions to access and use terminologies

オープン
#131 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

issue #74 の用語クラスと使用例から始め、既存の object.get_terminology_equivalent() の動作と比較します。提案されている利便性エントリーポイント fetch、equivalent、lookup を、URL または UUID の識別子のケースを含めて定義・実装し、説明されているセクションおよびプロパティのワークフローをサポートすることを検証します。

索引モデルが issue の本文から書いたものです。

説明

terminology v1.4

Access and using terminologies (e.g., g-node terminologies) are cumbersome at the moment (cf. example in #74).

It would be nice to have convenience functions in the terminology class for this, e.g.:

import odml.terminology as term

# fetches the g-node terminology, alternatively a local uri or another external url can be stated
term.fetch_terminology("G-Node")

# to find a possible terminology equivalent for a given object (returns clone of terminology entry)
term.get_terminology_equivalent(object)  # object could be a section or a property object
# currently possible is only:
object.get_terminology_equivalent()

# to use a terminology as a building block for building a tree
sec_obj = odml.Section("Subject")

# case 1: I do not know exactly what terminology entry I want (e.g. for property)
new_sec = term.get_terminology(name="Age")  # fetches property in terminology with name age
sec_obj.append(new_sec[2])

# case 2: I know exactly what terminology entry I want (e.g. for section)
sec_obj = term.get_terminology(url="http://portal.g-node.org/odml/terminologies/v1.0/subject/subject.xml", children=False)

In v1.4 the url-identifier could be also replaced with the uuids.

主要言語
Python
スター
25
フォーク
30
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

G-Node/python-odml のほかの issue

G-Node/python-odml の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。