本体技术是知识工程领域的研究热点,本体对于领域知识具有强大的语义描述能力和推理能力,能够很好地被计算机识别和理解,从而可在语义层面实现知识共享、重用和扩展。本体技术在形式化、开放性和共享性等方面比其他知识建模技术能提供更强大的能力。介绍了基于本体的知识库的概念以及基本构架;描述了本体知识库查询的语言特点,重点阐述了SWRL规则以及SQWRL语义查询;采用语义网规则语言(SWRL)将材料选择本体中的因果知识表达为一组知识规则,增强本体知识库的推理能力;采用Java编程技术调用SWRL API和OWL API,将知识库层、用户界面层及推理层三大模块组建成一个完整的语义查询系统,并使用基于描述逻辑的Drools规则推理机对本体进行规则推理。给出了一个基于SQWRL语义查询的工程材料领域本体知识查询实例进行说明。
Ontology technology is a hot research topic in the field of knowledge engineering.Ontology has a powerful semantic description and reasoning ability for domain knowledge,which can be well recognized and understood by computers so as to realize the knowledge sharing,reusing and extension in semantic level.The ontology technology can provide more powerful abilities than other knowledge modeling techniques in the formalism,openness and sharing.The basic concept and framework of the ontology based knowledge base is introduced,and the characteristics of language in ontology knowledge base is described,especially for SWRL and SQWRL.The causal knowledge for material selection is represented as a set of knowledge rules coded with Semantic Web Rule Language( SWRL),which enhance the reasoning ability of the ontology knowledge base. A Java programming technology which uses SWRL API and OWL API is employed,which integrates the knowledge base layer,the inference layer,and the user interface layer,and builds a overall material selection knowledge system.The Drools rule reasoning machine is employed to implement the ontology reasoning,and a semantic query example based on SQWRL for engineering material domain knowledge is presented.