以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  求助!!关于protege建本体  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=45037)


--  作者:zhengzhiyun
--  发布时间:4/7/2007 10:09:00 PM

--  求助!!关于protege建本体
大家好!
我用protege建一个很简单的本体如下:
<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://ouc.edu.cn.chenkun.community/"
  xml:base="http://ouc.edu.cn.chenkun.community/">
  <owl:Ontology rdf:about=""/>
  <owl:Class rdf:about="http://ouc.edu.cn.chenkun.community/Person"/>
  <owl:Class rdf:about="http://ouc.edu.cn.chenkun.community/Project"/>
  <owl:Class rdf:about="http://ouc.edu.cn.chenkun.community/Topic"/>
  <owl:ObjectProperty rdf:about="http://ouc.edu.cn.chenkun.community/worksIn">
    <rdfs:range rdf:resource="http://ouc.edu.cn.chenkun.community/Project"/>
    <rdfs:domain rdf:resource="http://ouc.edu.cn.chenkun.community/Person"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >describe which project the person worked in.</rdfs:comment>
  </owl:ObjectProperty>
``````````````
为什么是rdf:about而不是rdf:id并且没有缩写,郁闷,求救!!!
--  作者:wjwenoch
--  发布时间:4/8/2007 4:58:00 AM

--  
参考 orangebench在这个帖子的回复http://bbs.w3china.org/dispbbs.asp?boardID=2&ID=11536

1)rdf:ID和rdf:about的区别:
rdf:about的值是一个完整URIref,注意也可以是相对URI,(相对于xml:base);
rdf:ID是对rdf:about的值的缩写,其值是一个“ XML Name”,所以,不能是数字开头,不能有“/”符号等。
。。。。。。。。。。。。。。。。。。。。

以下是引用zhengzhiyun在2007-4-7 22:09:00的发言:
大家好!
我用protege建一个很简单的本体如下:
<?xml version="1.0"?>
<rdf:RDF
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns="cn.chenkun.community/"">http://ouc.educn.chenkun.community/"
   xml:base="cn.chenkun.community/">">http://ouc.educn.chenkun.community/">
   <owl:Ontology rdf:about=""/>
   <owl:Class rdf:about="cn.chenkun.community/Person"/>">http://ouc.educn.chenkun.community/Person"/>
   <owl:Class rdf:about="cn.chenkun.community/Project"/>">http://ouc.educn.chenkun.community/Project"/>
   <owl:Class rdf:about="cn.chenkun.community/Topic"/>">http://ouc.educn.chenkun.community/Topic"/>
   <owl:ObjectProperty rdf:about="cn.chenkun.community/worksIn">">http://ouc.educn.chenkun.community/worksIn">
     <rdfs:range rdf:resource="cn.chenkun.community/Project"/>">http://ouc.educn.chenkun.community/Project"/>
     <rdfs:domain rdf:resource="cn.chenkun.community/Person"/>">http://ouc.educn.chenkun.community/Person"/>
     <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
     >describe which project the person worked in.</rdfs:comment>
   </owl:ObjectProperty>
``````````````
为什么是rdf:about而不是rdf:id并且没有缩写,郁闷,求救!!!


--  作者:zhengzhiyun
--  发布时间:4/8/2007 8:37:00 AM

--  
非常感谢wjwenoch的帮助,我仔细读过那个帖子了
受益匪浅
可是我还有一个问题::
如何用protege建本体时,出现rdf:id="person"而不是,rdf:about="一长串url",这样看起来很罗嗦,郁闷!!!
--  作者:zhengzhiyun
--  发布时间:4/8/2007 8:49:00 AM

--  
我的问题解决了!!:)
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.988ms