tbox: v1.6 - provenance portee par les classes concretes, isAbstract declare et non plus infere, ForeignKeyConstraint devient ForeignKey, les dix classes sans rdfs:comment completees

This commit is contained in:
Bastien Gourdon
2026-08-05 09:13:12 +02:00
parent f83b7d7491
commit 1c8ab77003
20 changed files with 4770 additions and 1081 deletions
+13 -13
View File
@@ -36,7 +36,7 @@ DOMAIN_STYLE = OrderedDict([
MULTI = {"composedOf", "usesConcept", "hasElement", "hasMetric", "measures",
"computedBy", "qualifiedBy", "hasGrainElement", "monitoredBy", "hasSynonym",
"hasUnit", "hasSource", "packages", "exposes"}
"unit", "hasSource", "packages", "exposes"}
SUBJECT_DOMAIN = "DD_06" # the hub owner: everything else is a dependency
@@ -183,25 +183,25 @@ def build(subjects):
nodes[subj] = {
"id": subj,
"kind": t,
# the model carries both names now: hasShortLabel for screens,
# hasName for the record. The viewer stops keeping its own list.
# the model carries both names now: shortLabel for screens,
# name for the record. The viewer stops keeping its own list.
"label": LABELS.get(t, t),
"shortName": rec.get("hasShortLabel", ""),
"ident": rec.get("hasIdentifier", ""),
"name": rec.get("hasName", subj.replace("ex:", "")),
"shortName": rec.get("shortLabel", ""),
"ident": rec.get("identifier", ""),
"name": rec.get("name", subj.replace("ex:", "")),
"domain": domain_of(subj, rec, subjects),
"arb": rec.get("arbitrationStatus", "") == "TO_ARBITRATE",
"status": rec.get("hasStatus", ""),
"definition": rec.get("hasBusinessDefinition", ""),
"rule": rec.get("hasBusinessRule", ""),
"formula": rec.get("hasFormula", ""),
"units": as_list(rec.get("hasUnit")),
"status": rec.get("status", ""),
"definition": rec.get("businessDefinition", ""),
"rule": rec.get("businessRule", ""),
"formula": rec.get("formula", ""),
"units": as_list(rec.get("unit")),
"physical": rec.get("physicalName", ""),
"format": rec.get("hasFormat", ""),
"format": rec.get("format", ""),
"source": ", ".join(as_list(rec.get("hasSource"))),
"sourcedFrom": rec.get("sourcedFrom", ""),
"fqn": "",
"version": rec.get("hasVersion", ""),
"version": rec.get("version", ""),
"operatedBy": rec.get("operatedBy", ""),
"governedBy": rec.get("governedBy", ""),
"productOwner": rec.get("hasProductOwner", ""),