-- 作者:waterlili329
-- 发布时间:8/8/2007 2:33:00 PM
-- [求助]如何进行本体验证
我手工建立了一个本体库.挺大的.但是由于是手工建的难免有输入错误的地方.我想知道怎么能验证建立好的owl文件结构正确呢.只要结构对就行.我试图把owl用protege打开看看.但是报错.我截取了一段就可以打开,由于文件挺大,我不可能一点一点试.又不知道为什么protege 报错.还有什么方法可以看我的本体文件结构对不对的软件么?? protege 错误.: There were errors at performing operation. 1. Exception class java.lang.ClassCastException. Message: edu.stanford.smi.protegex.owl.model.impl.DefaultRDFSNamedClass 2. Errors at loading OWL file from file:/G:/毕业设计相关/本体转换程序/poscontology.owl Please consider running the file through an RDF or OWL validation service such as: - RDF Validator: http://www.w3.org/RDF/Validator - OWL Validator: http://phoebus.cs.man.ac.uk:9999/OWL/Validator Protege Wizards v1.0 beta build 14 WARNING: java.lang.ClassCastException: edu.stanford.smi.protegex.owl.model.impl. DefaultRDFProperty -- ProjectPluginManager.afterShow() INFO: UI display time = 11 sec WARNING: [Repository Manager] Could not find repository file: file:/G:/毕业设计 相关/本体转换程序/poscontology.repository -- RepositoryFileManager.loadRepositor iesFromURI() INFO: Loading triples SEVERE: Error at loading file file:/G:/毕业设计相关/本体转换程序/poscontology.ow l -- java.lang.ClassCastException: edu.stanford.smi.protegex.owl.model.impl.Defa ultRDFSNamedClass at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.getRDFProp erty(Unknown Source) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.access$130 0(Unknown Source) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser$MyStatemen tHandler.statement(Unknown Source) at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.triple(XMLHandler.java:96) at com.hp.hpl.jena.rdf.arp.impl.ParserSupport.triple(ParserSupport.java: 231) at com.hp.hpl.jena.rdf.arp.states.WantDescription.aPredAndObj(WantDescri ption.java:101) at com.hp.hpl.jena.rdf.arp.states.WantPropertyElement.theObject(WantProp ertyElement.java:195) at com.hp.hpl.jena.rdf.arp.states.WantLiteralValueOrDescription.startEle ment(WantLiteralValueOrDescription.java:43) at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startElement(XMLHandler.java: 131) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour ce) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source) at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc e) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(RDFXMLParser.java:106 ) at com.hp.hpl.jena.rdf.arp.ARP.load(ARP.java:143) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser$1.invokeAR P(Unknown Source) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriple s(Unknown Source) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknow n Source) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknow n Source) at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknow n Source) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.load(Unknown Source) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.load(Unknown Source) at edu.stanford.smi.protegex.owl.jena.JenaKnowledgeBaseFactory.loadKnowl edgeBase(Unknown Source) at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown Source) at edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unkn own Source) at edu.stanford.smi.protegex.owl.jena.CreateOWLProjectFromFilePlugin.cre ateProject(Unknown Source) at edu.stanford.smi.protege.util.ProjectChooser.useCreateProjectFromFile Plugin(Unknown Source) at edu.stanford.smi.protege.util.ProjectChooser.getProjectFromFile(Unkno wn Source) at edu.stanford.smi.protege.util.ProjectChooser.getProject(Unknown Sourc e) at edu.stanford.smi.protege.ui.ProjectManager.getRequestedProject(Unknow n Source) at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source) at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source) at edu.stanford.smi.protege.action.OpenProject.actionPerformed(Unknown S ource) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) WARNING: java.lang.ClassCastException: edu.stanford.smi.protegex.owl.model.impl. DefaultRDFProperty at edu.stanford.smi.protegex.owl.model.impl.OWLUtil.getActiveOntology(Un known Source) at edu.stanford.smi.protegex.owl.ui.metadatatab.OWLMetadataTab.createMai nPanel(Unknown Source) at edu.stanford.smi.protegex.owl.ui.metadatatab.OWLMetadataTab.initializ e(Unknown Source) at edu.stanford.smi.protege.widget.WidgetUtilities.createTabWidget(Unkno wn Source) at edu.stanford.smi.protege.ui.ProjectView.addTab(Unknown Source) at edu.stanford.smi.protege.ui.ProjectView.createTabbedPane(Unknown Sour ce) at edu.stanford.smi.protege.ui.ProjectView.<init>(Unknown Source) at edu.stanford.smi.protege.ui.ProjectManager.displayCurrentProject(Unkn own Source) at edu.stanford.smi.protege.ui.ProjectManager.displayCurrentProject(Unkn own Source) at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source) at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source) at edu.stanford.smi.protege.action.OpenProject.actionPerformed(Unknown S ource) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) -- WidgetUtilities.createTabWidget() WARNING: java.lang.ClassCastException: edu.stanford.smi.protegex.owl.model.impl. DefaultRDFProperty at edu.stanford.smi.protegex.owl.ui.properties.OWLObjectPropertySubprope rtyRoot.getTopLevelObjectProperties(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLObjectPropertySubprope rtyRoot.<init>(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLObjectPropertySubprope rtyPane.createRoot(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLSubpropertyPane.<init> (Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLObjectPropertySubprope rtyPane.<init>(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLPropertyHierarchiesPan el.createUI(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLPropertyHierarchiesPan el.<init>(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLPropertiesTab.createMa inSplitter(Unknown Source) at edu.stanford.smi.protegex.owl.ui.properties.OWLPropertiesTab.initiali ze(Unknown Source) at edu.stanford.smi.protege.widget.WidgetUtilities.createTabWidget(Unkno wn Source) at edu.stanford.smi.protege.ui.ProjectView.addTab(Unknown Source) at edu.stanford.smi.protege.ui.ProjectView.createTabbedPane(Unknown Sour ce) at edu.stanford.smi.protege.ui.ProjectView.<init>(Unknown Source) at edu.stanford.smi.protege.ui.ProjectManager.displayCurrentProject(Unkn own Source) at edu.stanford.smi.protege.ui.ProjectManager.displayCurrentProject(Unkn own Source) at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source) at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source) at edu.stanford.smi.protege.action.OpenProject.actionPerformed(Unknown S ource) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour ce) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) -- WidgetUtilities.createTabWidget()
|