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] Some .jar missing in compiling ? (hello world example)

Cleiton Reis cperes.reis at gmail.com
Mon Sep 25 12:07:16 PDT 2006


Hi!

I Trying to compiling the follow example :

=-=-=[ START of  OWLAPIDemoApplication.java ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

package com.demo.application;


import edu.stanford.smi.protegex.owl.model.OWLModel;
import edu.stanford.smi.protegex.owl.model.OWLNamedClass;
import edu.stanford.smi.protegex.owl.ProtegeOWL;


public class OWLAPIDemoApplication {


    public static void main(String[] args) {

            OWLModel owlModel = ProtegeOWL.createJenaOWLModel();

            owlModel.getNamespaceManager().setDefaultNamespace("http://hello.com#");

            OWLNamedClass worldClass = owlModel.createOWLNamedClass("World");

            System.out.println("Class URI: " + worldClass.getURI());

       }
}

=-=-=[ END of  OWLAPIDemoApplication.java ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Resulting errors:


=-=-=[ START ERRORS ]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

user at myhost:~/home/user/onto$ ./jcomp.sh OWLAPIDemoApplication.java

OWLAPIDemoApplication.java:14: cannot access
edu.stanford.smi.protege.model.DefaultKnowledgeBase
file edu/stanford/smi/protege/model/DefaultKnowledgeBase.class not found
            OWLModel owlModel = ProtegeOWL.createJenaOWLModel();

                            ^
OWLAPIDemoApplication.java:16: cannot access
edu.stanford.smi.protege.model.KnowledgeBase
file edu/stanford/smi/protege/model/KnowledgeBase.class not found
            owlModel.getNamespaceManager().setDefaultNamespace("http://hello.com#");
                         ^
OWLAPIDemoApplication.java:20: cannot access
edu.stanford.smi.protege.model.Instance
file edu/stanford/smi/protege/model/Instance.class not found
            System.out.println("Class URI: " + worldClass.getURI());
                                                                              ^
3 errors

=-=-=-[END of ERRORS ] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Here is my CLASSPATH:



CLASSPATH="./:/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/antlr.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/arq.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/commons-lang-2.0.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/commons-logging.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/concurrent.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/edtftpj-1.5.2.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/ekitspell.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/icu4j.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/jakarta-oro-2.0.5.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/jcalendar.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/jena.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/junit.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/kazuki.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/log4j.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/owlsyntax.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/protege-owl.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/rdf-api-2001-01-19.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/swrl-jess-bridge.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/xercesImpl.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/xml-apis.jar:
/usr/local/Protege-3.2/plugins/edu.stanford.smi.protegex.owl/xmlParserAPIs.jar"


My jdk version is 1.5 running on a Debian box

Reading the FAQ I see that JENA is not needed to Protege-OWL-API works.

Would be a instalation issue of protegé ?

What I miss ? anyone can help me ?

Thanks !



More information about the protege-owl mailing list