incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür ...@farewellutopia.com>
Subject Re: HelloWorld with Clerezza?
Date Wed, 09 Nov 2011 08:32:41 GMT
Hi Paolo

With netbeans I had no problem launching the file without getting an
exception. If using eclipse don't forget to run `mvn eclipse:eclipse` and
refresh the project.

Cheers,
Reto

On Wed, Nov 9, 2011 at 4:32 AM, Paolo Castagna <
castagna.lists@googlemail.com> wrote:

> Hi Reto,
> I think they are, isn't it? The pom.xml file is here:
> https://github.com/castagna/**Apache-Jena-Examples/blob/**master/pom.xml<https://github.com/castagna/Apache-Jena-Examples/blob/master/pom.xml>
>
> I usually execute stuff from my IDE while I develop.
>
> Paolo
>
>
> Reto Bachmann-Gmür wrote:
>
>> Hi Paolo
>>
>> How do you start the application? You need to have serializer and parser
>> in
>> the runtime classpath. Having the serializer and parser as dependency in
>> the pom you can use the maven-jar-plugin and the maven-assembly-plugin to
>> add the classpath to the jar and put the dependencies in the right place,
>> see
>> http://svn.apache.org/viewvc/**incubator/clerezza/trunk/**
>> parent/rdf.schemagen/for<http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/rdf.schemagen/for>
>> an example. just noticed the maven-assembly part is commented out
>> because of a problem with the reactor build (CLEREZZA-22), hope it gives
>> you an idea anyway.
>>
>> Cheers,
>> Reto
>>
>> On Tue, Nov 8, 2011 at 5:49 PM, Paolo Castagna <
>> castagna.lists@googlemail.com> wrote:
>>
>>  Hi Reto
>>>
>>> On 8 November 2011 07:47, Paolo Castagna <castagna.lists@googlemail.com*
>>> *>
>>> wrote:
>>>
>>>> Hi Reto,
>>>> thank you very much for you quick and straight to the point reply.
>>>> I have not had time to try the example out, but I'll come back here if
>>>> I have problems when I do it.
>>>>
>>> Here I am.
>>>
>>> Your example is here:
>>>
>>> https://github.com/castagna/**Apache-Jena-Examples/blob/**
>>> master/src/main/java/org/**apache/jena/examples/**
>>> ExampleClerezza_01.java<https://github.com/castagna/Apache-Jena-Examples/blob/master/src/main/java/org/apache/jena/examples/ExampleClerezza_01.java>
>>>
>>> I added these two dependencies in my pom.xml file:
>>>
>>>  <properties>
>>>
>>>  <clerezza-rdf.jena.serializer.**version>0.10-incubating-**
>>> SNAPSHOT</clerezza-rdf.jena.**serializer.version>
>>>
>>>  <clerezza-rdf.jena.parser.**version>0.11-incubating-**
>>> SNAPSHOT</clerezza-rdf.jena.**parser.version>
>>>   ...
>>>  </properties>
>>>
>>>
>>>   <dependency>
>>>     <groupId>org.apache.clerezza</**groupId>
>>>     <artifactId>rdf.jena.parser</**artifactId>
>>>     <version>${clerezza-rdf.jena.**parser.version}</version>
>>>   </dependency>
>>>
>>>   <dependency>
>>>     <groupId>org.apache.clerezza</**groupId>
>>>     <artifactId>rdf.jena.**serializer</artifactId>
>>>     <version>${clerezza-rdf.jena.**serializer.version}</version>
>>>   </dependency>
>>>
>>> However, when I run the example I get this error:
>>>
>>> Exception in thread "main"
>>>
>>> org.apache.clerezza.rdf.core.**serializedform.**
>>> UnsupportedParsingFormatExcept**ion:
>>> No parser available for text/turtle
>>>       at
>>> org.apache.clerezza.rdf.core.**serializedform.Parser.parse(**
>>> Parser.java:189)
>>>       at
>>> org.apache.clerezza.rdf.core.**serializedform.Parser.parse(**
>>> Parser.java:162)
>>>       at
>>> org.apache.clerezza.rdf.core.**serializedform.Parser.parse(**
>>> Parser.java:128)
>>>       at
>>> org.apache.jena.examples.**ExampleClerezza_01.main(**
>>> ExampleClerezza_01.java:16)
>>>
>>> I am probably doing something wrong or missing something here, but I
>>> do not see what.
>>>
>>> Any suggestion?
>>>
>>> Thanks,
>>> Paolo
>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message