You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Yashaswini Makkapati <ya...@gmail.com> on 2016/07/16 04:31:18 UTC

Getting java file from owl file

Hi all,
I created an ontology , got the .owl file from protege. I need to get .java
from this .owl. I tried doing it and got the following error

Please find the attachment of the error.
I have jre in C drive and Apache Jena in downloads

Re: Getting java file from owl file

Posted by Jean-Marc Vanel <je...@gmail.com>.
No, sorry;

you just need to learn the basics of Java and Ant,
that's all !

This list is not intended for this;
generating Java code is a developper task,
then you must become one !


2016-07-16 12:02 GMT+02:00 <ya...@gmail.com>:

> Hi Jeanmarc,
> Can you please tell me how to change the compiler to that which is in Jdk
>
> Regards,
> Yashaswini
>
> Sent from my iPhone
>
> > On Jul 16, 2016, at 5:40 AM, Jean-Marc Vanel <je...@gmail.com>
> wrote:
> >
> > Yashaswini ,
> >
> > That's just the basics of Java development.
> > You need a compiler, which in the JDK, not in the JRE .
> >
> > 2016-07-16 10:30 GMT+02:00 <ya...@gmail.com>:
> >
> >> Thanks. I just want to know the reason for the failure of build. Thanks
> >> for the information
> >>
> >> Regards,
> >> Yashaswini
> >>
> >> Sent from my iPhone
> >>
> >>>> On Jul 16, 2016, at 4:02 AM, Andy Seaborne <an...@apache.org> wrote:
> >>>>
> >>>> On 16/07/16 08:45, Yashaswini Makkapati wrote:
> >>>> Yes, it is.
> >>>> Okay. Here is the error which stopped the build
> >>>> ----------------
> >>>> Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
> >>>> compileAbox:
> >>>>
> >>>> BUILD FAILED
> >>>> D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to
> >> find a
> >>>> javac compiler;
> >>>> com.sun.tools.javac.Main is not on the classpath.
> >>>> Perhaps JAVA_HOME does not point to the JDK.
> >>>> It is currently set to "C:\Program Files\Java\jre1.8.0_60"
> >>>>
> >>>> Total time: 542 milliseconds
> >>>
> >>> This is nothing to do with Jena.
> >>>
> >>> Find someone local and discuss the exercise.  You'll make better
> >> progress that way than relying on email.
> >>>
> >>> Using an IDE like Eclipse is a good idea.
> >>>
> >>>   Andy
> >>>
> >>>>
> >>>>
> >>>>> On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org>
> >> wrote:
> >>>>>
> >>>>>> On 16/07/16 06:59, Yashaswini Makkapati wrote:
> >>>>>>
> >>>>>> Hi,
> >>>>>> The image of the error I got. Yes used schemagen
> >>>>>>
> >>>>>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <niels@thinkiq.com
> >
> >>>>>> wrote:
> >>>>>>
> >>>>>> There is no attachment.
> >>>>>>>
> >>>>>>> Are you using schemagen
> >>>>>>> https://jena.apache.org/documentation/tools/schemagen.html
> >>>>>>>
> >>>>>>> Niels
> >>>>>>>
> >>>>>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
> >>>>>>> Sent: Friday, July 15, 2016 21:31
> >>>>>>> To: users@jena.apache.org
> >>>>>>> Subject: Getting java file from owl file
> >>>>>>>
> >>>>>>> Hi all,
> >>>>>>> I created an ontology , got the .owl file from protege. I need to
> get
> >>>>>>> .java from this .owl. I tried doing it and got the following error
> >>>>>>>
> >>>>>>> Please find the attachment of the error.
> >>>>>>> I have jre in C drive and Apache Jena in downloads
> >>>>> The list does not accept attachments.
> >>>>>
> >>>>> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's
> own
> >>>>> XML format.
> >>>>>
> >>>>>    Andy
> >
> >
> >
> > --
> > Jean-Marc Vanel
> > Déductions SARL - Consulting, services, training,
> > Rule-based programming, Semantic Web
> > http://deductions-software.com/
> > +33 (0)6 89 16 29 52
> > Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui
>



-- 
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://deductions-software.com/
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui

Re: Getting java file from owl file

Posted by ya...@gmail.com.
Hi Jeanmarc,
Can you please tell me how to change the compiler to that which is in Jdk

Regards,
Yashaswini

Sent from my iPhone

> On Jul 16, 2016, at 5:40 AM, Jean-Marc Vanel <je...@gmail.com> wrote:
> 
> Yashaswini ,
> 
> That's just the basics of Java development.
> You need a compiler, which in the JDK, not in the JRE .
> 
> 2016-07-16 10:30 GMT+02:00 <ya...@gmail.com>:
> 
>> Thanks. I just want to know the reason for the failure of build. Thanks
>> for the information
>> 
>> Regards,
>> Yashaswini
>> 
>> Sent from my iPhone
>> 
>>>> On Jul 16, 2016, at 4:02 AM, Andy Seaborne <an...@apache.org> wrote:
>>>> 
>>>> On 16/07/16 08:45, Yashaswini Makkapati wrote:
>>>> Yes, it is.
>>>> Okay. Here is the error which stopped the build
>>>> ----------------
>>>> Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
>>>> compileAbox:
>>>> 
>>>> BUILD FAILED
>>>> D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to
>> find a
>>>> javac compiler;
>>>> com.sun.tools.javac.Main is not on the classpath.
>>>> Perhaps JAVA_HOME does not point to the JDK.
>>>> It is currently set to "C:\Program Files\Java\jre1.8.0_60"
>>>> 
>>>> Total time: 542 milliseconds
>>> 
>>> This is nothing to do with Jena.
>>> 
>>> Find someone local and discuss the exercise.  You'll make better
>> progress that way than relying on email.
>>> 
>>> Using an IDE like Eclipse is a good idea.
>>> 
>>>   Andy
>>> 
>>>> 
>>>> 
>>>>> On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org>
>> wrote:
>>>>> 
>>>>>> On 16/07/16 06:59, Yashaswini Makkapati wrote:
>>>>>> 
>>>>>> Hi,
>>>>>> The image of the error I got. Yes used schemagen
>>>>>> 
>>>>>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com>
>>>>>> wrote:
>>>>>> 
>>>>>> There is no attachment.
>>>>>>> 
>>>>>>> Are you using schemagen
>>>>>>> https://jena.apache.org/documentation/tools/schemagen.html
>>>>>>> 
>>>>>>> Niels
>>>>>>> 
>>>>>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
>>>>>>> Sent: Friday, July 15, 2016 21:31
>>>>>>> To: users@jena.apache.org
>>>>>>> Subject: Getting java file from owl file
>>>>>>> 
>>>>>>> Hi all,
>>>>>>> I created an ontology , got the .owl file from protege. I need to get
>>>>>>> .java from this .owl. I tried doing it and got the following error
>>>>>>> 
>>>>>>> Please find the attachment of the error.
>>>>>>> I have jre in C drive and Apache Jena in downloads
>>>>> The list does not accept attachments.
>>>>> 
>>>>> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own
>>>>> XML format.
>>>>> 
>>>>>    Andy
> 
> 
> 
> -- 
> Jean-Marc Vanel
> Déductions SARL - Consulting, services, training,
> Rule-based programming, Semantic Web
> http://deductions-software.com/
> +33 (0)6 89 16 29 52
> Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui

Re: Getting java file from owl file

Posted by ya...@gmail.com.
Thanks a lot

Sent from my iPhone

> On Jul 16, 2016, at 5:40 AM, Jean-Marc Vanel <je...@gmail.com> wrote:
> 
> Yashaswini ,
> 
> That's just the basics of Java development.
> You need a compiler, which in the JDK, not in the JRE .
> 
> 2016-07-16 10:30 GMT+02:00 <ya...@gmail.com>:
> 
>> Thanks. I just want to know the reason for the failure of build. Thanks
>> for the information
>> 
>> Regards,
>> Yashaswini
>> 
>> Sent from my iPhone
>> 
>>>> On Jul 16, 2016, at 4:02 AM, Andy Seaborne <an...@apache.org> wrote:
>>>> 
>>>> On 16/07/16 08:45, Yashaswini Makkapati wrote:
>>>> Yes, it is.
>>>> Okay. Here is the error which stopped the build
>>>> ----------------
>>>> Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
>>>> compileAbox:
>>>> 
>>>> BUILD FAILED
>>>> D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to
>> find a
>>>> javac compiler;
>>>> com.sun.tools.javac.Main is not on the classpath.
>>>> Perhaps JAVA_HOME does not point to the JDK.
>>>> It is currently set to "C:\Program Files\Java\jre1.8.0_60"
>>>> 
>>>> Total time: 542 milliseconds
>>> 
>>> This is nothing to do with Jena.
>>> 
>>> Find someone local and discuss the exercise.  You'll make better
>> progress that way than relying on email.
>>> 
>>> Using an IDE like Eclipse is a good idea.
>>> 
>>>   Andy
>>> 
>>>> 
>>>> 
>>>>> On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org>
>> wrote:
>>>>> 
>>>>>> On 16/07/16 06:59, Yashaswini Makkapati wrote:
>>>>>> 
>>>>>> Hi,
>>>>>> The image of the error I got. Yes used schemagen
>>>>>> 
>>>>>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com>
>>>>>> wrote:
>>>>>> 
>>>>>> There is no attachment.
>>>>>>> 
>>>>>>> Are you using schemagen
>>>>>>> https://jena.apache.org/documentation/tools/schemagen.html
>>>>>>> 
>>>>>>> Niels
>>>>>>> 
>>>>>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
>>>>>>> Sent: Friday, July 15, 2016 21:31
>>>>>>> To: users@jena.apache.org
>>>>>>> Subject: Getting java file from owl file
>>>>>>> 
>>>>>>> Hi all,
>>>>>>> I created an ontology , got the .owl file from protege. I need to get
>>>>>>> .java from this .owl. I tried doing it and got the following error
>>>>>>> 
>>>>>>> Please find the attachment of the error.
>>>>>>> I have jre in C drive and Apache Jena in downloads
>>>>> The list does not accept attachments.
>>>>> 
>>>>> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own
>>>>> XML format.
>>>>> 
>>>>>    Andy
> 
> 
> 
> -- 
> Jean-Marc Vanel
> Déductions SARL - Consulting, services, training,
> Rule-based programming, Semantic Web
> http://deductions-software.com/
> +33 (0)6 89 16 29 52
> Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui

Re: Getting java file from owl file

Posted by Jean-Marc Vanel <je...@gmail.com>.
Yashaswini ,

That's just the basics of Java development.
You need a compiler, which in the JDK, not in the JRE .

2016-07-16 10:30 GMT+02:00 <ya...@gmail.com>:

> Thanks. I just want to know the reason for the failure of build. Thanks
> for the information
>
> Regards,
> Yashaswini
>
> Sent from my iPhone
>
> > On Jul 16, 2016, at 4:02 AM, Andy Seaborne <an...@apache.org> wrote:
> >
> >> On 16/07/16 08:45, Yashaswini Makkapati wrote:
> >> Yes, it is.
> >> Okay. Here is the error which stopped the build
> >> ----------------
> >> Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
> >> compileAbox:
> >>
> >> BUILD FAILED
> >> D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to
> find a
> >> javac compiler;
> >> com.sun.tools.javac.Main is not on the classpath.
> >> Perhaps JAVA_HOME does not point to the JDK.
> >> It is currently set to "C:\Program Files\Java\jre1.8.0_60"
> >>
> >> Total time: 542 milliseconds
> >
> > This is nothing to do with Jena.
> >
> > Find someone local and discuss the exercise.  You'll make better
> progress that way than relying on email.
> >
> > Using an IDE like Eclipse is a good idea.
> >
> >    Andy
> >
> >>
> >>
> >>> On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org>
> wrote:
> >>>
> >>>> On 16/07/16 06:59, Yashaswini Makkapati wrote:
> >>>>
> >>>> Hi,
> >>>> The image of the error I got. Yes used schemagen
> >>>>
> >>>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com>
> >>>> wrote:
> >>>>
> >>>> There is no attachment.
> >>>>>
> >>>>> Are you using schemagen
> >>>>> https://jena.apache.org/documentation/tools/schemagen.html
> >>>>>
> >>>>> Niels
> >>>>>
> >>>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
> >>>>> Sent: Friday, July 15, 2016 21:31
> >>>>> To: users@jena.apache.org
> >>>>> Subject: Getting java file from owl file
> >>>>>
> >>>>> Hi all,
> >>>>> I created an ontology , got the .owl file from protege. I need to get
> >>>>> .java from this .owl. I tried doing it and got the following error
> >>>>>
> >>>>> Please find the attachment of the error.
> >>>>> I have jre in C drive and Apache Jena in downloads
> >>> The list does not accept attachments.
> >>>
> >>> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own
> >>> XML format.
> >>>
> >>>     Andy
> >
>



-- 
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://deductions-software.com/
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui

Re: Getting java file from owl file

Posted by ya...@gmail.com.
Thanks. I just want to know the reason for the failure of build. Thanks for the information

Regards,
Yashaswini

Sent from my iPhone

> On Jul 16, 2016, at 4:02 AM, Andy Seaborne <an...@apache.org> wrote:
> 
>> On 16/07/16 08:45, Yashaswini Makkapati wrote:
>> Yes, it is.
>> Okay. Here is the error which stopped the build
>> ----------------
>> Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
>> compileAbox:
>> 
>> BUILD FAILED
>> D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to find a
>> javac compiler;
>> com.sun.tools.javac.Main is not on the classpath.
>> Perhaps JAVA_HOME does not point to the JDK.
>> It is currently set to "C:\Program Files\Java\jre1.8.0_60"
>> 
>> Total time: 542 milliseconds
> 
> This is nothing to do with Jena.
> 
> Find someone local and discuss the exercise.  You'll make better progress that way than relying on email.
> 
> Using an IDE like Eclipse is a good idea.
> 
>    Andy
> 
>> 
>> 
>>> On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org> wrote:
>>> 
>>>> On 16/07/16 06:59, Yashaswini Makkapati wrote:
>>>> 
>>>> Hi,
>>>> The image of the error I got. Yes used schemagen
>>>> 
>>>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com>
>>>> wrote:
>>>> 
>>>> There is no attachment.
>>>>> 
>>>>> Are you using schemagen
>>>>> https://jena.apache.org/documentation/tools/schemagen.html
>>>>> 
>>>>> Niels
>>>>> 
>>>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
>>>>> Sent: Friday, July 15, 2016 21:31
>>>>> To: users@jena.apache.org
>>>>> Subject: Getting java file from owl file
>>>>> 
>>>>> Hi all,
>>>>> I created an ontology , got the .owl file from protege. I need to get
>>>>> .java from this .owl. I tried doing it and got the following error
>>>>> 
>>>>> Please find the attachment of the error.
>>>>> I have jre in C drive and Apache Jena in downloads
>>> The list does not accept attachments.
>>> 
>>> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own
>>> XML format.
>>> 
>>>     Andy
> 

Re: Getting java file from owl file

Posted by Andy Seaborne <an...@apache.org>.
On 16/07/16 08:45, Yashaswini Makkapati wrote:
> Yes, it is.
> Okay. Here is the error which stopped the build
> ----------------
> Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
> compileAbox:
>
> BUILD FAILED
> D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to find a
> javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "C:\Program Files\Java\jre1.8.0_60"
>
> Total time: 542 milliseconds

This is nothing to do with Jena.

Find someone local and discuss the exercise.  You'll make better 
progress that way than relying on email.

Using an IDE like Eclipse is a good idea.

	Andy

>
>
> On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org> wrote:
>
>> On 16/07/16 06:59, Yashaswini Makkapati wrote:
>>
>>> Hi,
>>> The image of the error I got. Yes used schemagen
>>>
>>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com>
>>> wrote:
>>>
>>> There is no attachment.
>>>>
>>>> Are you using schemagen
>>>> https://jena.apache.org/documentation/tools/schemagen.html
>>>>
>>>> Niels
>>>>
>>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
>>>> Sent: Friday, July 15, 2016 21:31
>>>> To: users@jena.apache.org
>>>> Subject: Getting java file from owl file
>>>>
>>>> Hi all,
>>>> I created an ontology , got the .owl file from protege. I need to get
>>>> .java from this .owl. I tried doing it and got the following error
>>>>
>>>> Please find the attachment of the error.
>>>> I have jre in C drive and Apache Jena in downloads
>>>>
>>>>
>>>
>> The list does not accept attachments.
>>
>> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own
>> XML format.
>>
>>      Andy
>>
>>
>


Re: Getting java file from owl file

Posted by Yashaswini Makkapati <ya...@gmail.com>.
Yes, it is.
Okay. Here is the error which stopped the build
----------------
Buildfile: D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml
compileAbox:

BUILD FAILED
D:\SEMANTIC WEB\Lecture2\semantic\semantic\build.xml:165: Unable to find a
javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.8.0_60"

Total time: 542 milliseconds


On Sat, Jul 16, 2016 at 3:39 AM, Andy Seaborne <an...@apache.org> wrote:

> On 16/07/16 06:59, Yashaswini Makkapati wrote:
>
>> Hi,
>> The image of the error I got. Yes used schemagen
>>
>> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com>
>> wrote:
>>
>> There is no attachment.
>>>
>>> Are you using schemagen
>>> https://jena.apache.org/documentation/tools/schemagen.html
>>>
>>> Niels
>>>
>>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
>>> Sent: Friday, July 15, 2016 21:31
>>> To: users@jena.apache.org
>>> Subject: Getting java file from owl file
>>>
>>> Hi all,
>>> I created an ontology , got the .owl file from protege. I need to get
>>> .java from this .owl. I tried doing it and got the following error
>>>
>>> Please find the attachment of the error.
>>> I have jre in C drive and Apache Jena in downloads
>>>
>>>
>>
> The list does not accept attachments.
>
> Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own
> XML format.
>
>     Andy
>
>

Re: Getting java file from owl file

Posted by Andy Seaborne <an...@apache.org>.
On 16/07/16 06:59, Yashaswini Makkapati wrote:
> Hi,
> The image of the error I got. Yes used schemagen
>
> On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com> wrote:
>
>> There is no attachment.
>>
>> Are you using schemagen
>> https://jena.apache.org/documentation/tools/schemagen.html
>>
>> Niels
>>
>> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
>> Sent: Friday, July 15, 2016 21:31
>> To: users@jena.apache.org
>> Subject: Getting java file from owl file
>>
>> Hi all,
>> I created an ontology , got the .owl file from protege. I need to get
>> .java from this .owl. I tried doing it and got the following error
>>
>> Please find the attachment of the error.
>> I have jre in C drive and Apache Jena in downloads
>>
>

The list does not accept attachments.

Make sure the .owl file is an OWN ontology in RDF/XML and not OWL's own 
XML format.

     Andy


Re: Getting java file from owl file

Posted by Yashaswini Makkapati <ya...@gmail.com>.
Hi,
The image of the error I got. Yes used schemagen

On Sat, Jul 16, 2016 at 12:55 AM, Niels Andersen <ni...@thinkiq.com> wrote:

> There is no attachment.
>
> Are you using schemagen
> https://jena.apache.org/documentation/tools/schemagen.html
>
> Niels
>
> From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
> Sent: Friday, July 15, 2016 21:31
> To: users@jena.apache.org
> Subject: Getting java file from owl file
>
> Hi all,
> I created an ontology , got the .owl file from protege. I need to get
> .java from this .owl. I tried doing it and got the following error
>
> Please find the attachment of the error.
> I have jre in C drive and Apache Jena in downloads
>

RE: Getting java file from owl file

Posted by Niels Andersen <ni...@thinkiq.com>.
There is no attachment.

Are you using schemagen https://jena.apache.org/documentation/tools/schemagen.html

Niels

From: Yashaswini Makkapati [mailto:yashaswini2203@gmail.com]
Sent: Friday, July 15, 2016 21:31
To: users@jena.apache.org
Subject: Getting java file from owl file

Hi all,
I created an ontology , got the .owl file from protege. I need to get .java from this .owl. I tried doing it and got the following error

Please find the attachment of the error.
I have jre in C drive and Apache Jena in downloads