简体   繁体   English

类似 rdfs:range 的属性,但具有暗示性而非排他性

[英]Property like rdfs:range but suggestive and not exclusive

I'm authoring a vocab currently and would like to suggest a range for a property to give users as hint what resources they could use.我目前正在创作一个词汇,并想建议一个属性范围,以向用户提示他们可以使用哪些资源。 I currently specify an rdfs:range for the property but this is too restrictive.我目前为该属性指定了一个rdfs:range ,但这太严格了。

The vocabulary Schema.org defines/uses the property schema:rangeIncludes :词汇 Schema.org 定义/使用属性schema:rangeIncludes

Relates a property to a class that constitutes (one of) the expected type(s) for values of the property.将属性与构成属性值的预期类型(之一)的类相关联。

This property merely gives a hint to authors and consumers;这个属性只是给作者和消费者一个提示; it doesn't apply rdfs:range :它不适用于rdfs:range

schema:rangeIncludes a rdf:Property ;
    rdfs:label "rangeIncludes" ;
    rdfs:comment "Relates a property to a class that constitutes (one of) the expected type(s) for values of the property." ;
    schema:domainIncludes schema:Property ;
    schema:isPartOf <https://meta.schema.org> ;
    schema:rangeIncludes schema:Class .

FWIW, Schema.org adds this disclaimer to their meta terms : FWIW,Schema.org 在其元术语中添加了此免责声明:

They are not currently advocated for widespread use across the web.目前不提倡在网络上广泛使用它们。

rdfs:range restricts nothing. rdfs:range没有任何限制。 Just because you've stated that some property P has a range V does not mean when you assert data :a :P :b that b has to be of type V . 仅仅因为你已经指出,一些财产P拥有一系列V当你断言数据并不意味着:a :P :bb 必须是类型V It can, in fact, be anything . 实际上,它可以是任何东西

If you hook a reasoner up, in the aforementioned case, it will tell you that b is a V due to the range assertion, but it will not complain that you've done anything wrong or violated any condition. 如果将推理机连接起来,在上述情况下,由于范围断言,它会告诉您bV ,但不会抱怨您做错了任何事情或违反了任何条件。

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

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