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] Thank you Mr Timothy Redmond and Ms Jennifer Vendetti about your answers. It's helpful to me ^_^

Timothy Redmond tredmond at stanford.edu
Sun Apr 15 10:24:47 PDT 2007


First  of all, it looks like you are running Protege-2000

> Protege-2000  version 1.7, Build 930

This is a pretty old version of Protege and I don't know much about it.

> When I saw the above error, i realize that Protege can't find out  
> the plugins classpath. However, I put all protege files into lib  
> folder, where i put all my libraries. Although i checked URI  
> string. It pointed to the right file I had made before:

The way that you tell Protege where the classes are for the plugins  
is to either run Protege from a valid installation directory or to  
set the system property protege.dir to point to a valid installation  
directory.  For more on how to run Protege in an IDE see

	http://protege.cim3.net/cgi-bin/wiki.pl?EasyMethodOfRunningInAnIDE

And I would recommend downloading and using the latest svn sources.

-Timothy


On Apr 13, 2007, at 3:03 AM, Thang Duong wrote:

> Dear Mr Timothy and Ms Jenifer,
>
>
> At first, thank you for your helping.
> Your ideas help me very much.
> Thank you.
> I've passed some errors I did
>
> But now, I stucked at this following error:
>
> init:
> deps-jar:
> Compiling 1 source file to D:\ChapterExtension\Exercise01\build 
> \classes
> Note: D:\ChapterExtension\Exercise01\src\ontology 
> \OntologyFilter.java uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> compile:
> Using D:\ChapterExtension\Exercise01\lib\GATE as GATE home
> Using D:\ChapterExtension\Exercise01\lib\GATE\plugins as installed  
> plug-ins directory.
> Using D:\ChapterExtension\Exercise01\lib\GATE\gate.xml as site  
> configuration file.
> Using C:\Documents and Settings\Duong Quoc Thang\gate.xml as user  
> configuration file
> CREOLE plugin loaded: file:/D:/ChapterExtension/Exercise01/lib/GATE/ 
> plugins/ANNIE/
> CREOLE plugin loaded: file:/D:/ChapterExtension/Exercise01/lib/
> Protege-2000  version 1.7, Build 930
> JVM: Java HotSpot(TM) Client VM - 1.5.0_11-b03, mixed mode
> Plugin classpath:
>
> java.lang.NullPointerException
>         at  
> edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel.isSlotMetaCl 
> s (AbstractOWLModel.java:3294)
>         at  
> edu.stanford.smi.protege.model.DefaultKnowledgeBase.addDirectTemplateS 
> lot(Unknown Source)
>         at  
> edu.stanford.smi.protege.model.DefaultCls.addDirectTemplateSlot 
> (Unknown Source)
>         at  
> edu.stanford.smi.protege.model.DefaultKnowledgeBase.createSystemFrames 
> (Unknown Source)
>         at edu.stanford.smi.protege.model.DefaultKnowledgeBase.load 
> (Unknown Source)
>         at  
> edu.stanford.smi.protege.model.DefaultKnowledgeBase .<init>(Unknown  
> Source)
>         at  
> edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel.<init> 
> (AbstractOWLModel.java:318)
>         at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.<init> 
> (JenaOWLModel.java :62)
>         at  
> edu.stanford.smi.protegex.owl.jena.JenaKnowledgeBaseFactory.createKnow 
> ledgeBase(JenaKnowledgeBaseFactory.java:55)
>         at edu.stanford.smi.protege.model.Project.createDomainKB 
> (Unknown Source)
>         at  
> edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase 
> (Unknown Source)
>         at edu.stanford.smi.protege.model.Project.<init>(Unknown  
> Source)
>         at edu.stanford.smi.protege.model.Project.createNewProject  
> (Unknown Source)
>         at  
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModel 
> (ProtegeOWL.java:32)
>         at  
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI 
> (ProtegeOWL.java:54)
>         at ontology.OntologyFilter.<init>(OntologyFilter.java:53)
>         at semanticweb.Web$1.run(Web.java:48)
>         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)
> debug:
> BUILD SUCCESSFUL (total time: 29 seconds)
>
>
>
> when I wrote this following code:
>
>  public OntologyFilter(java.net.URI pUriResource){
>         try{
>             this.ONTOLOGY_URI=pUriResource.toString ();
>             // Load the ontology from the specified URL
>             model = ProtegeOWL.createJenaOWLModelFromURI 
> (this.ONTOLOGY_URI);
>         }catch(Exception e) {
> //            System.out.println("ERROR at OntologyFilter :  
> \n"+e.getMessage());
>             e.printStackTrace();
>         }
> }
>
>
> When I saw the above error, i realize that Protege can't find out  
> the plugins classpath. However, I put all protege files into lib  
> folder, where i put all my libraries. Although i checked URI  
> string. It pointed to the right file I had made before:
>
> file:/D:/ChapterExtension/Exercise01/lib/test.owl
>
>
>
> My folder structure is:
>
> lib\
>     \protege.jar
>     \plugins
>                \edu.stanford.smi.protegex.owl\<all jar packages and  
> files of protege 3.1>
>
>
> So, how can i set up for protege to realize plugins classpath ? I'm  
> using NetBeans IDE. And when I debugged, I saw the above error.
> Now, i don't know the method to set plugin classpath by coding for  
> Protege. If you've set plugins classpath for Protege by coding (set  
> plugins classpath for Protege by writing codes), may you show me  
> the right way to solve it, please ?
>
> Duong Quoc Thang
> _______________________________________________
> 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