[protege-owl] Importing an ontology fails -- why and where?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[protege-owl] Importing an ontology fails -- why and where?

Kurt Jaeke
Hi!

At the moment I am trying to import an ontology into Protégé. But what I get is this:


edu.stanford.smi.protege.storage.clips.ParseException: Encountered "<?xml" at line 1, column 1.
Was expecting one of:
    <EOF>
    "(" ...
    ";+" ...
   
        at edu.stanford.smi.protege.storage.clips.Parser.generateParseException(Unknown Source)
        at edu.stanford.smi.protege.storage.clips.Parser.jj_consume_token(Unknown Source)
        at edu.stanford.smi.protege.storage.clips.Parser.parseKnowledgeBase(Unknown Source)
        at edu.stanford.smi.protege.storage.clips.Parser.loadInstances(Unknown Source)
        at edu.stanford.smi.protege.storage.clips.ClipsKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
        at edu.stanford.smi.protege.storage.clips.ClipsKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
        at edu.stanford.smi.protege.model.Project.loadProjectKB(Unknown Source)
        at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
        at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
        at edu.stanford.smi.protege.model.Project.loadProjectFromURI(Unknown Source)
        at edu.stanford.smi.protege.util.ProjectChooser.loadProject(Unknown Source)
        at edu.stanford.smi.protege.util.ProjectChooser.getProject(Unknown Source)
        at edu.stanford.smi.protege.ui.ProjectManager.getRequestedProject(Unknown Source)
        at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source)
        at edu.stanford.smi.protege.ui.WelcomeDialog.openOtherButton_actionPerformed(Unknown Source)
        at edu.stanford.smi.protege.ui.WelcomeDialog$3.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5554)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5319)
        at java.awt.Container.processEvent(Container.java:2010)
        at java.awt.Component.dispatchEventImpl(Component.java:4021)
        at java.awt.Container.dispatchEventImpl(Container.java:2068)
        at java.awt.Component.dispatchEvent(Component.java:3869)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
        at java.awt.Container.dispatchEventImpl(Container.java:2054)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3869)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180)
        at java.awt.Dialog$1.run(Dialog.java:515)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Unable to load file: file:/Users/sebastian/Desktop/FDCML.owl
Possible reasons:
- The file has an unsupported file format
- The file is not well-formed
- The project file is corrupt


Well, it is pretty clear to me that the file is either
- in an unsupported format
- malformed

Can you guys give me any pointers as to where to hack the parser to make it more verbose on the exact locus of the failure? This crash message is just plain useless.

Yours,
Kurt
--


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

[protege-owl] Re: Importing an ontology fails -- why and where?

Jennifer Vendetti-2
The error message you posted indicates that you are probably trying to
import an OWL file into Protege using the CLIPS back-end (this is the
default back-end for Protege-Frames).

There are instructions for opening OWL files in Protege on our Web site:

http://protege.stanford.edu/doc/owl/getting-started.html

Also, we are strongly recommending the 3.2 beta version of Protege-OWL
over the last release (3.1.1).  The 3.2 beta version has better support
for directly opening OWL files in Protege.

Jennifer

Kurt Jaeke wrote:

>Hi!
>
>At the moment I am trying to import an ontology into Protégé. But what I get is this:
>
>
>edu.stanford.smi.protege.storage.clips.ParseException: Encountered "<?xml" at line 1, column 1.
>Was expecting one of:
>    <EOF>
>    "(" ...
>    ";+" ...
>    
> at edu.stanford.smi.protege.storage.clips.Parser.generateParseException(Unknown Source)
> at edu.stanford.smi.protege.storage.clips.Parser.jj_consume_token(Unknown Source)
> at edu.stanford.smi.protege.storage.clips.Parser.parseKnowledgeBase(Unknown Source)
> at edu.stanford.smi.protege.storage.clips.Parser.loadInstances(Unknown Source)
> at edu.stanford.smi.protege.storage.clips.ClipsKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
> at edu.stanford.smi.protege.storage.clips.ClipsKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
> at edu.stanford.smi.protege.model.Project.loadProjectKB(Unknown Source)
> at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
> at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
> at edu.stanford.smi.protege.model.Project.loadProjectFromURI(Unknown Source)
> at edu.stanford.smi.protege.util.ProjectChooser.loadProject(Unknown Source)
> at edu.stanford.smi.protege.util.ProjectChooser.getProject(Unknown Source)
> at edu.stanford.smi.protege.ui.ProjectManager.getRequestedProject(Unknown Source)
> at edu.stanford.smi.protege.ui.ProjectManager.openProjectRequest(Unknown Source)
> at edu.stanford.smi.protege.ui.WelcomeDialog.openOtherButton_actionPerformed(Unknown Source)
> at edu.stanford.smi.protege.ui.WelcomeDialog$3.actionPerformed(Unknown Source)
> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
> at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
> at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
> at java.awt.Component.processMouseEvent(Component.java:5554)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
> at java.awt.Component.processEvent(Component.java:5319)
> at java.awt.Container.processEvent(Container.java:2010)
> at java.awt.Component.dispatchEventImpl(Component.java:4021)
> at java.awt.Container.dispatchEventImpl(Container.java:2068)
> at java.awt.Component.dispatchEvent(Component.java:3869)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
> at java.awt.Container.dispatchEventImpl(Container.java:2054)
> at java.awt.Window.dispatchEventImpl(Window.java:1774)
> at java.awt.Component.dispatchEvent(Component.java:3869)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180)
> at java.awt.Dialog$1.run(Dialog.java:515)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
>Unable to load file: file:/Users/sebastian/Desktop/FDCML.owl
>Possible reasons:
>- The file has an unsupported file format
>- The file is not well-formed
>- The project file is corrupt
>
>
>Well, it is pretty clear to me that the file is either
>- in an unsupported format
>- malformed
>
>Can you guys give me any pointers as to where to hack the parser to make it more verbose on the exact locus of the failure? This crash message is just plain useless.
>
>Yours,
>Kurt
>  
>
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

[protege-owl] semantic web and owl

vincent aupetit

hi all,

can anyone suggest me references, guides, tutorials, database about the use of  owl language on semantic web?

thanks for the help

regards

 

Vincent AUPETIT -Training Technical Writer-



MSN Amor Busca tu ½ naranja ------------------------------------------------------------------------- To unsubscribe go to http://protege.stanford.edu/community/subscribe.html
Reply | Threaded
Open this post in threaded view
|

[protege-owl] Re: semantic web and owl

Daniel Gresh
vincent aupetit wrote:

> hi all,
>
> can anyone suggest me references, guides, tutorials, database about
> the use of  owl language on semantic web?
>
> thanks for the help
>
> regards
>
>  
>
> *Vincent AUPETIT -*Training Technical Writer-
>
>
> ------------------------------------------------------------------------
> MSN Amor Busca tu ½ naranja <http://g.msn.com/8HMBES/2755??PS=47575>
> -------------------------------------------------------------------------
> To unsubscribe go to http://protege.stanford.edu/community/subscribe.html 

Just go to http://www.w3.org, more specifically
http://www.w3.org/2004/OWL/. That site has tons of resources about
anything concerning the Semantic Web. They have guides, language
references, examples, tutorials, and links to many more sites that have
similar things.
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

[protege-owl] Re: semantic web and owl

vincent aupetit

many thanks daniel.

regards.




Vincent AUPETIT -Training Technical Writer-

Alcan Specialty Sheet Neuf-Brisach (Biesheim, FRANCE)



MSN Amor Busca tu ½ naranja ------------------------------------------------------------------------- To unsubscribe go to http://protege.stanford.edu/community/subscribe.html