新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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)/描述逻辑/本体 』 → 语义web服务中本体的作用 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 83126 个阅读者浏览上一篇主题  刷新本主题   平板显示贴子 浏览下一篇主题
     * 贴子主题: 语义web服务中本体的作用 举报  打印  推荐  IE收藏夹 
       本主题类别: Ontology Engineering | RDF/RDFS | Web Services    
     lixiaoming 帅哥哟,离线,有人找我吗?
      
      
      等级:大二期末(数据结构考了98分!)
      文章:78
      积分:409
      门派:XML.ORG.CN
      注册:2008/12/8

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

    从axis构建web服务到转换成owl-s以后,感觉了一下这个本体的作用,但不知道理解的对不对,请高手指教,owl-s是web服务的本体语言,owl是知识库的本体语言(自己的理解),用owl构造一个领域本体(owl结构上类似于rdfs),然后在生成的owl-s的服务本体文件中就可以使用owl构造的领域本体里面的概念和属性来描述自己的服务了,举个例子:
    现在有一个关于旅游的知识库的本体owl
    <?xml version="1.0"?>
    <rdf:RDF
        xmlns="http://keg.cs.tsinghua.edu.cn/ontology/travel#"
        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#"
      xml:base="http://keg.cs.tsinghua.edu.cn/ontology/travel">
      <owl:Ontology rdf:about=""/>
      <owl:Class rdf:ID="CarNum">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="CarDomain"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="Date">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="DomainIndependent"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:about="#CarDomain">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="SubDomain"/>
        </rdfs:subClassOf>
      </owl:Class>
      <owl:Class rdf:ID="ReserveConfirm">
        <rdfs:subClassOf>
          <owl:Class rdf:ID="ConfirmInfo"/>
        </rdfs:subClassOf>
      </owl:Class>
    .....................................................
    (这个不是我小气,是因为这是实验室的资料,所以不方便说太多)
    接着我做了一个旅游方面的服务(checkhotel.owl这个服务文件)这里贴出主要的部分:
    <grounding:wsdlInputMessageParts rdf:parseType="Collection">
                      <grounding:wsdlMessageMap>
                        <grounding:wsdlMessagePart>hotelarea</grounding:wsdlMessagePart>
                        <grounding:owlsParameter>
                          <process:Input rdf:ID="in0">
                            <rdfs:label>hotelarea</rdfs:label>
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#Address"/>
                          </process:Input>
                        </grounding:owlsParameter>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:wsdlMessagePart>entrancedate</grounding:wsdlMessagePart>
                        <grounding:owlsParameter>
                          <process:Input rdf:ID="in1">
                            <rdfs:label>entrancedate</rdfs:label>
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#Date"/>
                          </process:Input>
                        </grounding:owlsParameter>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:owlsParameter>
                          <process:Input rdf:ID="in2">
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#HotelType"/>
                            <rdfs:label>hotelgrade</rdfs:label>
                          </process:Input>
                        </grounding:owlsParameter>
                        <grounding:wsdlMessagePart>hotelgrade</grounding:wsdlMessagePart>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:owlsParameter>
                          <process:Input rdf:ID="in3">
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#RoomType"/>
                            <rdfs:label>roomgrade</rdfs:label>
                          </process:Input>
                        </grounding:owlsParameter>
                        <grounding:wsdlMessagePart>roomgrade</grounding:wsdlMessagePart>
                      </grounding:wsdlMessageMap>
                    </grounding:wsdlInputMessageParts>
                    <grounding:wsdlOperation>
                      <grounding:WsdlOperationRef>
                        <grounding:portType>CheckHotelPort</grounding:portType>
                        <grounding:operation>CheckHotel</grounding:operation>
                      </grounding:WsdlOperationRef>
                    </grounding:wsdlOperation>
                    <grounding:wsdlOutputMessageParts rdf:parseType="Collection">
                      <grounding:wsdlMessageMap>
                        <grounding:owlsParameter>
                          <process:Output rdf:ID="out0">
                            <rdfs:label>hotelname</rdfs:label>
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#HotelName"/>
                          </process:Output>
                        </grounding:owlsParameter>
                        <grounding:wsdlMessagePart>hotelname</grounding:wsdlMessagePart>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:wsdlMessagePart>hoteladdress</grounding:wsdlMessagePart>
                        <grounding:owlsParameter>
                          <process:Output rdf:ID="out1">
                            <rdfs:label>hoteladdress</rdfs:label>
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#Address"/>
                          </process:Output>
                        </grounding:owlsParameter>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:wsdlMessagePart>hoteltel</grounding:wsdlMessagePart>
                        <grounding:owlsParameter>
                          <process:Output rdf:ID="out2">
                            <rdfs:label>hoteltel</rdfs:label>
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#Phone"/>
                          </process:Output>
                        </grounding:owlsParameter>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:owlsParameter>
                          <process:Output rdf:ID="out3">
                            <rdfs:label>leftroom</rdfs:label>
                            <process:parameterType rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
                          </process:Output>
                        </grounding:owlsParameter>
                        <grounding:wsdlMessagePart>leftroom</grounding:wsdlMessagePart>
                      </grounding:wsdlMessageMap>
                      <grounding:wsdlMessageMap>
                        <grounding:wsdlMessagePart>roomprice</grounding:wsdlMessagePart>
                        <grounding:owlsParameter>
                          <process:Output rdf:ID="out4">
                            <rdfs:label>roomprice</rdfs:label>
                            <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#Fare"/>
                          </process:Output>
                        </grounding:owlsParameter>
                      </grounding:wsdlMessageMap>
                    </grounding:wsdlOutputMessageParts>
    里面关于输入和输出部分的参数类型
    <process:parameterType rdf:resource="http://localhost:8080/travelontology/travel#.../>
    通过这个我对本体在语义web服务中的理解:
    我觉得本体在语义web服务中的作用应该是用本体中定义的一些概念来描述我们服务的本体,比如说例子中是用旅游的知识库本体中的概念Address,HotelType等概念来描述它的输入参数类型的,可能在Address这种参数类型中包含城市,街道,房门号等信息,而这些信息的类型都是String类型的,这里是不是应该使用jena对旅游本体操作来推理出Address类型所包含的信息的类型,然后从用户输入的数据来提取相关的信息数据,这里比较晕,希望各位可以指教指教

       收藏   分享  
    顶(0)
      




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

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

     *树形目录 (最近20个回帖) 顶端 
    主题:  语义web服务中本体的作用(7504字) - lixiaoming,2009年4月17日
        回复:  期待交流,QQ:516986939(23字) - luozhiyuan,2012年6月22日
        回复:  如果大家有兴趣,我以前发过的帖子上有关于用racer+jena来推理本体的例子,可以搜索一下作者,..(100字) - lixiaoming,2012年1月8日
        回复:  各位朋友,我的代码让我不小心给格掉了,我只能凭印象来说一下过程,当时我用过axis来做过wsdl,..(1184字) - lixiaoming,2012年1月8日
            回复:  非常感谢楼主的指点。我用protege3.2.1安装owl-s editor 插件后,组合后的服务..(140字) - andyneo,2012年1月9日
        回复:  多谢楼主,我按你说的把owl文件放在web project中果然发布成功了,接下来就是对发布的Ow..(345字) - xufeng5264,2011年10月26日
            回复:  楼主可否把本体和webservice的发布过程以及本体和发布的webservice之间的关系给小弟..(181字) - andyneo,2012年1月7日
        回复:  好像w3c这个论坛里面有讲过,我具体忘了,代码这个东东让我不小心给格掉了..(69字) - lixiaoming,2011年10月21日
        回复:  使用java可以调用owl-s服务的(27字) - lixiaoming,2011年10月21日
        回复:  我已经毕业了,这个问题有段时间没有研究了,应该是用protege这个工具构建的owl知识本体库,然..(225字) - lixiaoming,2011年10月21日
            回复:  [em13]我只使用过嵌入到eclipse 中的tomcat发布过jsp网页,是不是即使不安装Ec..(3808字) - xufeng5264,2011年10月25日
        回复:  很想问楼主,怎么引用owl-s文件外的其它owl文件中的概念和资源?看上去你的关于旅游的知识库的本..(386字) - xufeng5264,2011年10月21日
            回复:  楼主纠结的关于本体服务发布的问题解决了吗? 是否找到相关参考代码呢?希望楼主不吝赐教!..(84字) - andyneo,2012年1月7日
                回复:  这个流程我是走通了的(24字) - xufeng5264,2012年3月22日
            回复:  楼主纠结的关于本体服务发布的问题解决了吗? 是否找到相关参考代码呢?希望楼主不吝赐教!..(84字) - andyneo,2012年1月7日
        回复:  感谢您及时回答我的问题,非常感谢(32字) - lixiaoming,2009年4月21日
        回复:  问题一: 是的,可以这样理解其他问题,我不太清楚,对OWL-S不太了解,希望其他朋友能帮回答你的..(102字) - jpz6311whu,2009年4月20日
        回复:  问题补充,感觉自己构建的知识库的本体(在这里是个旅游本体),主要是用来描述服务本体(从wsdl转换..(786字) - lixiaoming,2009年4月18日
        回复:  我通过这个例子,想请教一下问题一:本体在语义web服务中的作用是不是用本体中定义的一些概念来描述..(1253字) - lixiaoming,2009年4月18日
        回复:  楼主想问啥:)能否具体一点?(26字) - jpz6311whu,2009年4月17日

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