How to run the examples given in the Protege-OWL 3.4

3 messages Options
Embed this post
Permalink
Saumi Bulathsinghe

How to run the examples given in the Protege-OWL 3.4

Reply Threaded More More options
Print post
Permalink
Hi

i want to run the examples  given in Protege-OWL 3.4\src\edu\stanford\smi\protegex\owlx.

how can i do that???

thanks in advance

Dilshara

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
mahaveer jain-2

Re: How to run the examples given in the Protege-OWL 3.4

Reply Threaded More More options
Print post
Permalink
You need to first install the core protege and protege frames and
using ant create the protege.jar file and then put the class path of
protege.jar when you compile the code

On Fri, Jul 3, 2009 at 12:36 AM, Saumi Bulathsinghe<[hidden email]> wrote:

> Hi
> i want to run the examples  given in Protege-OWL
> 3.4\src\edu\stanford\smi\protegex\owlx.
> how can i do that???
> thanks in advance
> Dilshara
> _______________________________________________
> protege-owl mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing:
> http://protege.stanford.edu/doc/faq.html#01a.03
>
>
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
Saumi Bulathsinghe

Re: How to run the examples given in the Protege-OWL 3.4

Reply Threaded More More options
Print post
Permalink
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.




_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03