bug with urn namespace

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

bug with urn namespace

Massimo Coletti
If I create a simple ontology, with 1 class, and the following namespace:

urn:nir:stato:decreto.legislativo:2003-06-30

Protege is not able to reload the project after saving an closing it.
Also if I create a new project from the existing owl file, the problem
persist.

The exception is:
java.lang.NullPointerException
    at
edu.stanford.smi.protegex.owl.model.impl.OWLUtil.indirectlyImportsHelper(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.impl.OWLUtil.indirectlyImports(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel.isProtegeMetaOntologyImported(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel.getProtegeSubclassesDisjointProperty(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass.getSubclassesDisjoint(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.framestore.OWLFrameStore.addDirectSuperclass(Unknown
Source)
    at
edu.stanford.smi.protege.model.DefaultKnowledgeBase.addDirectSuperclass(Unknown
Source)
    at
edu.stanford.smi.protege.model.DefaultCls.addDirectSuperclass(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.triplestore.impl.RDFSNamedClassPostProcessor.updateDirectSuperclasses(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.triplestore.impl.RDFSNamedClassPostProcessor.<init>(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostProcessor.postProcess(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.model.triplestore.impl.AbstractTripleStoreModel.endTripleStoreChanges(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriples(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
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.loadKnowledgeBase(Unknown
Source)
    at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown Source)
    at
edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.jena.OWLFilesCreateProjectPlugin.buildNewProject2(Unknown
Source)
    at
edu.stanford.smi.protegex.owl.jena.OWLFilesCreateProjectPlugin.buildNewProject(Unknown
Source)
    at
edu.stanford.smi.protege.plugin.AbstractCreateProjectPlugin.createProject(Unknown
Source)
    at
edu.stanford.smi.protege.plugin.CreateProjectWizard.onFinish(Unknown Source)
    at edu.stanford.smi.protege.util.Wizard$1.actionPerformed(Unknown
Source)
    at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    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.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at java.awt.Component.show(Component.java:1300)
    at java.awt.Component.setVisible(Component.java:1253)
    at edu.stanford.smi.protege.util.Wizard.execute(Unknown Source)
    at
edu.stanford.smi.protege.ui.ProjectManager.createNewProjectRequest(Unknown
Source)
    at
edu.stanford.smi.protege.ui.WelcomeDialog.newButton_actionPerformed(Unknown
Source)
    at
edu.stanford.smi.protege.ui.WelcomeDialog$2.actionPerformed(Unknown Source)
    at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    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:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    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:242)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

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

Regards,

Massimo Coletti
-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html

Reply | Threaded
Open this post in threaded view
|

Re: bug with urn namespace

Nick Drummond
I've replied to your other email

Cheers

Nick

On 8 May 2006, at 14:26, Massimo Coletti wrote:

> If I create a simple ontology, with 1 class, and the following  
> namespace:
>
> urn:nir:stato:decreto.legislativo:2003-06-30
>
> Protege is not able to reload the project after saving an closing it.
> Also if I create a new project from the existing owl file, the  
> problem persist.
>
> The exception is:
> java.lang.NullPointerException
>    at  
> edu.stanford.smi.protegex.owl.model.impl.OWLUtil.indirectlyImportsHelp
> er(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.impl.OWLUtil.indirectlyImports
> (Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel.isProtegeMet
> aOntologyImported(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel.getProtegeSu
> bclassesDisjointProperty(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.impl.DefaultOWLNamedClass.getSubcl
> assesDisjoint(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.framestore.OWLFrameStore.addDirect
> Superclass(Unknown Source)
>    at  
> edu.stanford.smi.protege.model.DefaultKnowledgeBase.addDirectSuperclas
> s(Unknown Source)
>    at edu.stanford.smi.protege.model.DefaultCls.addDirectSuperclass
> (Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.triplestore.impl.RDFSNamedClassPos
> tProcessor.updateDirectSuperclasses(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.triplestore.impl.RDFSNamedClassPos
> tProcessor.<init>(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.triplestore.impl.TripleChangePostP
> rocessor.postProcess(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.model.triplestore.impl.AbstractTripleSto
> reModel.endTripleStoreChanges(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriples
> (Unknown Source)
>    at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run
> (Unknown Source)
>    at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run
> (Unknown Source)
>    at edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run
> (Unknown 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.loadKnowle
> dgeBase(Unknown Source)
>    at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown  
> Source)
>    at  
> edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase
> (Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.jena.OWLFilesCreateProjectPlugin.buildNe
> wProject2(Unknown Source)
>    at  
> edu.stanford.smi.protegex.owl.jena.OWLFilesCreateProjectPlugin.buildNe
> wProject(Unknown Source)
>    at  
> edu.stanford.smi.protege.plugin.AbstractCreateProjectPlugin.createProj
> ect(Unknown Source)
>    at edu.stanford.smi.protege.plugin.CreateProjectWizard.onFinish
> (Unknown Source)
>    at edu.stanford.smi.protege.util.Wizard$1.actionPerformed
> (Unknown Source)
>    at javax.swing.AbstractButton.fireActionPerformed
> (AbstractButton.java:1849)
>    at javax.swing.AbstractButton$Handler.actionPerformed
> (AbstractButton.java:2169)
>    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.Component.processMouseEvent(Component.java:5488)
>    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>    at java.awt.Component.processEvent(Component.java:5253)
>    at java.awt.Container.processEvent(Container.java:1966)
>    at java.awt.Component.dispatchEventImpl(Component.java:3955)
>    at java.awt.Container.dispatchEventImpl(Container.java:2024)
>    at java.awt.Component.dispatchEvent(Component.java:3803)
>    at java.awt.LightweightDispatcher.retargetMouseEvent
> (Container.java:4212)
>    at java.awt.LightweightDispatcher.processMouseEvent
> (Container.java:3892)
>    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:
> 3822)
>    at java.awt.Container.dispatchEventImpl(Container.java:2010)
>    at java.awt.Window.dispatchEventImpl(Window.java:1774)
>    at java.awt.Component.dispatchEvent(Component.java:3803)
>    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>    at java.awt.EventDispatchThread.pumpOneEventForHierarchy
> (EventDispatchThread.java:242)
>    at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:163)
>    at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:153)
>    at java.awt.Dialog$1.run(Dialog.java:515)
>    at java.awt.Dialog.show(Dialog.java:536)
>    at java.awt.Component.show(Component.java:1300)
>    at java.awt.Component.setVisible(Component.java:1253)
>    at edu.stanford.smi.protege.util.Wizard.execute(Unknown Source)
>    at  
> edu.stanford.smi.protege.ui.ProjectManager.createNewProjectRequest
> (Unknown Source)
>    at  
> edu.stanford.smi.protege.ui.WelcomeDialog.newButton_actionPerformed
> (Unknown Source)
>    at edu.stanford.smi.protege.ui.WelcomeDialog$2.actionPerformed
> (Unknown Source)
>    at javax.swing.AbstractButton.fireActionPerformed
> (AbstractButton.java:1849)
>    at javax.swing.AbstractButton$Handler.actionPerformed
> (AbstractButton.java:2169)
>    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:5488)
>    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>    at java.awt.Component.processEvent(Component.java:5253)
>    at java.awt.Container.processEvent(Container.java:1966)
>    at java.awt.Component.dispatchEventImpl(Component.java:3955)
>    at java.awt.Container.dispatchEventImpl(Container.java:2024)
>    at java.awt.Component.dispatchEvent(Component.java:3803)
>    at java.awt.LightweightDispatcher.retargetMouseEvent
> (Container.java:4212)
>    at java.awt.LightweightDispatcher.processMouseEvent
> (Container.java:3892)
>    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:
> 3822)
>    at java.awt.Container.dispatchEventImpl(Container.java:2010)
>    at java.awt.Window.dispatchEventImpl(Window.java:1774)
>    at java.awt.Component.dispatchEvent(Component.java:3803)
>    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>    at java.awt.EventDispatchThread.pumpOneEventForHierarchy
> (EventDispatchThread.java:242)
>    at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:163)
>    at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:153)
>    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:242)
>    at java.awt.EventDispatchThread.pumpEventsForHierarchy
> (EventDispatchThread.java:163)
>    at java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:157)
>    at java.awt.EventDispatchThread.pumpEvents
> (EventDispatchThread.java:149)
>    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
> 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
>
> Regards,
>
> Massimo Coletti
> ----------------------------------------------------------------------
> ---
> To unsubscribe go to http://protege.stanford.edu/community/ 
> subscribe.html
>

-------------------------------------------------------------------------
To unsubscribe go to http://protege.stanford.edu/community/subscribe.html