OWL本体在知识工程中有着广泛应用,人们考虑用它来解决软件开发中的问题。该文分析OWL本体和Java面向对象模型问的差别,指出直接映射存在的问题,阐述OWL本体映射到面向方面模型的特点,并提出OWL本体向AspectJ面向方面模型映射的具体方法,较好实现OWL本体向软件代码模型的映射。
OWL ontology is widely used in knowledge engineering, which is adopted to solve the problems in software development. This paper analyzes the differences between OWL ontology and Java object-oriented model, points out some problems existed in mapping directly to Java object-oriented model, and expounds the merits of mapping to aspect-oriented model. The method to map OWL ontology to AspectJ aspect-oriented model is also proposed, which implements the mapping to software code model well.