标准 UML 文件格式
我根据项目和日期在不同的工具(StarUML、BoUML、Papyrus、Omondo、Rational Rose 等)中设计了 UML 图(首先是 Rose,Omondo 之后,然后是 starUMl,...,现在是 Papyrus)。但是,我发现我无法打开旧的 UML 图,因为该工具已过时。
我想知道 UML 图是否有标准格式。可能还没有投入生产,但至少知道是否有标准格式的建议。
也许,Eclipse 正在对 M2 项目做类似的事情,但是其他工具(不是基于 Eclipse 的)有兴趣阅读这种格式吗?
每个 UML 工具都使用自己的格式,但我认为专有格式的时代已经结束,像这样的图表的开放格式应该存在。
I have designed UML diagrams in different tools (StarUML, BoUML, Papyrus, Omondo, Rational Rose, etc.) depending on the project and the date (rose was first, after Omondo, then starUMl, ..., now papyrus). However, I see that I cannot open my old UML diagrams because the tool is obsolete.
I would like to know if there is a standard format for UML diagrams. Probably not in production, but at least to know if there is proposal of standard format.
Probably, Eclipse is doing something like that with the M2 project, but do the other tools (not eclipse based) are interested in reading this format.?
Each UML tool uses its own format, but I think the era of proprietary format is over, and open format for diagrams like this should exist.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对此有两个答案:
理论上,UML 模型的标准交换格式是 XMI,但确实每个供应商实现的版本略有不同,因此交换并不现实。尽管如此,大多数工具正在聚合,至少支持 Eclipse MDT-UML2 XMI 实现,在我看来,它正在成为 事实上的 XMI 标准。
OMG 正在制定新标准:图表定义 应该可以解决当前 XMI 的问题(他们正在与许多顶级供应商以确保这次他们都朝着同一个方向前进),而且同样重要的是,它将不仅允许交换数据(即有关模型元素的信息),还允许交换布局和图形表示,因此导入后您会得到一个与您完全相同的模型首先导出
I have two answers to this:
In theory the standard exchange format for UML models is XMI but it´s true that each vendor implements a slightly different version so interchange is not a reality. Nevertheless, most tools are converging to at least support the Eclipse MDT-UML2 XMI implementation which in my opinion is becoming de facto XMI standard.
The OMG is working on a new standard : Diagram Definition that is supposed to fix the problems with the current XMI one (they are working a lot with many of the top vendors to make sure that this time they all go in the same direction) and, also important, it will allow to interchange not only the data (i.e. the info about the model elements) but also the layout and graphical representation so that after the import you get a model exactly as the same you exported in the first place
您听说过 XMI 吗?
@JordiCabot 这里添加了一些有趣的细节。
Have you heard of XMI?
@JordiCabot here adds some interesting details about it.
除了 Jordi 提到的图表定义标准化活动之外,请注意 OMG 正在进行另一项行动:
2011 年 6 月已针对 CANONICAL XMI 格式发出征求意见的请求,该格式基本上是用于编写 XMI 文档的子集和一组附加规则,应限制创建不同 XMI 方言的可能性,或者至少应该允许工具理解一种常见的方言(规范的方言)。
Besides Jordi's reference to the Diagram Definition standardization activity, please note that there is another action ongoing from OMG:
a request for comments has been issued in June 2011 for a CANONICAL XMI format, which is basically a subset and a set of additional rules for writing XMI documents that should limit the possibility of creating different XMI dialects, or at least should allow tools to understand a common dialect (the canonical one).