以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  服务匹配运行时出现找不到文件的问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=33067)


--  作者:justzpy
--  发布时间:5/25/2006 11:12:00 PM

--  服务匹配运行时出现找不到文件的问题

运行网上的一个服务匹配的例子,

附上部分程序:
  public static void register() {

        String url;
        url = "http://www.daml.ri.cmu.edu/iswcdemo/navn/BravoAirProfile.owl";

        OWLSMatchmakerClient mc;
        try {
            mc = new OWLSMatchmakerClient();
            mc.enableLogging();
            BusinessDetail bd = mc.register(url);
        } catch (OWLSMatchmakerClientException e) {
            e.printStackTrace();
        }
    }


出现如下错误,其中在BravoAirProfile.owl使用http://www.daml.org/services/owl-s/1.1/Process.owl:


469 WARN  OntDocumentManager  - An error occurred while attempting to read from
http://www.daml.org/services/owl-s/1.1/Process.owl. Msg was 'Not found: http://w
ww.daml.org/services/owl-s/1.1/Process.owl'.
com.hp.hpl.jena.shared.NotFoundException: Not found: http://www.daml.org/service
s/owl-s/1.1/Process.owl
        at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:322)
        at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:288)
        at com.hp.hpl.jena.util.FileManager.readModel(FileManager.java:275)
        at com.hp.hpl.jena.ontology.OntDocumentManager.read(OntDocumentManager.j
ava:1100)
        at com.hp.hpl.jena.ontology.OntDocumentManager.loadImport(OntDocumentMan
ager.java:1068)
        at com.hp.hpl.jena.ontology.OntDocumentManager.loadImports(OntDocumentMa
nager.java:833)
        at com.hp.hpl.jena.ontology.OntDocumentManager.loadImport(OntDocumentMan
ager.java:787)
        at com.hp.hpl.jena.ontology.impl.OntModelImpl$ImportsListener.addedState
ment(OntModelImpl.java:2986)
        at com.hp.hpl.jena.rdf.listeners.StatementListener.addedStatements(State
mentListener.java:32)
        at com.hp.hpl.jena.rdf.model.impl.ModelListenerAdapter.notifyAddList(Mod
elListenerAdapter.java:43)
        at com.hp.hpl.jena.graph.impl.SimpleEventManager.notifyAddList(SimpleEve
ntManager.java:72)
        at com.hp.hpl.jena.graph.impl.SimpleBulkUpdateHandler.add(SimpleBulkUpda
teHandler.java:49)
        at com.hp.hpl.jena.graph.impl.SimpleBulkUpdateHandler.add(SimpleBulkUpda
teHandler.java:44)
        at com.hp.hpl.jena.rdf.arp.JenaHandler.bulkUpdate(JenaHandler.java:80)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:198)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:184)
        at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:222)
        at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:187)
        at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:203
0)
        at EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser
.java:137)
        at EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser
.java:108)
        at EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser
.java:93)
        at EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.parseOWLSProfile
(OWLSMatchmakerClient.java:302)
        at EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.register(OWLSMat
chmakerClient.java:135)
        at samples.TestOWLSMatchmakerClient.register(TestOWLSMatchmakerClient.ja
va:54)
        at samples.TestOWLSMatchmakerClient.main(TestOWLSMatchmakerClient.java:1
58)



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