简体   繁体   中英

Protege: How to specify restrictions on data properties?

I'm creating an ontology using Protege and would like to specifiy restrictions on data properties. Let's say there is a data property named hasCode . I've defined string as range and would like to further define that the maximum length is 3 characters.

Protege in OWL2 allows you to use the Manchester syntax to define data range expressions. Open the range window, and enter a data range expression.

In this case to limit the length, you can have string[length x].

For more, see http://www.w3.org/TR/owl2-manchester-syntax/

表达窗

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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