将rdfs:range的xsd:string限制为[A-Z] [英] restrict xsd:string to [A-Z] for rdfs:range

查看:145
本文介绍了将rdfs:range的xsd:string限制为[A-Z]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将数据类型属性的范围指定为文字格式匹配[A-Z]的xsd:strings?至少乍一看,OWL限制对我没有帮助.有没有办法用正则表达式来做到这一点,如果可以,在哪里?

How can I specify the range of a datatype property to be xsd:strings whose literal forms match [A-Z]? OWL restrictions don't do the trick for me, at least at first glance. Is there a way to do this with regular expressions and if so, where?

推荐答案

我想你的意思是单个大写字母",它是string[pattern "[A-Z]"].

I suppose you mean "single capital letter" which is string[pattern "[A-Z]"].

如果您使用的是Protege,请将其输入数据范围表达式"标签.

If you are using Protege, enter this into the "Data range expression" tab.

HermiT 1.3.7可以对此进行检查,并提供有关不一致的属性值的说明.

HermiT 1.3.7 can check this and provide explanations about inconsistent property values.

这篇关于将rdfs:range的xsd:string限制为[A-Z]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆