core-spec `relationships` have no cardinality field

Aperta
#694 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
2.7k
Fork
353
Merge medio
3g 19h
PR unite (30g)
86

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/ossie

Tutte le issue di apache/ossie

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.