Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Problem with loading Core Legal Ontology in Protege 3.4 beta

Marius mgwiazda at onet.eu
Thu Jan 31 02:22:08 PST 2008


Dear All,

I have problem with loading Core Legal Ontology [1] into Protege 3.4 beta
build 125 or Protege 3.3.1. During this loading I got message: 

There were errors at performing operation.

1. Exception class java.lang.ClassCastException. 
Message: edu.stanford.smi.protegex.owl.model.impl.DefaultOWLUnionClass
cannot be cast to edu.stanford.smi.protegex.owl.model.RDFList

2. Errors at loading OWL file from file:/home/mentat/Tmp/CoreLegal.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


See console and log for more details. 


Console exceptions:


SEVERE: Error at loading file file:/home/mentat/Tmp/CoreLegal.owl --
java.lang.ClassCastException:
edu.stanford.smi.protegex.owl.model.impl.DefaultOWLUnionClass cannot be cast
to edu.stanford.smi.protegex.owl.model.RDFList
        at
edu.stanford.smi.protegex.owl.model.impl.DefaultRDFList.getRest(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.impl.DefaultRDFList.getValues(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLNAryLogicalClass.getOperands(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay.getDisplayTextOfOWLNAryLogicalClass(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay.getDisplayText(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay.getNestedDisplayText(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay.getOWLRestrictionFillerText(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay.getDisplayTextOfOWLRestriction(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.classdisplay.AbstractOWLClassDisplay.getDisplayText(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLAnonymousClass.getBrowserText(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.triplestore.impl.DuplicateSuperclassesPostProcessor.removeDuplicateSuperclasses(Unknown
Source)
        at
edu.stanford.smi.protegex.owl.model.triplestore.impl.DuplicateSuperclassesPostProcessor.<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.CreateOWLProjectFromFilePlugin.createProject(Unknown
Source)
        at
edu.stanford.smi.protege.util.ProjectChooser.useCreateProjectFromFilePlugin(Unknown
Source)
        at
edu.stanford.smi.protege.util.ProjectChooser.getProjectFromFile(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:1995)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
        at java.awt.Dialog$1.run(Dialog.java:1039)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



I check ontology using validators [2, 3] and is no errors or warnings.
Validator [3] only shows that this is OWL Full ontology. I load this
ontology in Protege 4 Alpha and SWOOP editor and it load well (but I need to
use Protege 3.4). Is this Protege 3.4 bug?


Best wishes,
Mariusz


[1]	http://www.loa-cnr.it/ontologies/CLO/CoreLegal.owl
[2]	http://www.w3.org/RDF/Validator
[3]	http://phoebus.cs.man.ac.uk:9999/OWL/Validator
-- 
View this message in context: http://www.nabble.com/Problem-with-loading-Core-Legal-Ontology-in-Protege-3.4-beta-tp15201311p15201311.html
Sent from the Protege - OWL mailing list archive at Nabble.com.




More information about the protege-owl mailing list