Thank you for the help.
But i have installed the Protege_3.4 setup in my pc. and tried to compile the example as given in below. but i get few errors.
C:\Documents and Settings\acer\My Documents\Downloads\Protege-OWL 3.4\src\edu\stanford\smi\protegex\owlx\examples>javac -classpath "c:\Program Files\Protege_3.4\protege.jar" QueryClassesExample.java
QueryClassesExample.java:26: package edu.stanford.smi.protegex.owl does not exist
import edu.stanford.smi.protegex.owl.ProtegeOWL;
^
QueryClassesExample.java:27: package edu.stanford.smi.protegex.owl.model does not exist
import edu.stanford.smi.protegex.owl.model.*;
^
QueryClassesExample.java:40: cannot find symbol
symbol : class OWLModel
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLModel owlModel = ProtegeOWL.createJenaOWLModelFromURI(uri);
^
QueryClassesExample.java:40: cannot find symbol
symbol : variable ProtegeOWL
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLModel owlModel = ProtegeOWL.createJenaOWLModelFromURI(uri);
^
QueryClassesExample.java:45: cannot find symbol
symbol : class OWLNamedClass
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLNamedClass cls = (OWLNamedClass) it.next();
^
QueryClassesExample.java:45: cannot find symbol
symbol : class OWLNamedClass
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLNamedClass cls = (OWLNamedClass) it.next();
^
QueryClassesExample.java:49: cannot find symbol
symbol : class OWLIndividual
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLIndividual individual = (OWLIndividual) jt.next();
^
QueryClassesExample.java:49: cannot find symbol
symbol : class OWLIndividual
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLIndividual individual = (OWLIndividual) jt.next();
^
QueryClassesExample.java:55: cannot find symbol
symbol : class RDFProperty
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
RDFProperty subClassOfProperty = owlModel.getRDFProperty(RDFSNames.Slot.
SUB_CLASS_OF);
^
QueryClassesExample.java:55: package RDFSNames does not exist
RDFProperty subClassOfProperty = owlModel.getRDFProperty(RDFSNames.Slot.
SUB_CLASS_OF);
^
QueryClassesExample.java:56: cannot find symbol
symbol : class OWLNamedClass
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
OWLNamedClass owlThingClass = owlModel.getOWLThingClass();
^
QueryClassesExample.java:60: cannot find symbol
symbol : class RDFResource
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
RDFResource resource = (RDFResource) it.next();
^
QueryClassesExample.java:60: cannot find symbol
symbol : class RDFResource
location: class edu.stanford.smi.protegex.owlx.examples.QueryClassesExample
RDFResource resource = (RDFResource) it.next();
^
13 errors
C:\Documents and Settings\acer\My Documents\Downloads\Protege-OWL 3.4\src\edu\st
anford\smi\protegex\owlx\examples>
can anybody please tell me what should i do to compile the program correctly.
Thanks in advance.
Dilshara.