简体   繁体   English

Protege中的合格基数限制定义

[英]Qualified cardinality restriction definition in Protege

I was following this tutorial -> LINK 我正在学习本教程 - > LINK

At page 75, it explains how to define a FourCheesePizza using a qualified cardinality restriction. 在第75页,它解释了如何使用合格的基数限制来定义FourCheesePizza。 Under the instructions it says "With this description a FourCheesePizza can still also have other relationships to other kinds of toppings. In order for us to say that we just want it to have four cheese toppings and no other toppings we must add the keyword 'only' (the universal quantifier)". 根据说明,“通过这个描述,FourCheesePizza仍然可以与其他类型的浇头有其他关系。为了让我们说我们只想要它有四个奶酪浇头而没有其他浇头,我们必须添加关键字'仅'(通用量词)“。

Now, my definition of FourCheesePizza is: 现在,我对FourCheesePizza的定义是:

Pizza and hasTopping exactly 4 CheeseTopping

but I don't understand where to add the 'only' keyword, because I only get syntax errors. 但我不明白在哪里添加'only'关键字,因为我只会遇到语法错误。

如果你想要一个只有奶酪的四块芝士披萨,你必须用这种方式来定义它:

Pizza and hasTopping exactly 4 CheeseTopping and hasTopping only CheeseTopping

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

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