以文本方式查看主题

-  中文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=51117)


--  作者: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()


--  作者:jpz6311whu
--  发布时间:8/8/2007 2:44:00 PM

--  
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
--  作者:waterlili329
--  发布时间:8/8/2007 7:46:00 PM

--  
实在不好意思.总问些白痴的问题
下次会注意了,谢谢楼上
--  作者:sonpung
--  发布时间:8/8/2007 9:31:00 PM

--  
楼主,如何建立本体,有什么软件?
--  作者:zhaoydtx
--  发布时间:8/31/2007 6:11:00 PM

--  
楼上的,问题有没有解决啊,我也遇到和你同样的问题,但我做本体都是照着文档一步一步走的啊
--  作者:weijp0104
--  发布时间:6/24/2009 9:30:00 AM

--  这个网页打不开啊,我试了用浏览器腾讯TT和IE
这个网页打不开啊,我试了用浏览器腾讯TT和IE
--  作者:yayatu
--  发布时间:6/24/2009 5:22:00 PM

--  

   建议建立完本体,尽量多用现有网上的这些服务,RDF Validator都是非常好帮你检验RDF 文件和OWL文件语法的。善于利用工具会事半功倍啊。呵呵


--  作者:weijp0104
--  发布时间:6/25/2009 8:21:00 AM

--  
谢谢啦!让我又多长了见识!
--  作者:Humphrey
--  发布时间:6/25/2009 10:41:00 AM

--  
本体编辑工具中没有能够实现对本体编码进行验证的能力吗?这些工具最大的局限就是对网络的依赖,如果不能连接网络就不能使用啊。
--  作者:yayatu
--  发布时间:7/1/2009 7:50:00 PM

--  
protege后台的命令行已经帮你定位到出差的地方。可以直接检测。其实也算是在帮你检查错误了
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
93.750ms