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.