简体   繁体   English

Protege 中的一个问题

[英]issues with min one in Protege

I have a homework to do for my studies that requires to use Protégé.我有一项需要使用 Protégé 的学习作业要做。 I am pretty new with the language OWL and with this software.我对语言 OWL 和这个软件很陌生。

We need to create an ontology on hiking trails.我们需要在远足路径上创建一个本体。 I have multiple classes like Hikers, Trails, Restaurants, Hotels, Equipements, and Places.我有多个课程,例如徒步旅行者、步道、餐厅、酒店、设备和场所。

This last class (Places) has 2 subclasses: StartEndPoint and PicnicArea.最后一个 class(Places)有 2 个子类:StartEndPoint 和 PicnicArea。 The class StartEndPoint correspond to the places where a trails start and end. class StartEndPoint 对应于路径的起点和终点。 So for my Trails class I have the axiome: (startingPoint exactly 1 Places) and (endingPoint exactly 1 Places) to symbolise that a trail starts and end at exactly one starting and ending point.因此,对于我的 Trails class,我有公理:(startingPoint 正好 1 个地方)和(endpoint 正好 1 个地方)来象征一条路径在一个起点和终点处开始和结束。

Similarly, i would like to create the axiom: each starting and ending place has at least one restaurant near this point.同样,我想创建一个公理:每个起点和终点在这一点附近至少有一家餐厅。 To do so, i have added the axiom: "eatingPlace min 1 Restaurants" in the class StartEndPoint.为此,我在 class StartEndPoint 中添加了公理:“eatingPlace min 1 Restaurants”。

But when I run the reasoner, it says no error.但是当我运行推理器时,它说没有错误。 I did create some instances from all classes but for the instances from the class StartEndPoint, it should say that there is no restaurant as I didn't add any property "eatingPlace" to those instances (see screenshots below).我确实从所有类中创建了一些实例,但对于来自 class StartEndPoint 的实例,它应该说没有餐厅,因为我没有向这些实例添加任何属性“eatingPlace”(参见下面的屏幕截图)。

I wanted to try if the minimum one were working well and so it should have returned me an error i guess.我想试试最小的是否运行良好,所以我猜它应该给我一个错误。 But I got nothing.但我一无所获。 Is it normal?正常吗? If yes why?如果是,为什么? And if no, how could I resolve this?如果没有,我该如何解决这个问题?

thanks a lot for your help非常感谢你的帮助

在此处输入图像描述 在此处输入图像描述

The reasoner is not finding any errors because of the Open World Assumption.由于开放世界假设,推理者没有发现任何错误。 You are stating that each endpoint has at least one restaurant near it, but this does not place any obligation on the ontology to list which restaurant is near to your endpoints - ie, if you ask the reasoner if there is a restaurant near endpoint X, the reasoner will say yes;您是在声明每个端点附近至少有一家餐厅,但这并没有对本体施加任何义务来列出您的端点附近的餐厅 - 即,如果您询问推理者端点 X 附近是否有餐厅,推理者会说是; but, if you ask it to list the restaurants near endpoint X, the list might be empty because the information is not included in the ontology.但是,如果您要求它列出端点 X 附近的餐馆,则该列表可能为空,因为该信息不包含在本体中。 This is expected behaviour for OWL ontologies.这是 OWL 本体的预期行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM