[Semantic Web]RDF中使用xml:lang的注意点

http://www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/ RDF/XML permits the use of the xml:lang attribute as defined by 2.12 Language Identification of XML 1.0 [XML] to allow the identification of content language. The xml:lang attribute can be used on any node element or property element to indicate that the included content is in the given language. Typed literals which includes XML literals are not affected by this attribute. The most specific in-scope language present (if any) is applied to property element string literal content or property attribute values. The xml:lang="" form indicates the absence of a language identifier. http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-typed-literal Plain literals have a lexical form and optionally a language tag as defined by [RFC-3066], normalized to lowercase. Typed literals have a lexical form and a datatype URI being an RDF URI reference. RDF有一个问题:即RDF中没有专门标识plain literals的URI,只有标识所有literal(= typed literal + plain literal)的rdfs:Literal。 因为这个原因,OWL-S 1.1没有显式指定 textDescription property 的range。 否则,比如早前的OWL-S将它定义为xsd:string,用户将不能这样书写: <profile:textDescription xml:lang="en">Some description</profile:textDescription>因为xsd:string是一种typed literal,不能对它使用xml:lang属性。因此上述写法会造成inconsistency的问题。




发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

日历 | CALENDAR

«July 2025»
12345
6789101112
13141516171819
20212223242526
2728293031
blog名称:World Wide Web Watch
日志总数:193
评论数量:665
留言数量:75
访问次数:6081288
建立时间:2004年10月30日
站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.109 second(s), page refreshed 144749494 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号