我想知道是否有任何系统/基础设施能够执行一些人工推理过程,例如:Context: A is a pen Question: is A vertical or horizontal Reasoning process: 1. horizontal is anything parallel to the ground 2. A is parallel to the ground 3. A is horizontal
这个推理系统的最终目标是它能够生成具有一些预定义规则的事实。
提前谢谢你!
发布于 2018-04-05 03:00:31
你可以通过本体论来实现这一点。您可以使用Protege,这是一个免费的本体编辑器,配备了推理器来推断隐含的知识。按如下方式指定本体将达到预期的结果:
ObjectProperty: hasOrientation
Domain: Object
Range: Orientation
ObjectProperty: isParallel
Domain: Object
Range: Surface
Class: Object
Class: Orientation
EquivalentTo: {Horizontal , Vertical}
Class: Pen
SubClassOf: Object
Class: Surface
EquivalentTo: {Ground , Rock , Wall}
Individual: Ground
Types: Surface
Individual: Horizontal
Types: Orientation
DifferentFrom: Vertical
Individual: Rock
Types: Surface
Individual: Vertical
Types: Orientation
DifferentFrom: Horizontal
Individual: Wall
Types: Surface
Individual: myPen
Types: Pen
Facts: isParallel Ground
Rule:
Pen(?aPen), isParallel(?aPen, Ground) -> hasOrientation(?aPen, Horizontal)
Pen(?aPen), isParallel(?aPen, Wall) -> hasOrientation(?aPen, Vertical)这个推断是用Pen(?aPen), isParallel(?aPen, Ground) -> hasOrientation(?aPen, Horizontal)实现的,它基本上说明,如果aPen是一个Pen,并且aPen与Ground处于isParallel关系中,那么aPen具有Horizontal方向。
顺便说一句,您可能会对this research感兴趣。
https://stackoverflow.com/questions/49638695
复制相似问题