跳到主要内容

Profile Diagram(配置文件图)· ⚠️ Simplified

分类: Structure Diagrams(静态结构)| OMG UML 2.x ID: Profiles

Profile 用 stereotypes(扩展)和 tagged values(属性)扩展 UML 元模型,让 UML 适配特定领域(金融、医疗、IoT)。

moqi-uml v0.1: 用 sublabel 模拟 stereotypes(<<transactional>>),NodeKind 模拟元类型。真正的自定义 taxonomy 需要 SemanticDiagram 支持动态 NodeKind。

Structure · ⚠️ Simplified

Profile Diagram

Domain-specific stereotypes via sublabel — <<transactional>>, <<append-only>>, <<async>>.

{ "preset": "editorial", "theme": "light", "direction": "LR", "nodes": [ { "id": "order", "label": "Order", "sublabel": "<<transactional>>", "kind": "backend" }, { "id": "audit", "label": "AuditLog", "sublabel": "<<append-only>>", "kind": "database" }, { "id": "cache", "label": "ReadCache", "sublabel": "<<ttl=300s>>", "kind": "database" }, { "id": "notifier", "label": "Notifier", "sublabel": "<<async>>", "kind": "messagebus" } ], "edges": [ { "from": "order", "to": "audit", "label": "writes", "kind": "emphasis" }, { "from": "order", "to": "cache", "label": "invalidates" }, { "from": "order", "to": "notifier", "label": "publishes" } ] }