新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论Semantic Web(语义Web,语义网或语义万维网, Web 3.0)及相关理论,如:Ontology(本体,本体论), OWL(Web Ontology Langauge,Web本体语言), Description Logic(DL, 描述逻辑),RDFa,Ontology Engineering等。
    [返回] 中文XML论坛 - 专业的XML技术讨论区W3CHINA.ORG讨论区 - Web新技术讨论『 Semantic Web(语义Web)/描述逻辑/本体 』 → jena如何查询owl文件中类的子类? 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 121148 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: jena如何查询owl文件中类的子类? 举报  打印  推荐  IE收藏夹 
       本主题类别: Ontology Language | RDF/RDFS | XML文档存取技术(DOM, SAX)    
     linyu64 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:17
      积分:112
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linyu64发送一个短消息 把linyu64加入好友 查看linyu64的个人资料 搜索linyu64在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linyu64的博客楼主
    发贴心情 jena如何查询owl文件中类的子类?

    我想请问一下查询一个owl文件中某个类的子类的sparql语句要怎么写,比如下面的owl文件,如果我想查“猪病”的子类,应该怎么写sparql语句?本人是初学者,对本体方面的只是一团浆糊,希望各位高手帮帮忙,谢谢。

    这是owl文件:
    <?xml version="1.0"?>
    <rdf:RDF
        xmlns="http://www.owl-ontologies.com/Ontology1236930838.owl#"
        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#"
      xml:base="http://www.owl-ontologies.com/Ontology1236930838.owl">
      <owl:Ontology rdf:about=""/>
      <owl:Class rdf:ID="感觉过敏">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="神经系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="维生素K缺乏症"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:ID="主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="维生素A缺乏症">
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="抽搐转圈"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:ID="伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="咳嗽"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="食欲不振"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="四肢麻痹"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="耳尖干枯"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:ID="主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="皮屑增多"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Class rdf:ID="猪营养代谢病"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="皮肤干燥"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="发育不良"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="流浆性鼻涕">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="呼吸系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪付红细胞体病与链球菌病混合感染"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="绝食">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="消化系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪肺疫"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:ID="伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪丹毒"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="霉玉米中毒"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#呼吸系统症状">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="症状"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="猪普通病">
        <owl:disjointWith>
          <owl:Class rdf:ID="猪的传染病"/>
        </owl:disjointWith>
        <owl:disjointWith>
          <owl:Class rdf:ID="猪的寄生虫病"/>
        </owl:disjointWith>
        <owl:disjointWith>
          <owl:Class rdf:about="#猪营养代谢病"/>
        </owl:disjointWith>
        <owl:disjointWith>
          <owl:Class rdf:ID="猪中毒病"/>
        </owl:disjointWith>
        <rdfs:subClassOf>
          <owl:Class rdf:ID="猪病"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="消瘦">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#消化系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪姜片吸虫病"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#维生素K缺乏症"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="皮肤上出现特异性疹块">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="皮肤症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪丹毒"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪中毒病">
        <owl:disjointWith>
          <owl:Class rdf:about="#猪的传染病"/>
        </owl:disjointWith>
        <owl:disjointWith>
          <owl:Class rdf:about="#猪的寄生虫病"/>
        </owl:disjointWith>
        <owl:disjointWith>
          <owl:Class rdf:about="#猪营养代谢病"/>
        </owl:disjointWith>
        <owl:disjointWith rdf:resource="#猪普通病"/>
        <rdfs:subClassOf>
          <owl:Class rdf:about="#猪病"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#皮肤干燥">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#皮肤症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#咳嗽">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪弓形虫病"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪的传染病">
        <owl:disjointWith>
          <owl:Class rdf:about="#猪的寄生虫病"/>
        </owl:disjointWith>
        <owl:disjointWith>
          <owl:Class rdf:about="#猪营养代谢病"/>
        </owl:disjointWith>
        <owl:disjointWith rdf:resource="#猪中毒病"/>
        <owl:disjointWith rdf:resource="#猪普通病"/>
        <rdfs:subClassOf>
          <owl:Class rdf:about="#猪病"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="粪便带黄">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#消化系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪流行性腹泻"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="消化不良">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="猪的内科病"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#食欲不振"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="口渴"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="呕吐"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="腹泻"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#发育不良"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="口臭"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="猪的外科病">
        <rdfs:subClassOf rdf:resource="#猪普通病"/>
      </owl:Class>
      <owl:Class rdf:ID="猪传染病的混合感染">
        <rdfs:subClassOf rdf:resource="#猪的传染病"/>
      </owl:Class>
      <owl:Class rdf:ID="运动系统症状">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#症状"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#发育不良">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#消化系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪姜片吸虫病"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#消化不良"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#四肢麻痹">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪瘟和猪伪狂犬病混合感染"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="酒糟中毒"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="先便秘后下痢">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#消化系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪付红细胞体病与链球菌病混合感染"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪弓形虫病"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#酒糟中毒"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="呼吸困难">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪肺疫"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪付红细胞体病与链球菌病混合感染"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪弓形虫病"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="体温正常或偏高">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪流行性腹泻"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪弓形虫病">
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="精神委顿"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#咳嗽"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#食欲不振"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="犬状坐姿"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#呕吐"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#先便秘后下痢"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#呼吸困难"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="高热等于或大于42度"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="气喘"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Class rdf:about="#猪的寄生虫病"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#精神委顿">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#神经系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪瘟和猪伪狂犬病混合感染"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#胃肠炎"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="呼吸急促">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪付红细胞体病与链球菌病混合感染"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#霉玉米中毒"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="猪细菌性传染病">
        <rdfs:subClassOf rdf:resource="#猪的传染病"/>
      </owl:Class>
      <owl:Class rdf:about="#猪丹毒">
        <rdfs:subClassOf rdf:resource="#猪细菌性传染病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#高热等于或大于42度"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#皮肤上出现特异性疹块"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="精神沉郁"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#绝食"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="步态僵直或跛行"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#消化系统症状">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#症状"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#食欲不振">
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪弓形虫病"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#维生素K缺乏症"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#酒糟中毒"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#霉玉米中毒"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#消化不良"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪病">
        <owl:disjointWith>
          <owl:Class rdf:about="#症状"/>
        </owl:disjointWith>
      </owl:Class>
      <owl:Class rdf:about="#腹泻">
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪姜片吸虫病"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#酒糟中毒"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#消化不良"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪流行性腹泻">
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="运动僵硬"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="脱水"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#呕吐"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="水样腹泻"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#粪便带黄"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Class rdf:ID="猪病毒性传染病"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#体温正常或偏高"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#脱水">
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪流行性腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#犬状坐姿">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪肺疫"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪弓形虫病"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪的内科病">
        <rdfs:subClassOf rdf:resource="#猪普通病"/>
      </owl:Class>
      <owl:Class rdf:about="#猪肺疫">
        <rdfs:subClassOf rdf:resource="#猪细菌性传染病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#高热等于或大于42度"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#呼吸困难"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#犬状坐姿"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#精神沉郁"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#绝食"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#症状">
        <owl:disjointWith rdf:resource="#猪病"/>
      </owl:Class>
      <owl:Class rdf:ID="凝血时间延长">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#皮肤症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#维生素K缺乏症"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="在外力作用后突发截瘫不能正常行走">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="截瘫"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#耳尖干枯">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#皮肤症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#霉玉米中毒">
        <rdfs:subClassOf rdf:resource="#猪中毒病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#食欲不振"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#精神沉郁"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#口渴"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#绝食"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#呼吸急促"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="心跳加快"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#呕吐">
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪流行性腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="猪传染性胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪弓形虫病"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#消化不良"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪瘟和猪伪狂犬病混合感染">
        <rdfs:subClassOf rdf:resource="#猪传染病的混合感染"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#高热等于或大于42度"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#气喘"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#精神委顿"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#先便秘后下痢"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#抽搐转圈"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="呆立不动"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#四肢麻痹"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#口臭">
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#消化不良"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#步态僵直或跛行">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪丹毒"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪付红细胞体病与链球菌病混合感染"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:ID="风湿病"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪姜片吸虫病">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#猪的寄生虫病"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#消瘦"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#发育不良"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#精神沉郁"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#腹泻"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#高热等于或大于42度">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪肺疫"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪丹毒"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪付红细胞体病与链球菌病混合感染"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪瘟和猪伪狂犬病混合感染"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪弓形虫病"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#运动僵硬">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪流行性腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="粪中带血">
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪传染性胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
      </owl:Class>
      <owl:Class rdf:ID="关节大而发热">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#风湿病"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#口渴">
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#猪传染性胃肠炎"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#霉玉米中毒"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#消化不良"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#胃肠炎"/>
            </owl:someValuesFrom>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#风湿病">
        <rdfs:subClassOf rdf:resource="#猪的外科病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#步态僵直或跛行"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#关节大而发热"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="体温下降">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#酒糟中毒"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#截瘫">
        <rdfs:subClassOf rdf:resource="#猪的外科病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#在外力作用后突发截瘫不能正常行走"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#呆立不动">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#神经系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪瘟和猪伪狂犬病混合感染"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#心跳加快">
        <rdfs:subClassOf rdf:resource="#运动系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#酒糟中毒"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#霉玉米中毒"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#酒糟中毒">
        <rdfs:subClassOf rdf:resource="#猪中毒病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#食欲不振"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#先便秘后下痢"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom>
              <owl:Class rdf:about="#气喘"/>
            </owl:someValuesFrom>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#心跳加快"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#体温下降"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#四肢麻痹"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#皮屑增多">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#皮肤症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#猪的寄生虫病">
        <rdfs:subClassOf rdf:resource="#猪病"/>
        <owl:disjointWith rdf:resource="#猪的传染病"/>
        <owl:disjointWith>
          <owl:Class rdf:about="#猪营养代谢病"/>
        </owl:disjointWith>
        <owl:disjointWith rdf:resource="#猪中毒病"/>
        <owl:disjointWith rdf:resource="#猪普通病"/>
      </owl:Class>
      <owl:Class rdf:about="#猪营养代谢病">
        <rdfs:subClassOf rdf:resource="#猪病"/>
        <owl:disjointWith rdf:resource="#猪的传染病"/>
        <owl:disjointWith rdf:resource="#猪的寄生虫病"/>
        <owl:disjointWith rdf:resource="#猪中毒病"/>
        <owl:disjointWith rdf:resource="#猪普通病"/>
      </owl:Class>
      <owl:Class rdf:about="#猪病毒性传染病">
        <rdfs:subClassOf rdf:resource="#猪的传染病"/>
      </owl:Class>
      <owl:Class rdf:about="#维生素K缺乏症">
        <rdfs:subClassOf rdf:resource="#猪营养代谢病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#凝血时间延长"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#消瘦"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#食欲不振"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#感觉过敏"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#胃肠炎">
        <rdfs:subClassOf rdf:resource="#猪的内科病"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#绝食"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#口渴"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#精神委顿"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#口臭"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#呕吐"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#气喘">
        <rdfs:subClassOf rdf:resource="#呼吸系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪瘟和猪伪狂犬病混合感染"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪弓形虫病"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#酒糟中毒"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#抽搐转圈">
        <rdfs:subClassOf>
          <owl:Class rdf:about="#神经系统症状"/>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪瘟和猪伪狂犬病混合感染"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#维生素A缺乏症"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#水样腹泻">
        <rdfs:subClassOf rdf:resource="#消化系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪流行性腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#神经系统症状">
        <rdfs:subClassOf rdf:resource="#症状"/>
      </owl:Class>
      <owl:Class rdf:about="#猪传染性胃肠炎">
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#腹泻"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#食欲不振"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#口渴"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#粪中带血"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#呕吐"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#脱水"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf rdf:resource="#猪病毒性传染病"/>
      </owl:Class>
      <owl:Class rdf:about="#精神沉郁">
        <rdfs:subClassOf rdf:resource="#神经系统症状"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#猪肺疫"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪丹毒"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随症状"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#猪姜片吸虫病"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#霉玉米中毒"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要症状"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#皮肤症状">
        <rdfs:subClassOf rdf:resource="#症状"/>
      </owl:Class>
      <owl:Class rdf:about="#猪付红细胞体病与链球菌病混合感染">
        <rdfs:subClassOf rdf:resource="#猪传染病的混合感染"/>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#高热等于或大于42度"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:someValuesFrom rdf:resource="#呼吸急促"/>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#主要引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#流浆性鼻涕"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#呼吸困难"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#先便秘后下痢"/>
          </owl:Restriction>
        </rdfs:subClassOf>
        <rdfs:subClassOf>
          <owl:Restriction>
            <owl:onProperty>
              <owl:ObjectProperty rdf:about="#伴随引起"/>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="#步态僵直或跛行"/>
          </owl:Restriction>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:ObjectProperty rdf:about="#伴随症状">
        <rdfs:domain rdf:resource="#症状"/>
      </owl:ObjectProperty>
      <owl:ObjectProperty rdf:about="#主要引起">
        <rdfs:domain rdf:resource="#猪病"/>
      </owl:ObjectProperty>
      <owl:ObjectProperty rdf:about="#伴随引起">
        <rdfs:domain rdf:resource="#猪病"/>
      </owl:ObjectProperty>
      <owl:ObjectProperty rdf:about="#主要症状">
        <rdfs:domain rdf:resource="#症状"/>
      </owl:ObjectProperty>
    </rdf:RDF>

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


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/4 19:04:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客2
    发贴心情 
    PREFIX eg:  <http://www.owl-ontologies.com/Ontology1236930838.owl#>
    PREFIX rdfs:    <http://www.w3.org/2000/01/rdf-schema#>
    SELECT ?x
    WHERE
    { ?x rdfs:subClassOf eg:猪病 }
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/4 21:31:00
     
     linyu64 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:17
      积分:112
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linyu64发送一个短消息 把linyu64加入好友 查看linyu64的个人资料 搜索linyu64在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linyu64的博客3
    发贴心情 结果不符啊大哥
    我按照你给我的sparql语句写进了jsp里,但是显示出来的结果包括了“猪病”以下的所有内容,举个例子,“猪病”中包括了“猪的传染病”,而“猪的传染病”中包括了“猪细菌性传染病”,“猪细菌性传染病”中有包括了“猪丹毒”,我想要的结果是把“猪的传染病”哪一级的子类显示出来,也就是“猪病”的下一级子类显示出来,而不是把所有内容显示出来,麻烦大哥你在帮帮忙,谢了啊
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 12:17:00
     
     linyu64 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:17
      积分:112
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linyu64发送一个短消息 把linyu64加入好友 查看linyu64的个人资料 搜索linyu64在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linyu64的博客4
    发贴心情 还有问题
    就是我显示子类的时候会连同这些子类的父类一起显示出来,比如我想显示“神经系统症状”的子类,显示的结果是:
    http://www.owl-ontologies.com/Ontology1236930838.owl#精神沉郁
    http://www.owl-ontologies.com/Ontology1236930838.owl#抽搐转圈
    http://www.owl-ontologies.com/Ontology1236930838.owl#呆立不动
    http://www.owl-ontologies.com/Ontology1236930838.owl#精神委顿
    http://www.owl-ontologies.com/Ontology1236930838.owl#感觉过敏
    http://www.owl-ontologies.com/Ontology1236930838.owl#神经系统症状
    它会把“神经系统症状”一起显示出来,还有,这些数据的前缀可以删除吗(就是这个“http://www.owl-ontologies.com/Ontology1236930838.owl#”可以不显示出来吗,还是说肯定会显示出来,要我们自己处理)
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 12:42:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客5
    发贴心情 
    请楼主把你的jsp贴出来看看
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 12:42:00
     
     linyu64 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:17
      积分:112
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linyu64发送一个短消息 把linyu64加入好友 查看linyu64的个人资料 搜索linyu64在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linyu64的博客6
    发贴心情 
    <%@ page language="java" import="java.util.*,java.io.*,com.hp.hpl.jena.query.Query,com.hp.hpl.jena.query.QueryExecution,com.hp.hpl.jena.query.QueryExecutionFactory,com.hp.hpl.jena.query.QueryFactory,com.hp.hpl.jena.query.QuerySolution,com.hp.hpl.jena.query.ResultSet,com.hp.hpl.jena.rdf.model.*;" pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'index.jsp' starting page</title>
     <meta http-equiv="pragma" content="no-cache">
     <meta http-equiv="cache-control" content="no-cache">
     <meta http-equiv="expires" content="0">    
     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
     <meta http-equiv="description" content="This is my page">
     <!--
     <link rel="stylesheet" type="text/css" href="styles.css">
     -->
      </head>
      
      <body>
        <%  
        Model m = ModelFactory.createOntologyModel();
            try {
                FileInputStream file;
                file = new FileInputStream("E:\\Program Files\\Protege_3.3.1\\pigdisease.owl");

                InputStreamReader in;
                in = new InputStreamReader(file, "UTF-8"); //处理中文
                m.read(in, null);
                in.close();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
      String NL = System.getProperty("line.separator") ;
      String prefix = "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> " +
            "PREFIX eg:<http://www.owl-ontologies.com/Ontology1236930838.owl#> ";
      String queryString = prefix + NL +"SELECT ?x WHERE { ?x rdfs:subClassOf eg:神经系统症状 }";
      
            
            Query query = QueryFactory.create(queryString);
          //创建Execution对象
          QueryExecution qexec = QueryExecutionFactory.create(query, m);
      
                // Assumption: it's a SELECT query.
        ResultSet rs = qexec.execSelect() ;
                 
                // The order of results is undefined.
                while (rs.hasNext()) {
                     QuerySolution soln = rs.nextSolution(); //查询结果中的每一条(称之为满足条件的一个solution)
         String s = soln.get("x").toString();
         StringTokenizer token = new StringTokenizer(s,"#");
                  token.nextToken();
         out.print("<input type='submit' value='"+token.nextToken()+"'></input>");
         out.print("<br>");
                }
             
        %>
      </body>
    </html>

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 12:58:00
     
     linyu64 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:17
      积分:112
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linyu64发送一个短消息 把linyu64加入好友 查看linyu64的个人资料 搜索linyu64在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linyu64的博客7
    发贴心情 
    麻烦你了,斑竹
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 12:58:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客8
    发贴心情 
    Model m = ModelFactory.createOntologyModel();
    -->
    OntModel model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);

    并将OntModelSpec所在的包import进来

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 13:00:00
     
     linyu64 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:17
      积分:112
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linyu64发送一个短消息 把linyu64加入好友 查看linyu64的个人资料 搜索linyu64在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linyu64的博客9
    发贴心情 
    哦,是这个原因吗,我一开始也是这样写的,不过我不是很清楚OntModelSpec所在的包是哪个,所以编译出错,弱弱问一句,OntModelSpec所在的包是哪一个
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 13:04:00
     
     jpz6311whu 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      等级:研三(收到微软亚洲研究院的Offer了)(版主)
      文章:1718
      积分:10610
      门派:W3CHINA.ORG
      注册:2005/4/12

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给jpz6311whu发送一个短消息 把jpz6311whu加入好友 查看jpz6311whu的个人资料 搜索jpz6311whu在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 引用回复这个贴子 回复这个贴子 查看jpz6311whu的博客10
    发贴心情 
    google之
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/5 13:05:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Semantic Web(语义Web)/描述逻辑/本体 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/11/24 15:58:58

    本主题贴数30,分页: [1] [2] [3]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    453.125ms