简体   繁体   English

Protege 中“等效于”和数据属性的问题

[英]Problem with “Equivalent To” and data properties in Protege

I am trying to add to "Equivalent To"我正在尝试添加到“等效于”

Patient and (hasSmokerStatus some xsd:boolean [= "true"])

however I cannot add it as I got error in xsd:boolean .但是我无法添加它,因为在xsd:boolean中出现错误。

I tried我试过了

Patient and (hasSmokerStatus some xsd:boolean ["true"])

I tried all that with and without quotes, as well as我尝试了所有带引号和不带引号的方法,以及

Patient and (hasSmokerStatus some "true"^^xsd:boolean)

but nothing works.但没有任何效果。

How can I use boolean in the "Equivalent To"?如何在“等效于”中使用 boolean?

Your idea is to adapt datatype restrictions ( 7.5 ) to boolean values.您的想法是使数据类型限制( 7.5 )适应 boolean 值。 However, no constraining facet is normative for this datatype ( 4.4 ).但是,对于此数据类型 ( 4.4 ),没有任何约束方面是规范的。 Instead, you need enumerations of literals ( 7.4 ).相反,您需要枚举文字( 7.4 )。 In Protégé:在 Protégé 中:

Patient that hasSmokerStatus some {true}

Data property existential restrictions (8.4.2 ) with single-value data ranges could be replaced with literal value restrictions ( 8.4.3 ).具有单值数据范围的数据属性存在限制 (8.4.2 ) 可以替换为文字值限制 ( 8.4.3 )。 In Protégé:在 Protégé 中:

Patient that hasSmokerStatus value true

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

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