以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  请各位高手帮助我[求助]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=73919)


--  作者:smiles
--  发布时间:4/6/2009 4:03:00 PM

--  请各位高手帮助我[求助]
<?xml version="1.0" encoding="GBK"?>
<rdf:RDF
    xmlns:process="http://www.daml.org/services/owl-s/1.1/Process.owl#"
    xmlns:service="http://www.daml.org/services/owl-s/1.1/Service.owl#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:profile="http://www.daml.org/services/owl-s/1.1/Profile.owl#"
    xmlns:grounding="http://www.daml.org/services/owl-s/1.1/Grounding.owl#"
    xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
    xmlns:expression="http://www.daml.org/services/owl-s/1.1/generic/Expression.owl#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:list="http://www.daml.org/services/owl-s/1.1/generic/ObjectList.owl#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:swrl="http://www.w3.org/2003/11/swrl#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  <service:Service rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadService">
    <service:describedBy>
      <process:CompositeProcess rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadProcess"/>
    </service:describedBy>
    <service:supports>
      <grounding:WsdlGrounding rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadGrounding"/>
    </service:supports>
    <service:presents>
      <profile:Profile rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadProfile"/>
    </service:presents>
  </service:Service>
  <profile:Profile rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadProfile">
    <profile:hasInput>
      <process:Input rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#平均负荷"/>
    </profile:hasInput>
    <profile:hasOutput>
      <process:Output rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#负荷预警信息"/>
    </profile:hasOutput>
    <rdfs:label>Composite Service</rdfs:label>
    <profile:hasInput>
      <process:Input rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#最低负荷"/>
    </profile:hasInput>
    <profile:hasInput>
      <process:Input rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#最高负荷"/>
    </profile:hasInput>
    <service:presentedBy rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadService"/>
    <profile:textDescription>Composite Service</profile:textDescription>
  </profile:Profile>
  <process:CompositeProcess rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadProcess">
    <process:hasResult>
      <process:Result/>
    </process:hasResult>
    <service:describes rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadService"/>
    <process:hasInput rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#最高负荷"/>
    <process:hasInput rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#最低负荷"/>
    <process:composedOf>
      <process:Sequence>
        <process:components>
          <process:ControlConstructList>
            <list:rest rdf:resource="http://www.daml.org/services/owl-s/1.1/generic/ObjectList.owl#nil"/>
            <list:first>
              <process:Perform>
                <process:process rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadProcess"/>
              </process:Perform>
            </list:first>
          </process:ControlConstructList>
        </process:components>
      </process:Sequence>
    </process:composedOf>
    <process:hasInput rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#平均负荷"/>
    <process:hasOutput rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#负荷预警信息"/>
  </process:CompositeProcess>
  <grounding:WsdlGrounding rdf:about="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadGrounding">
    <service:supportedBy rdf:resource="file:/D:/WorkSpace/CreateOWL-SFile/ontologyFiles/jiaxidianli1.owl#PayloadService"/>
  </grounding:WsdlGrounding>
</rdf:RDF>
我怎样才解析出:最低负荷、平均负荷、最低负荷等。然后保存到MAP里
现在首先要解析出。在线等,急,多谢
最好能给个程序的例子。谢谢
--  作者:jpz6311whu
--  发布时间:4/7/2009 1:13:00 PM

--  
楼主学一下jena、protege owl api或者KAON2吧,随便哪个都能很容易解析出来
--  作者:smiles
--  发布时间:4/7/2009 3:24:00 PM

--  主要学习JENA哪一部分能解析出这个OWL文件呢
大哥,能说详细点吗?谢谢
--  作者:jpz6311whu
--  发布时间:4/7/2009 6:34:00 PM

--  
楼主可以看看jena相关的文档:
http://jena.sourceforge.net/ontology/index.html
这里写得很详细了
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
7,832.031ms