core-spec `relationships` have no cardinality field

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
data

調査の方向性

Start with spec.md relationships, then compare their current fields with the ontology layer's Multiplicity and the relational semantics in #246. Decide how cardinality should be declared on each side and how disagreement with inferred cardinality becomes a typed error. Done means the core-spec representation and rule are defined, including whether to reuse Multiplicity or use to_one | to_many.

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

説明

needs-triage

spec.md relationships carry from, to, from_columns, to_columns, and nothing that declares whether the relationship is to-one or to-many. The ontology layer has multiplicity (ManyToOne, OneToOne); the core model has no equivalent, so a model that never reaches Layer 4 cannot say "a customer has many sales areas; each sales area belongs to one customer" except as prose.

Sources like SAP CSN always declare cardinality on associations (cardinality: { max: '*' }, managed to-one), and never infer it. Two consequences today: a CSN → core-spec converter must drop it (apache/ossie-converters#54 keeps it in the SAP_CSN extension, which is the right workaround and also the symptom); and the portability ladder cannot grade it, because there is nothing in the document to grade.

#246's relational semantics infer join cardinality from keys (unique_keys, §6.4), which covers evaluation but not declaration. Request: an optional declared cardinality on core-spec relationships — minimum to_one | to_many per side, or the ontology layer's Multiplicity reused — and a rule that declared-vs-inferred disagreement is a typed error, not silent trust of either side. Raised earlier in Discussion #50 from the ontology side; this is the core-spec half.

主要言語
Python
スター
2.7k
フォーク
353
平均マージ
3日 19時間
マージ済み PR(30日)
86

環境構築

はじめの一歩

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

apache/ossie のほかの issue

apache/ossie の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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