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

mentat mgwiazda at onet.eu
Thu Jan 31 12:04:20 PST 2008


Dear Timothy,

Because of plugins I have to use Protege 3.4, so I will waiting for next 
beta:)

Many thanks for Your help,
Mariusz



Timothy Redmond wrote:
> Yes there is a problem loading this in Protege.  I don't know if this  
> will help but Protege 4 has no trouble with this ontology.  If Protege  
> 4 has all the plugins that you need I would heartily recommend this as  
> the best choice.  Also the version of Protege 3 that is supposed to  
> come out at the beginning of February should be able to handle this  
> type of ontology.  I tested this on both.
>
> The problem that Protege 3 is having is that some of the nodes don't  
> include sufficient type information.  Protege 4 and the upcoming  
> version of Protege 3 can infer the missing type information and  
> continue without trouble.
>
> So - if you want more details -the class
>
> 	LegallyRelevantCircumstance
>
> is a subclass of
>
> 	dul:hasSetting some (dul:Situation and (dul:satisfies  some  
> LegalDescription))
>
> In the second expression the conjunction
>
> 	(dul:Situation and (dul:satisfies  some LegalDescription))
>
> is represented as the intersection of the set of items in a list.   
> This list is represented by node A119 but it is never asserted that  
> this node is a list.
>
> -Timothy
>
>
> On Jan 31, 2008, at 2:22 AM, Marius wrote:
>
>   
>> 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.
>>
>> _______________________________________________
>> protege-owl mailing list
>> protege-owl at lists.stanford.edu
>> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>>
>> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>>     
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
>
>   




More information about the protege-owl mailing list