以文本方式查看主题

-  W3CHINA.ORG讨论区 - 语义网·描述逻辑·本体·RDF·OWL  (http://bbs.xml.org.cn/index.asp)
--  『 云计算,网格,SaaS,P2P 』   (http://bbs.xml.org.cn/list.asp?boardid=57)
----  给出个本体跟rule,大家看看实体关联如何(能否用直白的语言解释下)  (http://bbs.xml.org.cn/dispbbs.asp?boardid=57&rootid=&id=59643)


--  作者:microinsky
--  发布时间:3/9/2008 5:20:00 PM

--  给出个本体跟rule,大家看看实体关联如何(能否用直白的语言解释下)
owl文件如下:
===========================

<?xml version="1.0"?>
<rdf:RDF
    xmlns:pub="http://www.domain2.com#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://www.owl-ontologies.com/unnamed.owl#"
  xml:base="http://www.owl-ontologies.com/unnamed.owl">
  <owl:Ontology rdf:about=""/>
  <owl:Class rdf:about="http://www.domain2.com#Person"/>
  <owl:Class rdf:about="http://www.domain2.com#Publication"/>
  <owl:Class rdf:about="http://www.domain2.com#Article"/>
  <owl:ObjectProperty rdf:about="http://www.domain2.com#isCited">
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
    <owl:inverseOf>
      <owl:ObjectProperty rdf:about="http://www.domain2.com#Citing"/>
    </owl:inverseOf>
    <rdfs:range rdf:resource="http://www.domain2.com#Article"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:about="http://www.domain2.com#hasAuthor">
    <rdfs:range rdf:resource="http://www.domain2.com#Person"/>
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:about="http://www.domain2.com#isPublished">
    <rdfs:range rdf:resource="http://www.domain2.com#Publication"/>
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:about="http://www.domain2.com#Citing">
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
    <owl:inverseOf rdf:resource="http://www.domain2.com#isCited"/>
    <rdfs:range rdf:resource="http://www.domain2.com#Article"/>
  </owl:ObjectProperty>
  <owl:DatatypeProperty rdf:about="http://www.domain2.com#keywords">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://www.domain2.com#hasTitle">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="http://www.domain2.com#content">
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:SymmetricProperty rdf:about="http://www.domain2.com#bothCited">
    <owl:inverseOf rdf:resource="http://www.domain2.com#bothCited"/>
    <rdfs:range rdf:resource="http://www.domain2.com#Article"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
  </owl:SymmetricProperty>
  <owl:SymmetricProperty rdf:about="http://www.domain2.com#bothCiting">
    <rdfs:domain rdf:resource="http://www.domain2.com#Article"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <owl:inverseOf rdf:resource="http://www.domain2.com#bothCiting"/>
    <rdfs:range rdf:resource="http://www.domain2.com#Article"/>
  </owl:SymmetricProperty>
  <pub:Publication rdf:ID="Info.Sci."/>
  <pub:Person rdf:ID="Tom"/>
  <pub:Article rdf:ID="KB_757266_Individual_5">
    <pub:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">URI is BBBBBBBBBBBBBBBBBBBBBBBBBBB</pub:content>
    <pub:isCited>
      <pub:Article rdf:ID="KB_757266_Individual_3">
        <pub:hasTitle rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RDF</pub:hasTitle>
        <pub:isPublished rdf:resource="#Info.Sci."/>
        <pub:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RDF is JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ</pub:content>
        <pub:keywords rdf:datatype="http://www.w3.org/2001/XMLSchema#string">RDF</pub:keywords>
        <pub:Citing>
          <pub:Article rdf:ID="KB_757266_Individual_2">
            <pub:hasTitle rdf:datatype="http://www.w3.org/2001/XMLSchema#string">XML</pub:hasTitle>
            <pub:isCited rdf:resource="#KB_757266_Individual_3"/>
            <pub:isPublished rdf:resource="#Info.Sci."/>
            <pub:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">XML is AAAAAAAAAAAAAAAAAAAAAAAAAAA</pub:content>
            <pub:hasAuthor>
              <pub:Person rdf:ID="Jack"/>
            </pub:hasAuthor>
            <pub:Citing rdf:resource="#KB_757266_Individual_5"/>
            <pub:keywords rdf:datatype="http://www.w3.org/2001/XMLSchema#string">XML</pub:keywords>
            <pub:Citing>
              <pub:Article rdf:ID="KB_757266_Individual_6">
                <pub:isCited>
                  <pub:Article rdf:ID="KB_757266_Individual_4">
                    <pub:Citing rdf:resource="#KB_757266_Individual_3"/>
                    <pub:hasAuthor rdf:resource="#Tom"/>
                    <pub:Citing rdf:resource="#KB_757266_Individual_5"/>
                    <pub:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">OWL is GGGGGGGGGGGGGGGGGGgg</pub:content>
                    <pub:Citing rdf:resource="#KB_757266_Individual_2"/>
                    <pub:keywords rdf:datatype="http://www.w3.org/2001/XMLSchema#string">OWL</pub:keywords>
                    <pub:isPublished rdf:resource="#Info.Sci."/>
                    <pub:hasTitle rdf:datatype="http://www.w3.org/2001/XMLSchema#string">OWL</pub:hasTitle>
                    <pub:Citing rdf:resource="#KB_757266_Individual_6"/>
                  </pub:Article>
                </pub:isCited>
                <pub:keywords rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Unicode</pub:keywords>
                <pub:isCited rdf:resource="#KB_757266_Individual_2"/>
                <pub:content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Unicode is CCCCCCCCCCCCCCCCCCCCCcc</pub:content>
                <pub:hasTitle rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Unicode</pub:hasTitle>
                <pub:hasAuthor>
                  <pub:Person rdf:ID="peter"/>
                </pub:hasAuthor>
                <pub:isPublished rdf:resource="#Info.Sci."/>
                <pub:isCited rdf:resource="#KB_757266_Individual_3"/>
              </pub:Article>
            </pub:Citing>
            <pub:isCited rdf:resource="#KB_757266_Individual_4"/>
          </pub:Article>
        </pub:Citing>
        <pub:hasAuthor rdf:resource="#Jack"/>
        <pub:Citing rdf:resource="#KB_757266_Individual_5"/>
        <pub:Citing rdf:resource="#KB_757266_Individual_6"/>
        <pub:isCited rdf:resource="#KB_757266_Individual_4"/>
      </pub:Article>
    </pub:isCited>
    <pub:isCited rdf:resource="#KB_757266_Individual_4"/>
    <pub:hasAuthor rdf:resource="#peter"/>
    <pub:isPublished rdf:resource="#Info.Sci."/>
    <pub:keywords rdf:datatype="http://www.w3.org/2001/XMLSchema#string">URI</pub:keywords>
    <pub:isCited rdf:resource="#KB_757266_Individual_2"/>
    <pub:hasTitle rdf:datatype="http://www.w3.org/2001/XMLSchema#string">URI</pub:hasTitle>
  </pub:Article>
</rdf:RDF>

<!-- Created with Protege (with OWL Plugin 1.3, Build 212)  http://protege.stanford.edu -->

============================

规则定义如下:

============================


[bothCiting: (?a http://www.domain2.com#Citing ?c),(?b http://www.domain2.com#Citing ?c),notEqual(?a, ?b)->(?a http://www.domain2.com#bothCiting ?b)]
[bothCited: (?a http://www.domain2.com#Citing ?b),(?a http://www.domain2.com#Citing ?c),,notEqual(?b, ?c)->(?b  http://www.domain2.com#bothCited ?c)]

============================

求各位麻烦看下  能否给解释下?? 谢谢


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