|
发表于 2005-11-15 00:46:17
|
显示全部楼层
看了包教授的《医学信息学》,四个问题探讨
<!--quote-江湖夜雨+2005-11-09 03:07--><div class='quotetop'>引用 江湖夜雨 @ 2005-11-09 03:07)</div><div class='quotemain'><!--quote1-->但提出一个商榷:“只是OOP中class的property是为了描述operation而设置的。”这个表述可能不是非常严谨。在OOP中的CLASS的PROPERTY(更准确的词汇应该是attribute)主要还是描述属性的,而不是操作性的。CLASS中的Method(方法)才重点是用来描述操作的<!--quote2--></div><!--quote3-->
<br>
<br>这里的property只是泛指class的性质,而不是attribute。可能我的表达不太好,其实应该这样说,
<br>OOP centers primarily around methods on classes, so the programmer makes design decisions based on the operational properties of a class, whereas an ontology designer makes these decisions based on the structural properties of a class. As a result, a class structure and relations among classes in an ontology are different from the structure for a similar domain in OOP.
<br>
<br>简而言之,用你的例子,就是说OOP侧重于eye是干什么的,body是干什么的;而ontology是说eye和body之间可能存在的关系是什么。虽然不是很确切,希望能帮助你理解。 |
|