You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Hasan <ha...@apache.org> on 2021/05/25 12:33:14 UTC

Tutorial 2

Hi Yusuf

I'd be glad if you could try to fix tutorial 2 as well
http://clerezza.apache.org/getting-started/tutorial/tutorial-02/

Best regards

Hasan

Re: Tutorial 2

Posted by Furkan KAMACI <fu...@gmail.com>.
Hi Yusuf,

https://meet.google.com/fsx-zkkd-zjg

Kind Regards,
Furkan KAMACI

On Tue, Jun 1, 2021 at 9:19 AM Furkan KAMACI <fu...@gmail.com> wrote:

> Hi Yusuf,
>
> Yes, we are waiting for you.
>
> Kind Regards,
> Furkan KAMACI
>
> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
>> Hello!
>> Is the meeting now or in the evening?
>> Regards!
>>
>> Yusuf Karadag
>>
>> On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > Since we have one week until the beginning of the coding period, it
>> would
>> > be nice to wrap up the things at the meeting.
>> >
>> > Hasan, could you share the meeting link?
>> >
>> > Kind Regards,
>> > Furkan KAMACI
>> >
>> > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
>> yusufkaradag1402@gmail.com
>> > >
>> > wrote:
>> >
>> > > I don't know whether you meant am or pm but I'm ok with both time.
>> > > Regards!
>> > >
>> > > Yusuf Karadag
>> > >
>> > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <yusufkaradag1402@gmail.com
>> >
>> > > wrote:
>> > >
>> > > > Hello,
>> > > > Tomorrow(Tuesday) 8 am would be ok for me.
>> > > > Regards!
>> > > >
>> > > > Yusuf Karadag
>> > > >
>> > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com>
>> wrote:
>> > > >
>> > > >> Hi Yusuf
>> > > >>
>> > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or
>> Wed
>> > > >> 8:00
>> > > >> - 8:45 CEST
>> > > >> Which do you prefer?
>> > > >>
>> > > >> Hasan
>> > > >>
>> > > >>
>> > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
>> > > >> yusufkaradag1402@gmail.com>
>> > > >> wrote:
>> > > >>
>> > > >> > Great, thank you so much.
>> > > >> > Regards!
>> > > >> >
>> > > >> > Yusuf Karadag
>> > > >> >
>> > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com>
>> > > wrote:
>> > > >> >
>> > > >> > > Hi Yusuf
>> > > >> > >
>> > > >> > > Yes, Reto has just released a new version of jena.parser. I
>> hope
>> > we
>> > > >> can
>> > > >> > use
>> > > >> > > that soon.
>> > > >> > > I think we can schedule a meeting next week. I'll try to find
>> some
>> > > >> slots
>> > > >> > > next week.
>> > > >> > >
>> > > >> > > Hasan
>> > > >> > >
>> > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
>> > > >> > yusufkaradag1402@gmail.com>
>> > > >> > > wrote:
>> > > >> > >
>> > > >> > > > Dear Mr. Hasan,
>> > > >> > > > Thank you for explaining to me. I am looking at to
>> > > >> > > > https://github.com/clerezza/jena.parser  and I see one class
>> > > >> > > > JenaParserProvider
>> > > >> > > > <
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
>> > > >> > > > >
>> > > >> > > > which I can see implements the *ParsingProvider* in
>> > > *representation
>> > > >> > > > *module.
>> > > >> > > > So the first thing would be to release new versions? I just
>> > > >> > > > didn't understand whether something was wrong or not with the
>> > > >> modules
>> > > >> > in
>> > > >> > > > github.com/clerezza? From the second problemö we then should
>> > make
>> > > >> sure
>> > > >> > > > that
>> > > >> > > > the representation module and rdf.jena.parser library use the
>> > same
>> > > >> > > versıon
>> > > >> > > > of slf4j? Also can we arrange a short meeting this week or
>> next
>> > > week
>> > > >> > with
>> > > >> > > > the mentors to get to know each other and maybe to tell more
>> > about
>> > > >> the
>> > > >> > > code
>> > > >> > > > and structure if that's not too much trouble? Just getting a
>> > > little
>> > > >> bit
>> > > >> > > > confused about the old and new version/modules.
>> > > >> > > > Regards!
>> > > >> > > >
>> > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
>> > > xushan.chen@gmail.com
>> > > >> >
>> > > >> > > > wrote:
>> > > >> > > >
>> > > >> > > > > Hi Yusuf
>> > > >> > > > >
>> > > >> > > > > There are two problems in tutorial 2:
>> > > >> > > > > 1. It uses a library outside of the Apache Clerezza project
>> > > called
>> > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated
>> > > >> version
>> > > >> > of
>> > > >> > > > > Apache Clerezza. The package
>> > org.apache.clerezza:rdf.jena.parser
>> > > >> is
>> > > >> > > > > maintained outside of
>> > > >> > > > > Apache Clerezza in github.com/clerezza by reto and me. We
>> can
>> > > >> update
>> > > >> > > the
>> > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the
>> current
>> > > >> > release
>> > > >> > > > > version of Apache Clerezza. You could help here as well.
>> You
>> > > could
>> > > >> > > study
>> > > >> > > > > the code and try to understand the relation of that package
>> > with
>> > > >> the
>> > > >> > > > > representation module.
>> > > >> > > > > The representation module is not implementing any parser,
>> It
>> > > >> > delegates
>> > > >> > > > the
>> > > >> > > > > parsing functionality to any registered ParsingProvider.
>> The
>> > > >> package
>> > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
>> > > >> > functionality.
>> > > >> > > > > Thus, we principally should use the representation module
>> as
>> > > well
>> > > >> as
>> > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
>> > > >> > > > > Let me know if you have any questions and whether you would
>> > like
>> > > >> to
>> > > >> > fix
>> > > >> > > > any
>> > > >> > > > > package in github.com/clerezza.
>> > > >> > > > >
>> > > >> > > > > 2. The multiple bindings problem of slf4j is due to
>> different
>> > > libs
>> > > >> > used
>> > > >> > > > by
>> > > >> > > > > the representation module and rdf.jena.parser library.
>> > > >> > > > >
>> > > >> > > > > Cheers
>> > > >> > > > > Hasan
>> > > >> > > > >
>> > > >> > > > >
>> > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
>> > > >> xushan.chen@gmail.com>
>> > > >> > > > > wrote:
>> > > >> > > > >
>> > > >> > > > > > Hi Yusuf
>> > > >> > > > > >
>> > > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
>> > > >> > > > > >
>> > > >> > > > > > Regarding the website, you don't yet have access to the
>> > > >> repository.
>> > > >> > > So,
>> > > >> > > > > > I'll update it.
>> > > >> > > > > >
>> > > >> > > > > > Regards
>> > > >> > > > > > Hasan
>> > > >> > > > > >
>> > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
>> > > >> > > > > yusufkaradag1402@gmail.com>
>> > > >> > > > > > wrote:
>> > > >> > > > > >
>> > > >> > > > > >> Hello!
>> > > >> > > > > >> So i've tried to run tutorial with *representation
>> *module.
>> > > >> But it
>> > > >> > > > kept
>> > > >> > > > > >> giving *null. *I've kept track of it and it's giving in
>> > this
>> > > >> line
>> > > >> > of
>> > > >> > > > > >> *Parser.class:
>> > > >> > > > > >> *
>> > > >> > > > > >>
>> > > >> > > > > >> ParsingProvider provider =
>> > > >> > > > > >>
>> > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>> > > >> > > > > >>
>> > > >> > > > > >> It can't get the provider and throws
>> > > >> > > > > >> *UnsupportedParsingFormatException.*
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > > >> *and the output was:
>> > > >> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
>> > > >> > constructing
>> > > >> > > > > >> Parser
>> > > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
>> > > >> text/turtle
>> > > >> > is
>> > > >> > > > > >> not supported by the used parser
>> > > >> > > > > >>
>> > > >> > > > > >> *
>> > > >> > > > > >>
>> > > >> > > > > >> Then I tried with the dependencies as written in
>> Tutorial
>> > 2.
>> > > I
>> > > >> > moved
>> > > >> > > > > >> *example02.ttl *file under *resources *directory of
>> module
>> > > and
>> > > >> > made
>> > > >> > > a
>> > > >> > > > > >> change in the code as:
>> > > >> > > > > >> package org.apache.clerezza.tutorial;
>> > > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
>> > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
>> > > >> > > > > >>
>> org.apache.clerezza.rdf.core.serializedform.Parser;import
>> > > >> > > > > >>
>> > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
>> > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
>> > > >> > > > > >> import java.io.InputStream;import java.util.Iterator;
>> > > >> > > > > >> public class Example02 {
>> > > >> > > > > >>
>> > > >> > > > > >>     private static final Logger logger =
>> > > >> LoggerFactory.getLogger(
>> > > >> > > > > >> Example02.class );
>> > > >> > > > > >>
>> > > >> > > > > >>     public static void main( String[] args ) {
>> > > >> > > > > >>
>> > > >> > > > > >>         InputStream inputStream =
>> > > >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
>> > > >> > > "example02.ttl"
>> > > >> > > > > >> );
>> > > >> > > > > >>         Parser parser = Parser.getInstance();
>> > > >> > > > > >>
>> > > >> > > > > >>         try {
>> > > >> > > > > >>             Graph graph = parser.parse( inputStream,
>> > > >> > > > > >> SupportedFormat.TURTLE );
>> > > >> > > > > >>
>> > > >> > > > > >>             Iterator<Triple> iterator = graph.filter(
>> null,
>> > > >> null,
>> > > >> > > null
>> > > >> > > > > );
>> > > >> > > > > >>             Triple triple;
>> > > >> > > > > >>
>> > > >> > > > > >>             while ( iterator.hasNext() ) {
>> > > >> > > > > >>                 triple = iterator.next();
>> > > >> > > > > >>                 logger.info( String.format( "%s %s %s",
>> > > >> > > > > >>                         triple.getSubject().toString(),
>> > > >> > > > > >>
>>  triple.getPredicate().toString(),
>> > > >> > > > > >>                         triple.getObject().toString()
>> > > >> > > > > >>                 ) );
>> > > >> > > > > >>             }
>> > > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
>> > > >> > > > > >>             logger.warn( String.format( "%s is not
>> > supported
>> > > by
>> > > >> > the
>> > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
>> > > >> > > > > >>         }
>> > > >> > > > > >>     }
>> > > >> > > > > >> }
>> > > >> > > > > >>
>> > > >> > > > > >> And i got the output as:
>> > > >> > > > > >>
>> > > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
>> > > >> > > > > >> SLF4J: Found binding in
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> > > >> > > > > >> SLF4J: Found binding in
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > >
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > >
>> >
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> > > >> > > > > >> SLF4J: See
>> > http://www.slf4j.org/codes.html#multiple_bindings
>> > > >> for
>> > > >> > an
>> > > >> > > > > >> explanation.
>> > > >> > > > > >> SLF4J: Actual binding is of type
>> > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
>> > > >> > > > > >> [main] INFO
>> > > org.apache.clerezza.rdf.core.serializedform.Parser
>> > > >> -
>> > > >> > > > > >> constructing Parser
>> > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> > > >> > > > > >>
>> > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> > > >> > > > > >> <
>> http://clerezza.apache.org/2017/01/example#hasFirstName>
>> > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
>> > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> > > >> > > > > >>
>> > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
>> > > >> > > > > >> <
>> http://clerezza.apache.org/2017/01/example#ClerezzaUser>
>> > > >> > > > > >>
>> > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
>> confused
>> > > why
>> > > >> it
>> > > >> > > > > >> didn't work with *representation* module. Should i try
>> with
>> > > >> > > > > >> *representation *or this is fine?
>> > > >> > > > > >>
>> > > >> > > > > >> Regards!
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <hasan@apache.org
>> >
>> > > >> wrote:
>> > > >> > > > > >>
>> > > >> > > > > >> > Hi Yusuf
>> > > >> > > > > >> >
>> > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as well
>> > > >> > > > > >> >
>> > > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>> > > >> > > > > >> >
>> > > >> > > > > >> > Best regards
>> > > >> > > > > >> >
>> > > >> > > > > >> > Hasan
>> > > >> > > > > >> >
>> > > >> > > > > >>
>> > > >> > > > > >>
>> > > >> > > > > >> --
>> > > >> > > > > >> Yusuf
>> > > >> > > > > >>
>> > > >> > > > > >
>> > > >> > > > >
>> > > >> > > >
>> > > >> > > >
>> > > >> > > > --
>> > > >> > > > Yusuf
>> > > >> > > >
>> > > >> > >
>> > > >> >
>> > > >>
>> > > >
>> > >
>> >
>>
>

Re: Tutorial 2

Posted by Reto Gmür <re...@factsmission.com>.
D'oh!

I have no preference regarding the package name. The goal was to move 
stuff which needs frequent updates and little design decisions (as they 
just implement APIs) out of Apache. I took org.wymiwyg because for this 
name I already had the sonatype-maven publishing route in place, but I'm 
fine with any group-id.

Cheers,

Reto

On 06.06.21 10:54, Hasan wrote:
> Dear all, Hi @Reto Gmür <ma...@apache.org>
>
> There is a bug in rdf.jena.parser version 2.0.1
> The file 
> src/main/resources/META-INF/services/org.apache.clerezza.rdf.core.serializedform.ParsingProvider
> should be renamed to 
> src/main/resources/META-INF/services/org.apache.clerezza.representation.ParsingProvider
> The like should be done for rdf.jena.serializer version 2.0.1
>
> @Reto Gmür <ma...@apache.org>, shall we rename the package as 
> well? org.apache.clerezza.rdf.jena.parser to 
> org.wymiwyg.clerezaa.rdf.jena.parser?
>
> Cheers
> Hasan
>
>
> On Fri, Jun 4, 2021 at 11:50 AM Reto Gmür <me@farewellutopia.com 
> <ma...@farewellutopia.com>> wrote:
>
>     On 03.06.2021 18:47, Hasan wrote:
>     > Hi Yusuf
>     >
>     > I'll ask Reto why the fix for jena.parser is not available in
>     the maven
>     > central repo yet.
>
>     It's there now:
>     https://repo1.maven.org/maven2/org/wymiwyg/clerezza/rdf.jena.parser/2.0.1/
>     <https://repo1.maven.org/maven2/org/wymiwyg/clerezza/rdf.jena.parser/2.0.1/>
>
>
>     Reto
>
>
>     >
>     > Hasan
>     >
>     >
>     > On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ
>     <yusufkaradag1402@gmail.com <ma...@gmail.com>>
>     > wrote:
>     >
>     >>   Hi again
>     >> I just forgot to ask something. What should I do in order to
>     fix tutorial
>     >> 2? Can it be fixed without waiting for the new release of
>     *jena.parser? *I
>     >> created a new module called *tutorial *and it's on my branch
>     atm. But the
>     >> tutorial 2 and 3 are still giving
>     >> *[org.apache.clerezza.tutorial.Example02.main()]
>     >> INFO org.apache.clerezza.representation.Parser - constructing
>     Parser*
>     >> *[org.apache.clerezza.tutorial.Example02.main()] WARN
>     >> org.apache.clerezza.tutorial.Example02 - text/turtle is not
>     supported by
>     >> the used parser*
>     >>
>     >> Do you want me to create a PR to check and continue
>     conversation from there
>     >> or should I wait until tutorial 2 is fixed?
>     >> Best regards!
>     >>
>     >> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ
>     <yusufkaradag1402@gmail.com <ma...@gmail.com>>
>     >> wrote:
>     >>
>     >>> Hello Mr. Hasan
>     >>> Thank you for the schema.
>     >>> Regards!
>     >>>
>     >>> Yusuf Karadag
>     >>>
>     >>> On Tue, Jun 1, 2021, 08:54 Hasan <hasan@apache.org
>     <ma...@apache.org>> wrote:
>     >>>
>     >>>> Hi Yusuf
>     >>>>
>     >>>> As mentioned, this is our artifact dependency diagram
>     >>>> parent
>     >>>>    +----> api
>     >>>>             +--> api-implementation
>     >>>>             |      +-----------------> representation
>     >>>>             |      |  +--------------------> api.utils
>     >>>>             |      |
>     >>>> +-------->
>     >>>> jaxrs.rdf.providers
>     >>>>             |      +-----------------> sparql
>     >>>>             |      |  +---------> dataset
>     >>>>             |      +-----------------> test.utils
>     >>>>             | +---------> dataset
>     >>>>             |           +------> api.utils
>     >>>>             +--> ontologies
>     >>>> +------------------------------------------> api.utils
>     >>>>
>     >>>> We also have these packages outside of Apache Clerezza,
>     relevant for
>     >> your
>     >>>> task:
>     >>>> jena.commons
>     >>>> jena.facade
>     >>>> jena.parser
>     >>>> jena.serializer
>     >>>>
>     >>>> in github.com/clerezza <http://github.com/clerezza>
>     >>>>
>     >>>> Hasan
>     >>>>
>     >>>> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI
>     <furkankamaci@gmail.com <ma...@gmail.com>>
>     >>>> wrote:
>     >>>>
>     >>>>> Hi Yusuf,
>     >>>>>
>     >>>>> Yes, we are waiting for you.
>     >>>>>
>     >>>>> Kind Regards,
>     >>>>> Furkan KAMACI
>     >>>>>
>     >>>>> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
>     >>>> yusufkaradag1402@gmail.com <ma...@gmail.com>>
>     >>>>> wrote:
>     >>>>>
>     >>>>>> Hello!
>     >>>>>> Is the meeting now or in the evening?
>     >>>>>> Regards!
>     >>>>>>
>     >>>>>> Yusuf Karadag
>     >>>>>>
>     >>>>>> On Mon, May 31, 2021, 11:01 Furkan KAMACI
>     <furkankamaci@gmail.com <ma...@gmail.com>>
>     >>>>> wrote:
>     >>>>>>> Hi,
>     >>>>>>>
>     >>>>>>> Since we have one week until the beginning of the coding
>     period,
>     >> it
>     >>>>> would
>     >>>>>>> be nice to wrap up the things at the meeting.
>     >>>>>>>
>     >>>>>>> Hasan, could you share the meeting link?
>     >>>>>>>
>     >>>>>>> Kind Regards,
>     >>>>>>> Furkan KAMACI
>     >>>>>>>
>     >>>>>>> On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
>     >>>>>> yusufkaradag1402@gmail.com <ma...@gmail.com>
>     >>>>>>> wrote:
>     >>>>>>>
>     >>>>>>>> I don't know whether you meant am or pm but I'm ok with both
>     >> time.
>     >>>>>>>> Regards!
>     >>>>>>>>
>     >>>>>>>> Yusuf Karadag
>     >>>>>>>>
>     >>>>>>>> On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
>     >>>>> yusufkaradag1402@gmail.com <ma...@gmail.com>>
>     >>>>>>>> wrote:
>     >>>>>>>>
>     >>>>>>>>> Hello,
>     >>>>>>>>> Tomorrow(Tuesday) 8 am would be ok for me.
>     >>>>>>>>> Regards!
>     >>>>>>>>>
>     >>>>>>>>> Yusuf Karadag
>     >>>>>>>>>
>     >>>>>>>>> On Mon, May 31, 2021, 07:09 Hasan Hasan <
>     >> xushan.chen@gmail.com <ma...@gmail.com>>
>     >>>>>> wrote:
>     >>>>>>>>>> Hi Yusuf
>     >>>>>>>>>>
>     >>>>>>>>>> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45
>     >>>> CEST or
>     >>>>>> Wed
>     >>>>>>>>>> 8:00
>     >>>>>>>>>> - 8:45 CEST
>     >>>>>>>>>> Which do you prefer?
>     >>>>>>>>>>
>     >>>>>>>>>> Hasan
>     >>>>>>>>>>
>     >>>>>>>>>>
>     >>>>>>>>>> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
>     >>>>>>>>>> yusufkaradag1402@gmail.com
>     <ma...@gmail.com>>
>     >>>>>>>>>> wrote:
>     >>>>>>>>>>
>     >>>>>>>>>>> Great, thank you so much.
>     >>>>>>>>>>> Regards!
>     >>>>>>>>>>>
>     >>>>>>>>>>> Yusuf Karadag
>     >>>>>>>>>>>
>     >>>>>>>>>>> On Sat, May 29, 2021, 22:19 Hasan Hasan <
>     >>>> xushan.chen@gmail.com <ma...@gmail.com>>
>     >>>>>>>> wrote:
>     >>>>>>>>>>>> Hi Yusuf
>     >>>>>>>>>>>>
>     >>>>>>>>>>>> Yes, Reto has just released a new version of
>     >> jena.parser. I
>     >>>>> hope
>     >>>>>>> we
>     >>>>>>>>>> can
>     >>>>>>>>>>> use
>     >>>>>>>>>>>> that soon.
>     >>>>>>>>>>>> I think we can schedule a meeting next week. I'll try to
>     >>>> find
>     >>>>>> some
>     >>>>>>>>>> slots
>     >>>>>>>>>>>> next week.
>     >>>>>>>>>>>>
>     >>>>>>>>>>>> Hasan
>     >>>>>>>>>>>>
>     >>>>>>>>>>>> On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
>     >>>>>>>>>>> yusufkaradag1402@gmail.com
>     <ma...@gmail.com>>
>     >>>>>>>>>>>> wrote:
>     >>>>>>>>>>>>
>     >>>>>>>>>>>>> Dear Mr. Hasan,
>     >>>>>>>>>>>>> Thank you for explaining to me. I am looking at to
>     >>>>>>>>>>>>> https://github.com/clerezza/jena.parser
>     <https://github.com/clerezza/jena.parser> and I see one
>     >>>>> class
>     >>>>>>>>>>>>> JenaParserProvider
>     >>>>>>>>>>>>> <
>     >>>>>>>>>>>>>
>     >>
>     https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
>     <https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java>
>     >>>>>>>>>>>>> which I can see implements the *ParsingProvider* in
>     >>>>>>>> *representation
>     >>>>>>>>>>>>> *module.
>     >>>>>>>>>>>>> So the first thing would be to release new versions? I
>     >>>> just
>     >>>>>>>>>>>>> didn't understand whether something was wrong or not
>     >> with
>     >>>>> the
>     >>>>>>>>>> modules
>     >>>>>>>>>>> in
>     >>>>>>>>>>>>> github.com/clerezza <http://github.com/clerezza>?
>     From the second problemö we then
>     >>>>> should
>     >>>>>>> make
>     >>>>>>>>>> sure
>     >>>>>>>>>>>>> that
>     >>>>>>>>>>>>> the representation module and rdf.jena.parser library
>     >> use
>     >>>>> the
>     >>>>>>> same
>     >>>>>>>>>>>> versıon
>     >>>>>>>>>>>>> of slf4j? Also can we arrange a short meeting this week
>     >>>> or
>     >>>>>> next
>     >>>>>>>> week
>     >>>>>>>>>>> with
>     >>>>>>>>>>>>> the mentors to get to know each other and maybe to tell
>     >>>> more
>     >>>>>>> about
>     >>>>>>>>>> the
>     >>>>>>>>>>>> code
>     >>>>>>>>>>>>> and structure if that's not too much trouble? Just
>     >>>> getting a
>     >>>>>>>> little
>     >>>>>>>>>> bit
>     >>>>>>>>>>>>> confused about the old and new version/modules.
>     >>>>>>>>>>>>> Regards!
>     >>>>>>>>>>>>>
>     >>>>>>>>>>>>> On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
>     >>>>>>>> xushan.chen@gmail.com <ma...@gmail.com>
>     >>>>>>>>>>>>> wrote:
>     >>>>>>>>>>>>>
>     >>>>>>>>>>>>>> Hi Yusuf
>     >>>>>>>>>>>>>>
>     >>>>>>>>>>>>>> There are two problems in tutorial 2:
>     >>>>>>>>>>>>>> 1. It uses a library outside of the Apache Clerezza
>     >>>>> project
>     >>>>>>>> called
>     >>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser which uses an
>     >>>>> out-dated
>     >>>>>>>>>> version
>     >>>>>>>>>>> of
>     >>>>>>>>>>>>>> Apache Clerezza. The package
>     >>>>>>> org.apache.clerezza:rdf.jena.parser
>     >>>>>>>>>> is
>     >>>>>>>>>>>>>> maintained outside of
>     >>>>>>>>>>>>>> Apache Clerezza in github.com/clerezza
>     <http://github.com/clerezza> by reto and
>     >>>> me. We
>     >>>>>> can
>     >>>>>>>>>> update
>     >>>>>>>>>>>> the
>     >>>>>>>>>>>>>> package org.apache.clerezza:rdf.jena.parser to use
>     >> the
>     >>>>>> current
>     >>>>>>>>>>> release
>     >>>>>>>>>>>>>> version of Apache Clerezza. You could help here as
>     >>>> well.
>     >>>>> You
>     >>>>>>>> could
>     >>>>>>>>>>>> study
>     >>>>>>>>>>>>>> the code and try to understand the relation of that
>     >>>>> package
>     >>>>>>> with
>     >>>>>>>>>> the
>     >>>>>>>>>>>>>> representation module.
>     >>>>>>>>>>>>>> The representation module is not implementing any
>     >>>> parser,
>     >>>>> It
>     >>>>>>>>>>> delegates
>     >>>>>>>>>>>>> the
>     >>>>>>>>>>>>>> parsing functionality to any registered
>     >>>> ParsingProvider.
>     >>>>> The
>     >>>>>>>>>> package
>     >>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser is implementing
>     >>>> that
>     >>>>>>>>>>> functionality.
>     >>>>>>>>>>>>>> Thus, we principally should use the representation
>     >>>> module
>     >>>>> as
>     >>>>>>>> well
>     >>>>>>>>>> as
>     >>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser in tutorial 2.
>     >>>>>>>>>>>>>> Let me know if you have any questions and whether you
>     >>>>> would
>     >>>>>>> like
>     >>>>>>>>>> to
>     >>>>>>>>>>> fix
>     >>>>>>>>>>>>> any
>     >>>>>>>>>>>>>> package in github.com/clerezza
>     <http://github.com/clerezza>.
>     >>>>>>>>>>>>>>
>     >>>>>>>>>>>>>> 2. The multiple bindings problem of slf4j is due to
>     >>>>>> different
>     >>>>>>>> libs
>     >>>>>>>>>>> used
>     >>>>>>>>>>>>> by
>     >>>>>>>>>>>>>> the representation module and rdf.jena.parser
>     >> library.
>     >>>>>>>>>>>>>> Cheers
>     >>>>>>>>>>>>>> Hasan
>     >>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>
>     >>>>>>>>>>>>>> On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
>     >>>>>>>>>> xushan.chen@gmail.com <ma...@gmail.com>>
>     >>>>>>>>>>>>>> wrote:
>     >>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>> Hi Yusuf
>     >>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>> Thx for the work. I'll have a look today or
>     >> tomorrow.
>     >>>>>>>>>>>>>>> Regarding the website, you don't yet have access to
>     >>>> the
>     >>>>>>>>>> repository.
>     >>>>>>>>>>>> So,
>     >>>>>>>>>>>>>>> I'll update it.
>     >>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>> Regards
>     >>>>>>>>>>>>>>> Hasan
>     >>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>> On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
>     >>>>>>>>>>>>>> yusufkaradag1402@gmail.com
>     <ma...@gmail.com>>
>     >>>>>>>>>>>>>>> wrote:
>     >>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> Hello!
>     >>>>>>>>>>>>>>>> So i've tried to run tutorial with *representation
>     >>>>>> *module.
>     >>>>>>>>>> But it
>     >>>>>>>>>>>>> kept
>     >>>>>>>>>>>>>>>> giving *null. *I've kept track of it and it's
>     >>>> giving in
>     >>>>>>> this
>     >>>>>>>>>> line
>     >>>>>>>>>>> of
>     >>>>>>>>>>>>>>>> *Parser.class:
>     >>>>>>>>>>>>>>>> *
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> ParsingProvider provider =
>     >>>>>>>>>>>>>>>>
>     >>>> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>     >>>>>>>>>>>>>>>> It can't get the provider and throws
>     >>>>>>>>>>>>>>>> *UnsupportedParsingFormatException.*
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> *and the output was:
>     >>>>>>>>>>>>>>>> [main] INFO
>     >>>> org.apache.clerezza.representation.Parser -
>     >>>>>>>>>>> constructing
>     >>>>>>>>>>>>>>>> Parser
>     >>>>>>>>>>>>>>>> [main] WARN
>     >> org.apache.clerezza.tutorial.Example02 -
>     >>>>>>>>>> text/turtle
>     >>>>>>>>>>> is
>     >>>>>>>>>>>>>>>> not supported by the used parser
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> *
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> Then I tried with the dependencies as written in
>     >>>>> Tutorial
>     >>>>>>> 2.
>     >>>>>>>> I
>     >>>>>>>>>>> moved
>     >>>>>>>>>>>>>>>> *example02.ttl *file under *resources *directory
>     >> of
>     >>>>>> module
>     >>>>>>>> and
>     >>>>>>>>>>> made
>     >>>>>>>>>>>> a
>     >>>>>>>>>>>>>>>> change in the code as:
>     >>>>>>>>>>>>>>>> package org.apache.clerezza.tutorial;
>     >>>>>>>>>>>>>>>> import
>     >> org.apache.clerezza.commons.rdf.Graph;import
>     >>>>>>>>>>>>>>>> org.apache.clerezza.commons.rdf.Triple;import
>     >>>>>>>>>>>>>>>>
>     >>>>> org.apache.clerezza.rdf.core.serializedform.Parser;import
>     >>>>
>     org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>     >>>>>>>>>>>>>>>>
>     >>
>     org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
>     >>>>>>>>>>>>>>>> org.slf4j.Logger;import org.slf4j.LoggerFactory;
>     >>>>>>>>>>>>>>>> import java.io.InputStream;import
>     >>>> java.util.Iterator;
>     >>>>>>>>>>>>>>>> public class Example02 {
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> private static final Logger logger =
>     >>>>>>>>>> LoggerFactory.getLogger(
>     >>>>>>>>>>>>>>>> Example02.class );
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> public static void main( String[] args ) {
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>   InputStream inputStream =
>     >>>>>>>>>>>>>>>>
>     >>>> Example02.class.getClassLoader().getResourceAsStream(
>     >>>>>>>>>>>> "example02.ttl"
>     >>>>>>>>>>>>>>>> );
>     >>>>>>>>>>>>>>>>   Parser parser = Parser.getInstance();
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>   try {
>     >>>>>>>>>>>>>>>>       Graph graph = parser.parse(
>     >> inputStream,
>     >>>>>>>>>>>>>>>> SupportedFormat.TURTLE );
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>       Iterator<Triple> iterator =
>     >>>> graph.filter(
>     >>>>>> null,
>     >>>>>>>>>> null,
>     >>>>>>>>>>>> null
>     >>>>>>>>>>>>>> );
>     >>>>>>>>>>>>>>>>       Triple triple;
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>       while ( iterator.hasNext() ) {
>     >>>>>>>>>>>>>>>>           triple = iterator.next();
>     >>>>>>>>>>>>>>>> logger.info <http://logger.info>( String.format( "%s
>     >> %s
>     >>>>> %s",
>     >>>>   triple.getSubject().toString(),
>     >>>>>   triple.getPredicate().toString(),
>     >>>>   triple.getObject().toString()
>     >>>>>>>>>>>>>>>>           ) );
>     >>>>>>>>>>>>>>>>       }
>     >>>>>>>>>>>>>>>>   } catch ( UnsupportedFormatException ex )
>     >> {
>     >>>>>>>>>>>>>>>>       logger.warn( String.format( "%s is not
>     >>>>>>> supported
>     >>>>>>>> by
>     >>>>>>>>>>> the
>     >>>>>>>>>>>>>>>> used parser", SupportedFormat.TURTLE ) );
>     >>>>>>>>>>>>>>>>   }
>     >>>>>>>>>>>>>>>>      }
>     >>>>>>>>>>>>>>>> }
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> And i got the output as:
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> SLF4J: Class path contains multiple SLF4J
>     >> bindings.
>     >>>>>>>>>>>>>>>> SLF4J: Found binding in
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>
>     >>
>     [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>     >>>>>>>>>>>>>>>> SLF4J: Found binding in
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>
>     >>
>     [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>     >>>>>>>>>>>>>>>> SLF4J: See
>     >>>>>>> http://www.slf4j.org/codes.html#multiple_bindings
>     <http://www.slf4j.org/codes.html#multiple_bindings>
>     >>>>>>>>>> for
>     >>>>>>>>>>> an
>     >>>>>>>>>>>>>>>> explanation.
>     >>>>>>>>>>>>>>>> SLF4J: Actual binding is of type
>     >>>>>>>>>>>> [org.slf4j.impl.SimpleLoggerFactory]
>     >>>>>>>>>>>>>>>> [main] INFO
>     >>>>>>>> org.apache.clerezza.rdf.core.serializedform.Parser
>     >>>>>>>>>> -
>     >>>>>>>>>>>>>>>> constructing Parser
>     >>>>>>>>>>>>>>>> [main] INFO
>     >> org.apache.clerezza.tutorial.Example02 -
>     >>>>>>>>
>     org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>     >>>>>>>>>>>>>>>> <
>     >>>>> http://clerezza.apache.org/2017/01/example#hasFirstName
>     <http://clerezza.apache.org/2017/01/example#hasFirstName>
>     >>>>>>>>>>>>>>>> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string
>     <http://www.w3.org/2001/XMLSchema#string>
>     >>>>>>>>>>>>>>>> [main] INFO
>     >> org.apache.clerezza.tutorial.Example02 -
>     >>>>>>>>
>     org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>     >>>>>>>>>>>>>>>> <http://clerezza.apache.org/2017/01/example#isA
>     <http://clerezza.apache.org/2017/01/example#isA>>
>     >>>>>>>>>>>>>>>> <
>     >>>>> http://clerezza.apache.org/2017/01/example#ClerezzaUser
>     <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
>     >>>>>>>>>>>>>>>> I hope i managed to tell what i meant. Just a bit
>     >>>>>> confused
>     >>>>>>>> why
>     >>>>>>>>>> it
>     >>>>>>>>>>>>>>>> didn't work with *representation* module. Should i
>     >>>> try
>     >>>>>> with
>     >>>>>>>>>>>>>>>> *representation *or this is fine?
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> Regards!
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> On Tue, May 25, 2021 at 2:33 PM Hasan <
>     >>>>> hasan@apache.org <ma...@apache.org>>
>     >>>>>>>>>> wrote:
>     >>>>>>>>>>>>>>>>> Hi Yusuf
>     >>>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>> I'd be glad if you could try to fix tutorial 2
>     >> as
>     >>>>> well
>     >>>>>
>     http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>     <http://clerezza.apache.org/getting-started/tutorial/tutorial-02/>
>     >>>>>>>>>>>>>>>>> Best regards
>     >>>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>> Hasan
>     >>>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>>>> --
>     >>>>>>>>>>>>>>>> Yusuf
>     >>>>>>>>>>>>>>>>
>     >>>>>>>>>>>>>
>     >>>>>>>>>>>>> --
>     >>>>>>>>>>>>> Yusuf
>     >>>>>>>>>>>>>
>     >> --
>     >> Yusuf
>     >>
>

Re: Tutorial 2

Posted by Hasan <ha...@apache.org>.
Dear all, Hi @Reto Gmür <re...@apache.org>

There is a bug in rdf.jena.parser version 2.0.1
The file
src/main/resources/META-INF/services/org.apache.clerezza.rdf.core.serializedform.ParsingProvider
should be renamed to
src/main/resources/META-INF/services/org.apache.clerezza.representation.ParsingProvider
The like should be done for rdf.jena.serializer version 2.0.1

@Reto Gmür <re...@apache.org>, shall we rename the package as well?
org.apache.clerezza.rdf.jena.parser to org.wymiwyg.clerezaa.rdf.jena.parser?

Cheers
Hasan


On Fri, Jun 4, 2021 at 11:50 AM Reto Gmür <me...@farewellutopia.com> wrote:

> On 03.06.2021 18:47, Hasan wrote:
> > Hi Yusuf
> >
> > I'll ask Reto why the fix for jena.parser is not available in the maven
> > central repo yet.
>
> It's there now:
> https://repo1.maven.org/maven2/org/wymiwyg/clerezza/rdf.jena.parser/2.0.1/
>
>
> Reto
>
>
> >
> > Hasan
> >
> >
> > On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> > wrote:
> >
> >>   Hi again
> >> I just forgot to ask something. What should I do in order to fix
> tutorial
> >> 2? Can it be fixed without waiting for the new release of *jena.parser?
> *I
> >> created a new module called *tutorial *and it's on my branch atm. But
> the
> >> tutorial 2 and 3 are still giving
> >> *[org.apache.clerezza.tutorial.Example02.main()]
> >> INFO org.apache.clerezza.representation.Parser - constructing Parser*
> >> *[org.apache.clerezza.tutorial.Example02.main()] WARN
> >> org.apache.clerezza.tutorial.Example02 - text/turtle is not supported by
> >> the used parser*
> >>
> >> Do you want me to create a PR to check and continue conversation from
> there
> >> or should I wait until tutorial 2 is fixed?
> >> Best regards!
> >>
> >> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> >> wrote:
> >>
> >>> Hello Mr. Hasan
> >>> Thank you for the schema.
> >>> Regards!
> >>>
> >>> Yusuf Karadag
> >>>
> >>> On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
> >>>
> >>>> Hi Yusuf
> >>>>
> >>>> As mentioned, this is our artifact dependency diagram
> >>>> parent
> >>>>    +----> api
> >>>>             +--> api-implementation
> >>>>             |      +-----------------> representation
> >>>>             |      |                     +-------------------->
> api.utils
> >>>>             |      |
> >>>> +-------->
> >>>> jaxrs.rdf.providers
> >>>>             |      +-----------------> sparql
> >>>>             |      |                     +---------> dataset
> >>>>             |      +-----------------> test.utils
> >>>>             |                            +---------> dataset
> >>>>             |                                          +------>
> api.utils
> >>>>             +--> ontologies
> >>>>                    +------------------------------------------>
> api.utils
> >>>>
> >>>> We also have these packages outside of Apache Clerezza, relevant for
> >> your
> >>>> task:
> >>>> jena.commons
> >>>> jena.facade
> >>>> jena.parser
> >>>> jena.serializer
> >>>>
> >>>> in github.com/clerezza
> >>>>
> >>>> Hasan
> >>>>
> >>>> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Hi Yusuf,
> >>>>>
> >>>>> Yes, we are waiting for you.
> >>>>>
> >>>>> Kind Regards,
> >>>>> Furkan KAMACI
> >>>>>
> >>>>> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> >>>> yusufkaradag1402@gmail.com>
> >>>>> wrote:
> >>>>>
> >>>>>> Hello!
> >>>>>> Is the meeting now or in the evening?
> >>>>>> Regards!
> >>>>>>
> >>>>>> Yusuf Karadag
> >>>>>>
> >>>>>> On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
> >>>>> wrote:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> Since we have one week until the beginning of the coding period,
> >> it
> >>>>> would
> >>>>>>> be nice to wrap up the things at the meeting.
> >>>>>>>
> >>>>>>> Hasan, could you share the meeting link?
> >>>>>>>
> >>>>>>> Kind Regards,
> >>>>>>> Furkan KAMACI
> >>>>>>>
> >>>>>>> On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> >>>>>> yusufkaradag1402@gmail.com
> >>>>>>> wrote:
> >>>>>>>
> >>>>>>>> I don't know whether you meant am or pm but I'm ok with both
> >> time.
> >>>>>>>> Regards!
> >>>>>>>>
> >>>>>>>> Yusuf Karadag
> >>>>>>>>
> >>>>>>>> On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> >>>>> yusufkaradag1402@gmail.com>
> >>>>>>>> wrote:
> >>>>>>>>
> >>>>>>>>> Hello,
> >>>>>>>>> Tomorrow(Tuesday) 8 am would be ok for me.
> >>>>>>>>> Regards!
> >>>>>>>>>
> >>>>>>>>> Yusuf Karadag
> >>>>>>>>>
> >>>>>>>>> On Mon, May 31, 2021, 07:09 Hasan Hasan <
> >> xushan.chen@gmail.com>
> >>>>>> wrote:
> >>>>>>>>>> Hi Yusuf
> >>>>>>>>>>
> >>>>>>>>>> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45
> >>>> CEST or
> >>>>>> Wed
> >>>>>>>>>> 8:00
> >>>>>>>>>> - 8:45 CEST
> >>>>>>>>>> Which do you prefer?
> >>>>>>>>>>
> >>>>>>>>>> Hasan
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> >>>>>>>>>> yusufkaradag1402@gmail.com>
> >>>>>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>>> Great, thank you so much.
> >>>>>>>>>>> Regards!
> >>>>>>>>>>>
> >>>>>>>>>>> Yusuf Karadag
> >>>>>>>>>>>
> >>>>>>>>>>> On Sat, May 29, 2021, 22:19 Hasan Hasan <
> >>>> xushan.chen@gmail.com>
> >>>>>>>> wrote:
> >>>>>>>>>>>> Hi Yusuf
> >>>>>>>>>>>>
> >>>>>>>>>>>> Yes, Reto has just released a new version of
> >> jena.parser. I
> >>>>> hope
> >>>>>>> we
> >>>>>>>>>> can
> >>>>>>>>>>> use
> >>>>>>>>>>>> that soon.
> >>>>>>>>>>>> I think we can schedule a meeting next week. I'll try to
> >>>> find
> >>>>>> some
> >>>>>>>>>> slots
> >>>>>>>>>>>> next week.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Hasan
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> >>>>>>>>>>> yusufkaradag1402@gmail.com>
> >>>>>>>>>>>> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>> Dear Mr. Hasan,
> >>>>>>>>>>>>> Thank you for explaining to me. I am looking at to
> >>>>>>>>>>>>> https://github.com/clerezza/jena.parser  and I see one
> >>>>> class
> >>>>>>>>>>>>> JenaParserProvider
> >>>>>>>>>>>>> <
> >>>>>>>>>>>>>
> >>
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> >>>>>>>>>>>>> which I can see implements the *ParsingProvider* in
> >>>>>>>> *representation
> >>>>>>>>>>>>> *module.
> >>>>>>>>>>>>> So the first thing would be to release new versions? I
> >>>> just
> >>>>>>>>>>>>> didn't understand whether something was wrong or not
> >> with
> >>>>> the
> >>>>>>>>>> modules
> >>>>>>>>>>> in
> >>>>>>>>>>>>> github.com/clerezza? From the second problemö we then
> >>>>> should
> >>>>>>> make
> >>>>>>>>>> sure
> >>>>>>>>>>>>> that
> >>>>>>>>>>>>> the representation module and rdf.jena.parser library
> >> use
> >>>>> the
> >>>>>>> same
> >>>>>>>>>>>> versıon
> >>>>>>>>>>>>> of slf4j? Also can we arrange a short meeting this week
> >>>> or
> >>>>>> next
> >>>>>>>> week
> >>>>>>>>>>> with
> >>>>>>>>>>>>> the mentors to get to know each other and maybe to tell
> >>>> more
> >>>>>>> about
> >>>>>>>>>> the
> >>>>>>>>>>>> code
> >>>>>>>>>>>>> and structure if that's not too much trouble? Just
> >>>> getting a
> >>>>>>>> little
> >>>>>>>>>> bit
> >>>>>>>>>>>>> confused about the old and new version/modules.
> >>>>>>>>>>>>> Regards!
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> >>>>>>>> xushan.chen@gmail.com
> >>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>> Hi Yusuf
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> There are two problems in tutorial 2:
> >>>>>>>>>>>>>> 1. It uses a library outside of the Apache Clerezza
> >>>>> project
> >>>>>>>> called
> >>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser which uses an
> >>>>> out-dated
> >>>>>>>>>> version
> >>>>>>>>>>> of
> >>>>>>>>>>>>>> Apache Clerezza. The package
> >>>>>>> org.apache.clerezza:rdf.jena.parser
> >>>>>>>>>> is
> >>>>>>>>>>>>>> maintained outside of
> >>>>>>>>>>>>>> Apache Clerezza in github.com/clerezza by reto and
> >>>> me. We
> >>>>>> can
> >>>>>>>>>> update
> >>>>>>>>>>>> the
> >>>>>>>>>>>>>> package org.apache.clerezza:rdf.jena.parser to use
> >> the
> >>>>>> current
> >>>>>>>>>>> release
> >>>>>>>>>>>>>> version of Apache Clerezza. You could help here as
> >>>> well.
> >>>>> You
> >>>>>>>> could
> >>>>>>>>>>>> study
> >>>>>>>>>>>>>> the code and try to understand the relation of that
> >>>>> package
> >>>>>>> with
> >>>>>>>>>> the
> >>>>>>>>>>>>>> representation module.
> >>>>>>>>>>>>>> The representation module is not implementing any
> >>>> parser,
> >>>>> It
> >>>>>>>>>>> delegates
> >>>>>>>>>>>>> the
> >>>>>>>>>>>>>> parsing functionality to any registered
> >>>> ParsingProvider.
> >>>>> The
> >>>>>>>>>> package
> >>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser is implementing
> >>>> that
> >>>>>>>>>>> functionality.
> >>>>>>>>>>>>>> Thus, we principally should use the representation
> >>>> module
> >>>>> as
> >>>>>>>> well
> >>>>>>>>>> as
> >>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser in tutorial 2.
> >>>>>>>>>>>>>> Let me know if you have any questions and whether you
> >>>>> would
> >>>>>>> like
> >>>>>>>>>> to
> >>>>>>>>>>> fix
> >>>>>>>>>>>>> any
> >>>>>>>>>>>>>> package in github.com/clerezza.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> 2. The multiple bindings problem of slf4j is due to
> >>>>>> different
> >>>>>>>> libs
> >>>>>>>>>>> used
> >>>>>>>>>>>>> by
> >>>>>>>>>>>>>> the representation module and rdf.jena.parser
> >> library.
> >>>>>>>>>>>>>> Cheers
> >>>>>>>>>>>>>> Hasan
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> >>>>>>>>>> xushan.chen@gmail.com>
> >>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Hi Yusuf
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Thx for the work. I'll have a look today or
> >> tomorrow.
> >>>>>>>>>>>>>>> Regarding the website, you don't yet have access to
> >>>> the
> >>>>>>>>>> repository.
> >>>>>>>>>>>> So,
> >>>>>>>>>>>>>>> I'll update it.
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> Regards
> >>>>>>>>>>>>>>> Hasan
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> >>>>>>>>>>>>>> yusufkaradag1402@gmail.com>
> >>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Hello!
> >>>>>>>>>>>>>>>> So i've tried to run tutorial with *representation
> >>>>>> *module.
> >>>>>>>>>> But it
> >>>>>>>>>>>>> kept
> >>>>>>>>>>>>>>>> giving *null. *I've kept track of it and it's
> >>>> giving in
> >>>>>>> this
> >>>>>>>>>> line
> >>>>>>>>>>> of
> >>>>>>>>>>>>>>>> *Parser.class:
> >>>>>>>>>>>>>>>> *
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> ParsingProvider provider =
> >>>>>>>>>>>>>>>>
> >>>> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> >>>>>>>>>>>>>>>> It can't get the provider and throws
> >>>>>>>>>>>>>>>> *UnsupportedParsingFormatException.*
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> *and the output was:
> >>>>>>>>>>>>>>>> [main] INFO
> >>>> org.apache.clerezza.representation.Parser -
> >>>>>>>>>>> constructing
> >>>>>>>>>>>>>>>> Parser
> >>>>>>>>>>>>>>>> [main] WARN
> >> org.apache.clerezza.tutorial.Example02 -
> >>>>>>>>>> text/turtle
> >>>>>>>>>>> is
> >>>>>>>>>>>>>>>> not supported by the used parser
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> *
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Then I tried with the dependencies as written in
> >>>>> Tutorial
> >>>>>>> 2.
> >>>>>>>> I
> >>>>>>>>>>> moved
> >>>>>>>>>>>>>>>> *example02.ttl *file under *resources *directory
> >> of
> >>>>>> module
> >>>>>>>> and
> >>>>>>>>>>> made
> >>>>>>>>>>>> a
> >>>>>>>>>>>>>>>> change in the code as:
> >>>>>>>>>>>>>>>> package org.apache.clerezza.tutorial;
> >>>>>>>>>>>>>>>> import
> >> org.apache.clerezza.commons.rdf.Graph;import
> >>>>>>>>>>>>>>>> org.apache.clerezza.commons.rdf.Triple;import
> >>>>>>>>>>>>>>>>
> >>>>> org.apache.clerezza.rdf.core.serializedform.Parser;import
> >>>> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> >>>>>>>>>>>>>>>>
> >>
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> >>>>>>>>>>>>>>>> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> >>>>>>>>>>>>>>>> import java.io.InputStream;import
> >>>> java.util.Iterator;
> >>>>>>>>>>>>>>>> public class Example02 {
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>      private static final Logger logger =
> >>>>>>>>>> LoggerFactory.getLogger(
> >>>>>>>>>>>>>>>> Example02.class );
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>      public static void main( String[] args ) {
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>          InputStream inputStream =
> >>>>>>>>>>>>>>>>
> >>>> Example02.class.getClassLoader().getResourceAsStream(
> >>>>>>>>>>>> "example02.ttl"
> >>>>>>>>>>>>>>>> );
> >>>>>>>>>>>>>>>>          Parser parser = Parser.getInstance();
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>          try {
> >>>>>>>>>>>>>>>>              Graph graph = parser.parse(
> >> inputStream,
> >>>>>>>>>>>>>>>> SupportedFormat.TURTLE );
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>              Iterator<Triple> iterator =
> >>>> graph.filter(
> >>>>>> null,
> >>>>>>>>>> null,
> >>>>>>>>>>>> null
> >>>>>>>>>>>>>> );
> >>>>>>>>>>>>>>>>              Triple triple;
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>              while ( iterator.hasNext() ) {
> >>>>>>>>>>>>>>>>                  triple = iterator.next();
> >>>>>>>>>>>>>>>>                  logger.info( String.format( "%s
> >> %s
> >>>>> %s",
> >>>>   triple.getSubject().toString(),
> >>>>>   triple.getPredicate().toString(),
> >>>>   triple.getObject().toString()
> >>>>>>>>>>>>>>>>                  ) );
> >>>>>>>>>>>>>>>>              }
> >>>>>>>>>>>>>>>>          } catch ( UnsupportedFormatException ex )
> >> {
> >>>>>>>>>>>>>>>>              logger.warn( String.format( "%s is not
> >>>>>>> supported
> >>>>>>>> by
> >>>>>>>>>>> the
> >>>>>>>>>>>>>>>> used parser", SupportedFormat.TURTLE ) );
> >>>>>>>>>>>>>>>>          }
> >>>>>>>>>>>>>>>>      }
> >>>>>>>>>>>>>>>> }
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> And i got the output as:
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> SLF4J: Class path contains multiple SLF4J
> >> bindings.
> >>>>>>>>>>>>>>>> SLF4J: Found binding in
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >>>>>>>>>>>>>>>> SLF4J: Found binding in
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >>>>>>>>>>>>>>>> SLF4J: See
> >>>>>>> http://www.slf4j.org/codes.html#multiple_bindings
> >>>>>>>>>> for
> >>>>>>>>>>> an
> >>>>>>>>>>>>>>>> explanation.
> >>>>>>>>>>>>>>>> SLF4J: Actual binding is of type
> >>>>>>>>>>>> [org.slf4j.impl.SimpleLoggerFactory]
> >>>>>>>>>>>>>>>> [main] INFO
> >>>>>>>> org.apache.clerezza.rdf.core.serializedform.Parser
> >>>>>>>>>> -
> >>>>>>>>>>>>>>>> constructing Parser
> >>>>>>>>>>>>>>>> [main] INFO
> >> org.apache.clerezza.tutorial.Example02 -
> >>>>>>>> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >>>>>>>>>>>>>>>> <
> >>>>> http://clerezza.apache.org/2017/01/example#hasFirstName
> >>>>>>>>>>>>>>>> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string
> >>>>>>>>>>>>>>>> [main] INFO
> >> org.apache.clerezza.tutorial.Example02 -
> >>>>>>>> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >>>>>>>>>>>>>>>> <http://clerezza.apache.org/2017/01/example#isA>
> >>>>>>>>>>>>>>>> <
> >>>>> http://clerezza.apache.org/2017/01/example#ClerezzaUser
> >>>>>>>>>>>>>>>> I hope i managed to tell what i meant. Just a bit
> >>>>>> confused
> >>>>>>>> why
> >>>>>>>>>> it
> >>>>>>>>>>>>>>>> didn't work with *representation* module. Should i
> >>>> try
> >>>>>> with
> >>>>>>>>>>>>>>>> *representation *or this is fine?
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> Regards!
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> On Tue, May 25, 2021 at 2:33 PM Hasan <
> >>>>> hasan@apache.org>
> >>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>>> Hi Yusuf
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> I'd be glad if you could try to fix tutorial 2
> >> as
> >>>>> well
> >>>>> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> >>>>>>>>>>>>>>>>> Best regards
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>> Hasan
> >>>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>>> --
> >>>>>>>>>>>>>>>> Yusuf
> >>>>>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> --
> >>>>>>>>>>>>> Yusuf
> >>>>>>>>>>>>>
> >> --
> >> Yusuf
> >>
>
>

Re: Tutorial 2

Posted by Reto Gmür <me...@farewellutopia.com>.
On 03.06.2021 18:47, Hasan wrote:
> Hi Yusuf
>
> I'll ask Reto why the fix for jena.parser is not available in the maven
> central repo yet.

It's there now: 
https://repo1.maven.org/maven2/org/wymiwyg/clerezza/rdf.jena.parser/2.0.1/


Reto


>
> Hasan
>
>
> On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
>>   Hi again
>> I just forgot to ask something. What should I do in order to fix tutorial
>> 2? Can it be fixed without waiting for the new release of *jena.parser? *I
>> created a new module called *tutorial *and it's on my branch atm. But the
>> tutorial 2 and 3 are still giving
>> *[org.apache.clerezza.tutorial.Example02.main()]
>> INFO org.apache.clerezza.representation.Parser - constructing Parser*
>> *[org.apache.clerezza.tutorial.Example02.main()] WARN
>> org.apache.clerezza.tutorial.Example02 - text/turtle is not supported by
>> the used parser*
>>
>> Do you want me to create a PR to check and continue conversation from there
>> or should I wait until tutorial 2 is fixed?
>> Best regards!
>>
>> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
>> wrote:
>>
>>> Hello Mr. Hasan
>>> Thank you for the schema.
>>> Regards!
>>>
>>> Yusuf Karadag
>>>
>>> On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
>>>
>>>> Hi Yusuf
>>>>
>>>> As mentioned, this is our artifact dependency diagram
>>>> parent
>>>>    +----> api
>>>>             +--> api-implementation
>>>>             |      +-----------------> representation
>>>>             |      |                     +--------------------> api.utils
>>>>             |      |
>>>> +-------->
>>>> jaxrs.rdf.providers
>>>>             |      +-----------------> sparql
>>>>             |      |                     +---------> dataset
>>>>             |      +-----------------> test.utils
>>>>             |                            +---------> dataset
>>>>             |                                          +------> api.utils
>>>>             +--> ontologies
>>>>                    +------------------------------------------> api.utils
>>>>
>>>> We also have these packages outside of Apache Clerezza, relevant for
>> your
>>>> task:
>>>> jena.commons
>>>> jena.facade
>>>> jena.parser
>>>> jena.serializer
>>>>
>>>> in github.com/clerezza
>>>>
>>>> Hasan
>>>>
>>>> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Yusuf,
>>>>>
>>>>> Yes, we are waiting for you.
>>>>>
>>>>> Kind Regards,
>>>>> Furkan KAMACI
>>>>>
>>>>> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
>>>> yusufkaradag1402@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hello!
>>>>>> Is the meeting now or in the evening?
>>>>>> Regards!
>>>>>>
>>>>>> Yusuf Karadag
>>>>>>
>>>>>> On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
>>>>> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Since we have one week until the beginning of the coding period,
>> it
>>>>> would
>>>>>>> be nice to wrap up the things at the meeting.
>>>>>>>
>>>>>>> Hasan, could you share the meeting link?
>>>>>>>
>>>>>>> Kind Regards,
>>>>>>> Furkan KAMACI
>>>>>>>
>>>>>>> On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
>>>>>> yusufkaradag1402@gmail.com
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I don't know whether you meant am or pm but I'm ok with both
>> time.
>>>>>>>> Regards!
>>>>>>>>
>>>>>>>> Yusuf Karadag
>>>>>>>>
>>>>>>>> On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
>>>>> yusufkaradag1402@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>> Tomorrow(Tuesday) 8 am would be ok for me.
>>>>>>>>> Regards!
>>>>>>>>>
>>>>>>>>> Yusuf Karadag
>>>>>>>>>
>>>>>>>>> On Mon, May 31, 2021, 07:09 Hasan Hasan <
>> xushan.chen@gmail.com>
>>>>>> wrote:
>>>>>>>>>> Hi Yusuf
>>>>>>>>>>
>>>>>>>>>> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45
>>>> CEST or
>>>>>> Wed
>>>>>>>>>> 8:00
>>>>>>>>>> - 8:45 CEST
>>>>>>>>>> Which do you prefer?
>>>>>>>>>>
>>>>>>>>>> Hasan
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
>>>>>>>>>> yusufkaradag1402@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Great, thank you so much.
>>>>>>>>>>> Regards!
>>>>>>>>>>>
>>>>>>>>>>> Yusuf Karadag
>>>>>>>>>>>
>>>>>>>>>>> On Sat, May 29, 2021, 22:19 Hasan Hasan <
>>>> xushan.chen@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>>>> Hi Yusuf
>>>>>>>>>>>>
>>>>>>>>>>>> Yes, Reto has just released a new version of
>> jena.parser. I
>>>>> hope
>>>>>>> we
>>>>>>>>>> can
>>>>>>>>>>> use
>>>>>>>>>>>> that soon.
>>>>>>>>>>>> I think we can schedule a meeting next week. I'll try to
>>>> find
>>>>>> some
>>>>>>>>>> slots
>>>>>>>>>>>> next week.
>>>>>>>>>>>>
>>>>>>>>>>>> Hasan
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
>>>>>>>>>>> yusufkaradag1402@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Dear Mr. Hasan,
>>>>>>>>>>>>> Thank you for explaining to me. I am looking at to
>>>>>>>>>>>>> https://github.com/clerezza/jena.parser  and I see one
>>>>> class
>>>>>>>>>>>>> JenaParserProvider
>>>>>>>>>>>>> <
>>>>>>>>>>>>>
>> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
>>>>>>>>>>>>> which I can see implements the *ParsingProvider* in
>>>>>>>> *representation
>>>>>>>>>>>>> *module.
>>>>>>>>>>>>> So the first thing would be to release new versions? I
>>>> just
>>>>>>>>>>>>> didn't understand whether something was wrong or not
>> with
>>>>> the
>>>>>>>>>> modules
>>>>>>>>>>> in
>>>>>>>>>>>>> github.com/clerezza? From the second problemö we then
>>>>> should
>>>>>>> make
>>>>>>>>>> sure
>>>>>>>>>>>>> that
>>>>>>>>>>>>> the representation module and rdf.jena.parser library
>> use
>>>>> the
>>>>>>> same
>>>>>>>>>>>> versıon
>>>>>>>>>>>>> of slf4j? Also can we arrange a short meeting this week
>>>> or
>>>>>> next
>>>>>>>> week
>>>>>>>>>>> with
>>>>>>>>>>>>> the mentors to get to know each other and maybe to tell
>>>> more
>>>>>>> about
>>>>>>>>>> the
>>>>>>>>>>>> code
>>>>>>>>>>>>> and structure if that's not too much trouble? Just
>>>> getting a
>>>>>>>> little
>>>>>>>>>> bit
>>>>>>>>>>>>> confused about the old and new version/modules.
>>>>>>>>>>>>> Regards!
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
>>>>>>>> xushan.chen@gmail.com
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi Yusuf
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> There are two problems in tutorial 2:
>>>>>>>>>>>>>> 1. It uses a library outside of the Apache Clerezza
>>>>> project
>>>>>>>> called
>>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser which uses an
>>>>> out-dated
>>>>>>>>>> version
>>>>>>>>>>> of
>>>>>>>>>>>>>> Apache Clerezza. The package
>>>>>>> org.apache.clerezza:rdf.jena.parser
>>>>>>>>>> is
>>>>>>>>>>>>>> maintained outside of
>>>>>>>>>>>>>> Apache Clerezza in github.com/clerezza by reto and
>>>> me. We
>>>>>> can
>>>>>>>>>> update
>>>>>>>>>>>> the
>>>>>>>>>>>>>> package org.apache.clerezza:rdf.jena.parser to use
>> the
>>>>>> current
>>>>>>>>>>> release
>>>>>>>>>>>>>> version of Apache Clerezza. You could help here as
>>>> well.
>>>>> You
>>>>>>>> could
>>>>>>>>>>>> study
>>>>>>>>>>>>>> the code and try to understand the relation of that
>>>>> package
>>>>>>> with
>>>>>>>>>> the
>>>>>>>>>>>>>> representation module.
>>>>>>>>>>>>>> The representation module is not implementing any
>>>> parser,
>>>>> It
>>>>>>>>>>> delegates
>>>>>>>>>>>>> the
>>>>>>>>>>>>>> parsing functionality to any registered
>>>> ParsingProvider.
>>>>> The
>>>>>>>>>> package
>>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser is implementing
>>>> that
>>>>>>>>>>> functionality.
>>>>>>>>>>>>>> Thus, we principally should use the representation
>>>> module
>>>>> as
>>>>>>>> well
>>>>>>>>>> as
>>>>>>>>>>>>>> org.apache.clerezza:rdf.jena.parser in tutorial 2.
>>>>>>>>>>>>>> Let me know if you have any questions and whether you
>>>>> would
>>>>>>> like
>>>>>>>>>> to
>>>>>>>>>>> fix
>>>>>>>>>>>>> any
>>>>>>>>>>>>>> package in github.com/clerezza.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 2. The multiple bindings problem of slf4j is due to
>>>>>> different
>>>>>>>> libs
>>>>>>>>>>> used
>>>>>>>>>>>>> by
>>>>>>>>>>>>>> the representation module and rdf.jena.parser
>> library.
>>>>>>>>>>>>>> Cheers
>>>>>>>>>>>>>> Hasan
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
>>>>>>>>>> xushan.chen@gmail.com>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Yusuf
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thx for the work. I'll have a look today or
>> tomorrow.
>>>>>>>>>>>>>>> Regarding the website, you don't yet have access to
>>>> the
>>>>>>>>>> repository.
>>>>>>>>>>>> So,
>>>>>>>>>>>>>>> I'll update it.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>>> Hasan
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
>>>>>>>>>>>>>> yusufkaradag1402@gmail.com>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Hello!
>>>>>>>>>>>>>>>> So i've tried to run tutorial with *representation
>>>>>> *module.
>>>>>>>>>> But it
>>>>>>>>>>>>> kept
>>>>>>>>>>>>>>>> giving *null. *I've kept track of it and it's
>>>> giving in
>>>>>>> this
>>>>>>>>>> line
>>>>>>>>>>> of
>>>>>>>>>>>>>>>> *Parser.class:
>>>>>>>>>>>>>>>> *
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ParsingProvider provider =
>>>>>>>>>>>>>>>>
>>>> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>>>>>>>>>>>>>>>> It can't get the provider and throws
>>>>>>>>>>>>>>>> *UnsupportedParsingFormatException.*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *and the output was:
>>>>>>>>>>>>>>>> [main] INFO
>>>> org.apache.clerezza.representation.Parser -
>>>>>>>>>>> constructing
>>>>>>>>>>>>>>>> Parser
>>>>>>>>>>>>>>>> [main] WARN
>> org.apache.clerezza.tutorial.Example02 -
>>>>>>>>>> text/turtle
>>>>>>>>>>> is
>>>>>>>>>>>>>>>> not supported by the used parser
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Then I tried with the dependencies as written in
>>>>> Tutorial
>>>>>>> 2.
>>>>>>>> I
>>>>>>>>>>> moved
>>>>>>>>>>>>>>>> *example02.ttl *file under *resources *directory
>> of
>>>>>> module
>>>>>>>> and
>>>>>>>>>>> made
>>>>>>>>>>>> a
>>>>>>>>>>>>>>>> change in the code as:
>>>>>>>>>>>>>>>> package org.apache.clerezza.tutorial;
>>>>>>>>>>>>>>>> import
>> org.apache.clerezza.commons.rdf.Graph;import
>>>>>>>>>>>>>>>> org.apache.clerezza.commons.rdf.Triple;import
>>>>>>>>>>>>>>>>
>>>>> org.apache.clerezza.rdf.core.serializedform.Parser;import
>>>> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>>>>>>>>>>>>>>>>
>> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
>>>>>>>>>>>>>>>> org.slf4j.Logger;import org.slf4j.LoggerFactory;
>>>>>>>>>>>>>>>> import java.io.InputStream;import
>>>> java.util.Iterator;
>>>>>>>>>>>>>>>> public class Example02 {
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>      private static final Logger logger =
>>>>>>>>>> LoggerFactory.getLogger(
>>>>>>>>>>>>>>>> Example02.class );
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>      public static void main( String[] args ) {
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          InputStream inputStream =
>>>>>>>>>>>>>>>>
>>>> Example02.class.getClassLoader().getResourceAsStream(
>>>>>>>>>>>> "example02.ttl"
>>>>>>>>>>>>>>>> );
>>>>>>>>>>>>>>>>          Parser parser = Parser.getInstance();
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>          try {
>>>>>>>>>>>>>>>>              Graph graph = parser.parse(
>> inputStream,
>>>>>>>>>>>>>>>> SupportedFormat.TURTLE );
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>              Iterator<Triple> iterator =
>>>> graph.filter(
>>>>>> null,
>>>>>>>>>> null,
>>>>>>>>>>>> null
>>>>>>>>>>>>>> );
>>>>>>>>>>>>>>>>              Triple triple;
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>              while ( iterator.hasNext() ) {
>>>>>>>>>>>>>>>>                  triple = iterator.next();
>>>>>>>>>>>>>>>>                  logger.info( String.format( "%s
>> %s
>>>>> %s",
>>>>   triple.getSubject().toString(),
>>>>>   triple.getPredicate().toString(),
>>>>   triple.getObject().toString()
>>>>>>>>>>>>>>>>                  ) );
>>>>>>>>>>>>>>>>              }
>>>>>>>>>>>>>>>>          } catch ( UnsupportedFormatException ex )
>> {
>>>>>>>>>>>>>>>>              logger.warn( String.format( "%s is not
>>>>>>> supported
>>>>>>>> by
>>>>>>>>>>> the
>>>>>>>>>>>>>>>> used parser", SupportedFormat.TURTLE ) );
>>>>>>>>>>>>>>>>          }
>>>>>>>>>>>>>>>>      }
>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> And i got the output as:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> SLF4J: Class path contains multiple SLF4J
>> bindings.
>>>>>>>>>>>>>>>> SLF4J: Found binding in
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>>>>>>>>>>>>>>> SLF4J: Found binding in
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>>>>>>>>>>>>>>>> SLF4J: See
>>>>>>> http://www.slf4j.org/codes.html#multiple_bindings
>>>>>>>>>> for
>>>>>>>>>>> an
>>>>>>>>>>>>>>>> explanation.
>>>>>>>>>>>>>>>> SLF4J: Actual binding is of type
>>>>>>>>>>>> [org.slf4j.impl.SimpleLoggerFactory]
>>>>>>>>>>>>>>>> [main] INFO
>>>>>>>> org.apache.clerezza.rdf.core.serializedform.Parser
>>>>>>>>>> -
>>>>>>>>>>>>>>>> constructing Parser
>>>>>>>>>>>>>>>> [main] INFO
>> org.apache.clerezza.tutorial.Example02 -
>>>>>>>> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>>>>>>>>>>>>>>>> <
>>>>> http://clerezza.apache.org/2017/01/example#hasFirstName
>>>>>>>>>>>>>>>> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string
>>>>>>>>>>>>>>>> [main] INFO
>> org.apache.clerezza.tutorial.Example02 -
>>>>>>>> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>>>>>>>>>>>>>>>> <http://clerezza.apache.org/2017/01/example#isA>
>>>>>>>>>>>>>>>> <
>>>>> http://clerezza.apache.org/2017/01/example#ClerezzaUser
>>>>>>>>>>>>>>>> I hope i managed to tell what i meant. Just a bit
>>>>>> confused
>>>>>>>> why
>>>>>>>>>> it
>>>>>>>>>>>>>>>> didn't work with *representation* module. Should i
>>>> try
>>>>>> with
>>>>>>>>>>>>>>>> *representation *or this is fine?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Regards!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Tue, May 25, 2021 at 2:33 PM Hasan <
>>>>> hasan@apache.org>
>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>> Hi Yusuf
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I'd be glad if you could try to fix tutorial 2
>> as
>>>>> well
>>>>> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>>>>>>>>>>>>>>>>> Best regards
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hasan
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Yusuf
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Yusuf
>>>>>>>>>>>>>
>> --
>> Yusuf
>>


Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Dear Mr. Hasan,
Thanks for the information. I'll update the PR according to new release of
*jena.parser.*
*Regards!*

On Fri, Jun 4, 2021 at 8:28 AM Hasan Hasan <xu...@gmail.com> wrote:

> Thx @Yusuf for the PR. Will take a look.
>
> Now, you should be able to use org.wymiwyg.clerezza:rdf.jena.parser
> https://mvnrepository.com/artifact/org.wymiwyg.clerezza
>
> Hasan
>
> On Thu, Jun 3, 2021 at 9:46 PM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello,
> > Thank you. I opened a PR on GitHub for tutorial module.
> > Best regards!
> >
> > Yusuf Karadag
> >
> > On Thu, Jun 3, 2021, 18:47 Hasan <ha...@apache.org> wrote:
> >
> > > Hi Yusuf
> > >
> > > I'll ask Reto why the fix for jena.parser is not available in the maven
> > > central repo yet.
> > >
> > > Hasan
> > >
> > >
> > > On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ <
> > yusufkaradag1402@gmail.com>
> > > wrote:
> > >
> > > >  Hi again
> > > > I just forgot to ask something. What should I do in order to fix
> > tutorial
> > > > 2? Can it be fixed without waiting for the new release of
> *jena.parser?
> > > *I
> > > > created a new module called *tutorial *and it's on my branch atm. But
> > the
> > > > tutorial 2 and 3 are still giving
> > > > *[org.apache.clerezza.tutorial.Example02.main()]
> > > > INFO org.apache.clerezza.representation.Parser - constructing Parser*
> > > > *[org.apache.clerezza.tutorial.Example02.main()] WARN
> > > > org.apache.clerezza.tutorial.Example02 - text/turtle is not supported
> > by
> > > > the used parser*
> > > >
> > > > Do you want me to create a PR to check and continue conversation from
> > > there
> > > > or should I wait until tutorial 2 is fixed?
> > > > Best regards!
> > > >
> > > > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> > yusufkaradag1402@gmail.com
> > > >
> > > > wrote:
> > > >
> > > > > Hello Mr. Hasan
> > > > > Thank you for the schema.
> > > > > Regards!
> > > > >
> > > > > Yusuf Karadag
> > > > >
> > > > > On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
> > > > >
> > > > >> Hi Yusuf
> > > > >>
> > > > >> As mentioned, this is our artifact dependency diagram
> > > > >> parent
> > > > >>   +----> api
> > > > >>            +--> api-implementation
> > > > >>            |      +-----------------> representation
> > > > >>            |      |                     +-------------------->
> > > api.utils
> > > > >>            |      |
> > > > >> +-------->
> > > > >> jaxrs.rdf.providers
> > > > >>            |      +-----------------> sparql
> > > > >>            |      |                     +---------> dataset
> > > > >>            |      +-----------------> test.utils
> > > > >>            |                            +---------> dataset
> > > > >>            |                                          +------>
> > > api.utils
> > > > >>            +--> ontologies
> > > > >>                   +------------------------------------------>
> > > api.utils
> > > > >>
> > > > >> We also have these packages outside of Apache Clerezza, relevant
> for
> > > > your
> > > > >> task:
> > > > >> jena.commons
> > > > >> jena.facade
> > > > >> jena.parser
> > > > >> jena.serializer
> > > > >>
> > > > >> in github.com/clerezza
> > > > >>
> > > > >> Hasan
> > > > >>
> > > > >> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <
> > furkankamaci@gmail.com>
> > > > >> wrote:
> > > > >>
> > > > >> > Hi Yusuf,
> > > > >> >
> > > > >> > Yes, we are waiting for you.
> > > > >> >
> > > > >> > Kind Regards,
> > > > >> > Furkan KAMACI
> > > > >> >
> > > > >> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> > > > >> yusufkaradag1402@gmail.com>
> > > > >> > wrote:
> > > > >> >
> > > > >> > > Hello!
> > > > >> > > Is the meeting now or in the evening?
> > > > >> > > Regards!
> > > > >> > >
> > > > >> > > Yusuf Karadag
> > > > >> > >
> > > > >> > > On Mon, May 31, 2021, 11:01 Furkan KAMACI <
> > furkankamaci@gmail.com
> > > >
> > > > >> > wrote:
> > > > >> > >
> > > > >> > > > Hi,
> > > > >> > > >
> > > > >> > > > Since we have one week until the beginning of the coding
> > period,
> > > > it
> > > > >> > would
> > > > >> > > > be nice to wrap up the things at the meeting.
> > > > >> > > >
> > > > >> > > > Hasan, could you share the meeting link?
> > > > >> > > >
> > > > >> > > > Kind Regards,
> > > > >> > > > Furkan KAMACI
> > > > >> > > >
> > > > >> > > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> > > > >> > > yusufkaradag1402@gmail.com
> > > > >> > > > >
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > > > I don't know whether you meant am or pm but I'm ok with
> both
> > > > time.
> > > > >> > > > > Regards!
> > > > >> > > > >
> > > > >> > > > > Yusuf Karadag
> > > > >> > > > >
> > > > >> > > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> > > > >> > yusufkaradag1402@gmail.com>
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > > Hello,
> > > > >> > > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > > >> > > > > > Regards!
> > > > >> > > > > >
> > > > >> > > > > > Yusuf Karadag
> > > > >> > > > > >
> > > > >> > > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <
> > > > xushan.chen@gmail.com>
> > > > >> > > wrote:
> > > > >> > > > > >
> > > > >> > > > > >> Hi Yusuf
> > > > >> > > > > >>
> > > > >> > > > > >> We can have a meeting on either Tue (tomorrow) 8:00 -
> > 8:45
> > > > >> CEST or
> > > > >> > > Wed
> > > > >> > > > > >> 8:00
> > > > >> > > > > >> - 8:45 CEST
> > > > >> > > > > >> Which do you prefer?
> > > > >> > > > > >>
> > > > >> > > > > >> Hasan
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > > > >> > > > > >> yusufkaradag1402@gmail.com>
> > > > >> > > > > >> wrote:
> > > > >> > > > > >>
> > > > >> > > > > >> > Great, thank you so much.
> > > > >> > > > > >> > Regards!
> > > > >> > > > > >> >
> > > > >> > > > > >> > Yusuf Karadag
> > > > >> > > > > >> >
> > > > >> > > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <
> > > > >> xushan.chen@gmail.com>
> > > > >> > > > > wrote:
> > > > >> > > > > >> >
> > > > >> > > > > >> > > Hi Yusuf
> > > > >> > > > > >> > >
> > > > >> > > > > >> > > Yes, Reto has just released a new version of
> > > > jena.parser. I
> > > > >> > hope
> > > > >> > > > we
> > > > >> > > > > >> can
> > > > >> > > > > >> > use
> > > > >> > > > > >> > > that soon.
> > > > >> > > > > >> > > I think we can schedule a meeting next week. I'll
> try
> > > to
> > > > >> find
> > > > >> > > some
> > > > >> > > > > >> slots
> > > > >> > > > > >> > > next week.
> > > > >> > > > > >> > >
> > > > >> > > > > >> > > Hasan
> > > > >> > > > > >> > >
> > > > >> > > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > > > >> > > > > >> > yusufkaradag1402@gmail.com>
> > > > >> > > > > >> > > wrote:
> > > > >> > > > > >> > >
> > > > >> > > > > >> > > > Dear Mr. Hasan,
> > > > >> > > > > >> > > > Thank you for explaining to me. I am looking at
> to
> > > > >> > > > > >> > > > https://github.com/clerezza/jena.parser  and I
> see
> > > one
> > > > >> > class
> > > > >> > > > > >> > > > JenaParserProvider
> > > > >> > > > > >> > > > <
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > >
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > which I can see implements the *ParsingProvider*
> in
> > > > >> > > > > *representation
> > > > >> > > > > >> > > > *module.
> > > > >> > > > > >> > > > So the first thing would be to release new
> > versions?
> > > I
> > > > >> just
> > > > >> > > > > >> > > > didn't understand whether something was wrong or
> > not
> > > > with
> > > > >> > the
> > > > >> > > > > >> modules
> > > > >> > > > > >> > in
> > > > >> > > > > >> > > > github.com/clerezza? From the second problemö we
> > > then
> > > > >> > should
> > > > >> > > > make
> > > > >> > > > > >> sure
> > > > >> > > > > >> > > > that
> > > > >> > > > > >> > > > the representation module and rdf.jena.parser
> > library
> > > > use
> > > > >> > the
> > > > >> > > > same
> > > > >> > > > > >> > > versıon
> > > > >> > > > > >> > > > of slf4j? Also can we arrange a short meeting
> this
> > > week
> > > > >> or
> > > > >> > > next
> > > > >> > > > > week
> > > > >> > > > > >> > with
> > > > >> > > > > >> > > > the mentors to get to know each other and maybe
> to
> > > tell
> > > > >> more
> > > > >> > > > about
> > > > >> > > > > >> the
> > > > >> > > > > >> > > code
> > > > >> > > > > >> > > > and structure if that's not too much trouble?
> Just
> > > > >> getting a
> > > > >> > > > > little
> > > > >> > > > > >> bit
> > > > >> > > > > >> > > > confused about the old and new version/modules.
> > > > >> > > > > >> > > > Regards!
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > > > >> > > > > xushan.chen@gmail.com
> > > > >> > > > > >> >
> > > > >> > > > > >> > > > wrote:
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > > > > Hi Yusuf
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > > There are two problems in tutorial 2:
> > > > >> > > > > >> > > > > 1. It uses a library outside of the Apache
> > Clerezza
> > > > >> > project
> > > > >> > > > > called
> > > > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses
> an
> > > > >> > out-dated
> > > > >> > > > > >> version
> > > > >> > > > > >> > of
> > > > >> > > > > >> > > > > Apache Clerezza. The package
> > > > >> > > > org.apache.clerezza:rdf.jena.parser
> > > > >> > > > > >> is
> > > > >> > > > > >> > > > > maintained outside of
> > > > >> > > > > >> > > > > Apache Clerezza in github.com/clerezza by reto
> > and
> > > > >> me. We
> > > > >> > > can
> > > > >> > > > > >> update
> > > > >> > > > > >> > > the
> > > > >> > > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to
> > use
> > > > the
> > > > >> > > current
> > > > >> > > > > >> > release
> > > > >> > > > > >> > > > > version of Apache Clerezza. You could help here
> > as
> > > > >> well.
> > > > >> > You
> > > > >> > > > > could
> > > > >> > > > > >> > > study
> > > > >> > > > > >> > > > > the code and try to understand the relation of
> > that
> > > > >> > package
> > > > >> > > > with
> > > > >> > > > > >> the
> > > > >> > > > > >> > > > > representation module.
> > > > >> > > > > >> > > > > The representation module is not implementing
> any
> > > > >> parser,
> > > > >> > It
> > > > >> > > > > >> > delegates
> > > > >> > > > > >> > > > the
> > > > >> > > > > >> > > > > parsing functionality to any registered
> > > > >> ParsingProvider.
> > > > >> > The
> > > > >> > > > > >> package
> > > > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser is
> > implementing
> > > > >> that
> > > > >> > > > > >> > functionality.
> > > > >> > > > > >> > > > > Thus, we principally should use the
> > representation
> > > > >> module
> > > > >> > as
> > > > >> > > > > well
> > > > >> > > > > >> as
> > > > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial
> > 2.
> > > > >> > > > > >> > > > > Let me know if you have any questions and
> whether
> > > you
> > > > >> > would
> > > > >> > > > like
> > > > >> > > > > >> to
> > > > >> > > > > >> > fix
> > > > >> > > > > >> > > > any
> > > > >> > > > > >> > > > > package in github.com/clerezza.
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > > 2. The multiple bindings problem of slf4j is
> due
> > to
> > > > >> > > different
> > > > >> > > > > libs
> > > > >> > > > > >> > used
> > > > >> > > > > >> > > > by
> > > > >> > > > > >> > > > > the representation module and rdf.jena.parser
> > > > library.
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > > Cheers
> > > > >> > > > > >> > > > > Hasan
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > > > >> > > > > >> xushan.chen@gmail.com>
> > > > >> > > > > >> > > > > wrote:
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > > > > Hi Yusuf
> > > > >> > > > > >> > > > > >
> > > > >> > > > > >> > > > > > Thx for the work. I'll have a look today or
> > > > tomorrow.
> > > > >> > > > > >> > > > > >
> > > > >> > > > > >> > > > > > Regarding the website, you don't yet have
> > access
> > > to
> > > > >> the
> > > > >> > > > > >> repository.
> > > > >> > > > > >> > > So,
> > > > >> > > > > >> > > > > > I'll update it.
> > > > >> > > > > >> > > > > >
> > > > >> > > > > >> > > > > > Regards
> > > > >> > > > > >> > > > > > Hasan
> > > > >> > > > > >> > > > > >
> > > > >> > > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf
> Karadağ <
> > > > >> > > > > >> > > > > yusufkaradag1402@gmail.com>
> > > > >> > > > > >> > > > > > wrote:
> > > > >> > > > > >> > > > > >
> > > > >> > > > > >> > > > > >> Hello!
> > > > >> > > > > >> > > > > >> So i've tried to run tutorial with
> > > *representation
> > > > >> > > *module.
> > > > >> > > > > >> But it
> > > > >> > > > > >> > > > kept
> > > > >> > > > > >> > > > > >> giving *null. *I've kept track of it and
> it's
> > > > >> giving in
> > > > >> > > > this
> > > > >> > > > > >> line
> > > > >> > > > > >> > of
> > > > >> > > > > >> > > > > >> *Parser.class:
> > > > >> > > > > >> > > > > >> *
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> ParsingProvider provider =
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> It can't get the provider and throws
> > > > >> > > > > >> > > > > >> *UnsupportedParsingFormatException.*
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> *and the output was:
> > > > >> > > > > >> > > > > >> [main] INFO
> > > > >> org.apache.clerezza.representation.Parser -
> > > > >> > > > > >> > constructing
> > > > >> > > > > >> > > > > >> Parser
> > > > >> > > > > >> > > > > >> [main] WARN
> > > > org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >> text/turtle
> > > > >> > > > > >> > is
> > > > >> > > > > >> > > > > >> not supported by the used parser
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> *
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> Then I tried with the dependencies as
> written
> > in
> > > > >> > Tutorial
> > > > >> > > > 2.
> > > > >> > > > > I
> > > > >> > > > > >> > moved
> > > > >> > > > > >> > > > > >> *example02.ttl *file under *resources
> > *directory
> > > > of
> > > > >> > > module
> > > > >> > > > > and
> > > > >> > > > > >> > made
> > > > >> > > > > >> > > a
> > > > >> > > > > >> > > > > >> change in the code as:
> > > > >> > > > > >> > > > > >> package org.apache.clerezza.tutorial;
> > > > >> > > > > >> > > > > >> import
> > > > org.apache.clerezza.commons.rdf.Graph;import
> > > > >> > > > > >> > > > > >>
> org.apache.clerezza.commons.rdf.Triple;import
> > > > >> > > > > >> > > > > >>
> > > > >> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > >
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > > >> > > > > >> > > > > >> org.slf4j.Logger;import
> > org.slf4j.LoggerFactory;
> > > > >> > > > > >> > > > > >> import java.io.InputStream;import
> > > > >> java.util.Iterator;
> > > > >> > > > > >> > > > > >> public class Example02 {
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>     private static final Logger logger =
> > > > >> > > > > >> LoggerFactory.getLogger(
> > > > >> > > > > >> > > > > >> Example02.class );
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>     public static void main( String[] args
> ) {
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>         InputStream inputStream =
> > > > >> > > > > >> > > > > >>
> > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > > >> > > > > >> > > "example02.ttl"
> > > > >> > > > > >> > > > > >> );
> > > > >> > > > > >> > > > > >>         Parser parser =
> Parser.getInstance();
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>         try {
> > > > >> > > > > >> > > > > >>             Graph graph = parser.parse(
> > > > inputStream,
> > > > >> > > > > >> > > > > >> SupportedFormat.TURTLE );
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>             Iterator<Triple> iterator =
> > > > >> graph.filter(
> > > > >> > > null,
> > > > >> > > > > >> null,
> > > > >> > > > > >> > > null
> > > > >> > > > > >> > > > > );
> > > > >> > > > > >> > > > > >>             Triple triple;
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>             while ( iterator.hasNext() ) {
> > > > >> > > > > >> > > > > >>                 triple = iterator.next();
> > > > >> > > > > >> > > > > >>                 logger.info( String.format(
> > "%s
> > > > %s
> > > > >> > %s",
> > > > >> > > > > >> > > > > >>
> > > > >>  triple.getSubject().toString(),
> > > > >> > > > > >> > > > > >>
> > > > >> >  triple.getPredicate().toString(),
> > > > >> > > > > >> > > > > >>
> > > > >>  triple.getObject().toString()
> > > > >> > > > > >> > > > > >>                 ) );
> > > > >> > > > > >> > > > > >>             }
> > > > >> > > > > >> > > > > >>         } catch ( UnsupportedFormatException
> > ex
> > > )
> > > > {
> > > > >> > > > > >> > > > > >>             logger.warn( String.format( "%s
> is
> > > not
> > > > >> > > > supported
> > > > >> > > > > by
> > > > >> > > > > >> > the
> > > > >> > > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > > >> > > > > >> > > > > >>         }
> > > > >> > > > > >> > > > > >>     }
> > > > >> > > > > >> > > > > >> }
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> And i got the output as:
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J
> > > > bindings.
> > > > >> > > > > >> > > > > >> SLF4J: Found binding in
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > >
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> > > > > >> > > > > >> SLF4J: Found binding in
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > >
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> > > > > >> > > > > >> SLF4J: See
> > > > >> > > > http://www.slf4j.org/codes.html#multiple_bindings
> > > > >> > > > > >> for
> > > > >> > > > > >> > an
> > > > >> > > > > >> > > > > >> explanation.
> > > > >> > > > > >> > > > > >> SLF4J: Actual binding is of type
> > > > >> > > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > > >> > > > > >> > > > > >> [main] INFO
> > > > >> > > > > org.apache.clerezza.rdf.core.serializedform.Parser
> > > > >> > > > > >> -
> > > > >> > > > > >> > > > > >> constructing Parser
> > > > >> > > > > >> > > > > >> [main] INFO
> > > > org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >> > > > > >>
> > > > >> > > > >
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> > > > > >> > > > > >> <
> > > > >> > http://clerezza.apache.org/2017/01/example#hasFirstName
> > > > >> > > >
> > > > >> > > > > >> > > > > >> "Hasan"^^<
> > > http://www.w3.org/2001/XMLSchema#string
> > > > >
> > > > >> > > > > >> > > > > >> [main] INFO
> > > > org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >> > > > > >>
> > > > >> > > > >
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> > > > > >> > > > > >> <
> > http://clerezza.apache.org/2017/01/example#isA
> > > >
> > > > >> > > > > >> > > > > >> <
> > > > >> > http://clerezza.apache.org/2017/01/example#ClerezzaUser
> > > > >> > > >
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> I hope i managed to tell what i meant. Just
> a
> > > bit
> > > > >> > > confused
> > > > >> > > > > why
> > > > >> > > > > >> it
> > > > >> > > > > >> > > > > >> didn't work with *representation* module.
> > > Should i
> > > > >> try
> > > > >> > > with
> > > > >> > > > > >> > > > > >> *representation *or this is fine?
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> Regards!
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> > > > >> > hasan@apache.org>
> > > > >> > > > > >> wrote:
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> > Hi Yusuf
> > > > >> > > > > >> > > > > >> >
> > > > >> > > > > >> > > > > >> > I'd be glad if you could try to fix
> > tutorial 2
> > > > as
> > > > >> > well
> > > > >> > > > > >> > > > > >> >
> > > > >> > > > > >> >
> > > > >> >
> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > > >> > > > > >> > > > > >> >
> > > > >> > > > > >> > > > > >> > Best regards
> > > > >> > > > > >> > > > > >> >
> > > > >> > > > > >> > > > > >> > Hasan
> > > > >> > > > > >> > > > > >> >
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >> --
> > > > >> > > > > >> > > > > >> Yusuf
> > > > >> > > > > >> > > > > >>
> > > > >> > > > > >> > > > > >
> > > > >> > > > > >> > > > >
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > > > --
> > > > >> > > > > >> > > > Yusuf
> > > > >> > > > > >> > > >
> > > > >> > > > > >> > >
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > >
> > > > --
> > > > Yusuf
> > > >
> > >
> >
>


-- 
Yusuf

Re: Tutorial 2

Posted by Hasan Hasan <xu...@gmail.com>.
Thx @Yusuf for the PR. Will take a look.

Now, you should be able to use org.wymiwyg.clerezza:rdf.jena.parser
https://mvnrepository.com/artifact/org.wymiwyg.clerezza

Hasan

On Thu, Jun 3, 2021 at 9:46 PM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Hello,
> Thank you. I opened a PR on GitHub for tutorial module.
> Best regards!
>
> Yusuf Karadag
>
> On Thu, Jun 3, 2021, 18:47 Hasan <ha...@apache.org> wrote:
>
> > Hi Yusuf
> >
> > I'll ask Reto why the fix for jena.parser is not available in the maven
> > central repo yet.
> >
> > Hasan
> >
> >
> > On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> > wrote:
> >
> > >  Hi again
> > > I just forgot to ask something. What should I do in order to fix
> tutorial
> > > 2? Can it be fixed without waiting for the new release of *jena.parser?
> > *I
> > > created a new module called *tutorial *and it's on my branch atm. But
> the
> > > tutorial 2 and 3 are still giving
> > > *[org.apache.clerezza.tutorial.Example02.main()]
> > > INFO org.apache.clerezza.representation.Parser - constructing Parser*
> > > *[org.apache.clerezza.tutorial.Example02.main()] WARN
> > > org.apache.clerezza.tutorial.Example02 - text/turtle is not supported
> by
> > > the used parser*
> > >
> > > Do you want me to create a PR to check and continue conversation from
> > there
> > > or should I wait until tutorial 2 is fixed?
> > > Best regards!
> > >
> > > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> yusufkaradag1402@gmail.com
> > >
> > > wrote:
> > >
> > > > Hello Mr. Hasan
> > > > Thank you for the schema.
> > > > Regards!
> > > >
> > > > Yusuf Karadag
> > > >
> > > > On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
> > > >
> > > >> Hi Yusuf
> > > >>
> > > >> As mentioned, this is our artifact dependency diagram
> > > >> parent
> > > >>   +----> api
> > > >>            +--> api-implementation
> > > >>            |      +-----------------> representation
> > > >>            |      |                     +-------------------->
> > api.utils
> > > >>            |      |
> > > >> +-------->
> > > >> jaxrs.rdf.providers
> > > >>            |      +-----------------> sparql
> > > >>            |      |                     +---------> dataset
> > > >>            |      +-----------------> test.utils
> > > >>            |                            +---------> dataset
> > > >>            |                                          +------>
> > api.utils
> > > >>            +--> ontologies
> > > >>                   +------------------------------------------>
> > api.utils
> > > >>
> > > >> We also have these packages outside of Apache Clerezza, relevant for
> > > your
> > > >> task:
> > > >> jena.commons
> > > >> jena.facade
> > > >> jena.parser
> > > >> jena.serializer
> > > >>
> > > >> in github.com/clerezza
> > > >>
> > > >> Hasan
> > > >>
> > > >> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <
> furkankamaci@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > Hi Yusuf,
> > > >> >
> > > >> > Yes, we are waiting for you.
> > > >> >
> > > >> > Kind Regards,
> > > >> > Furkan KAMACI
> > > >> >
> > > >> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> > > >> yusufkaradag1402@gmail.com>
> > > >> > wrote:
> > > >> >
> > > >> > > Hello!
> > > >> > > Is the meeting now or in the evening?
> > > >> > > Regards!
> > > >> > >
> > > >> > > Yusuf Karadag
> > > >> > >
> > > >> > > On Mon, May 31, 2021, 11:01 Furkan KAMACI <
> furkankamaci@gmail.com
> > >
> > > >> > wrote:
> > > >> > >
> > > >> > > > Hi,
> > > >> > > >
> > > >> > > > Since we have one week until the beginning of the coding
> period,
> > > it
> > > >> > would
> > > >> > > > be nice to wrap up the things at the meeting.
> > > >> > > >
> > > >> > > > Hasan, could you share the meeting link?
> > > >> > > >
> > > >> > > > Kind Regards,
> > > >> > > > Furkan KAMACI
> > > >> > > >
> > > >> > > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> > > >> > > yusufkaradag1402@gmail.com
> > > >> > > > >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > > I don't know whether you meant am or pm but I'm ok with both
> > > time.
> > > >> > > > > Regards!
> > > >> > > > >
> > > >> > > > > Yusuf Karadag
> > > >> > > > >
> > > >> > > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> > > >> > yusufkaradag1402@gmail.com>
> > > >> > > > > wrote:
> > > >> > > > >
> > > >> > > > > > Hello,
> > > >> > > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > >> > > > > > Regards!
> > > >> > > > > >
> > > >> > > > > > Yusuf Karadag
> > > >> > > > > >
> > > >> > > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <
> > > xushan.chen@gmail.com>
> > > >> > > wrote:
> > > >> > > > > >
> > > >> > > > > >> Hi Yusuf
> > > >> > > > > >>
> > > >> > > > > >> We can have a meeting on either Tue (tomorrow) 8:00 -
> 8:45
> > > >> CEST or
> > > >> > > Wed
> > > >> > > > > >> 8:00
> > > >> > > > > >> - 8:45 CEST
> > > >> > > > > >> Which do you prefer?
> > > >> > > > > >>
> > > >> > > > > >> Hasan
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > > >> > > > > >> yusufkaradag1402@gmail.com>
> > > >> > > > > >> wrote:
> > > >> > > > > >>
> > > >> > > > > >> > Great, thank you so much.
> > > >> > > > > >> > Regards!
> > > >> > > > > >> >
> > > >> > > > > >> > Yusuf Karadag
> > > >> > > > > >> >
> > > >> > > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <
> > > >> xushan.chen@gmail.com>
> > > >> > > > > wrote:
> > > >> > > > > >> >
> > > >> > > > > >> > > Hi Yusuf
> > > >> > > > > >> > >
> > > >> > > > > >> > > Yes, Reto has just released a new version of
> > > jena.parser. I
> > > >> > hope
> > > >> > > > we
> > > >> > > > > >> can
> > > >> > > > > >> > use
> > > >> > > > > >> > > that soon.
> > > >> > > > > >> > > I think we can schedule a meeting next week. I'll try
> > to
> > > >> find
> > > >> > > some
> > > >> > > > > >> slots
> > > >> > > > > >> > > next week.
> > > >> > > > > >> > >
> > > >> > > > > >> > > Hasan
> > > >> > > > > >> > >
> > > >> > > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > > >> > > > > >> > yusufkaradag1402@gmail.com>
> > > >> > > > > >> > > wrote:
> > > >> > > > > >> > >
> > > >> > > > > >> > > > Dear Mr. Hasan,
> > > >> > > > > >> > > > Thank you for explaining to me. I am looking at to
> > > >> > > > > >> > > > https://github.com/clerezza/jena.parser  and I see
> > one
> > > >> > class
> > > >> > > > > >> > > > JenaParserProvider
> > > >> > > > > >> > > > <
> > > >> > > > > >> > > >
> > > >> > > > > >> > >
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > which I can see implements the *ParsingProvider* in
> > > >> > > > > *representation
> > > >> > > > > >> > > > *module.
> > > >> > > > > >> > > > So the first thing would be to release new
> versions?
> > I
> > > >> just
> > > >> > > > > >> > > > didn't understand whether something was wrong or
> not
> > > with
> > > >> > the
> > > >> > > > > >> modules
> > > >> > > > > >> > in
> > > >> > > > > >> > > > github.com/clerezza? From the second problemö we
> > then
> > > >> > should
> > > >> > > > make
> > > >> > > > > >> sure
> > > >> > > > > >> > > > that
> > > >> > > > > >> > > > the representation module and rdf.jena.parser
> library
> > > use
> > > >> > the
> > > >> > > > same
> > > >> > > > > >> > > versıon
> > > >> > > > > >> > > > of slf4j? Also can we arrange a short meeting this
> > week
> > > >> or
> > > >> > > next
> > > >> > > > > week
> > > >> > > > > >> > with
> > > >> > > > > >> > > > the mentors to get to know each other and maybe to
> > tell
> > > >> more
> > > >> > > > about
> > > >> > > > > >> the
> > > >> > > > > >> > > code
> > > >> > > > > >> > > > and structure if that's not too much trouble? Just
> > > >> getting a
> > > >> > > > > little
> > > >> > > > > >> bit
> > > >> > > > > >> > > > confused about the old and new version/modules.
> > > >> > > > > >> > > > Regards!
> > > >> > > > > >> > > >
> > > >> > > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > > >> > > > > xushan.chen@gmail.com
> > > >> > > > > >> >
> > > >> > > > > >> > > > wrote:
> > > >> > > > > >> > > >
> > > >> > > > > >> > > > > Hi Yusuf
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > > There are two problems in tutorial 2:
> > > >> > > > > >> > > > > 1. It uses a library outside of the Apache
> Clerezza
> > > >> > project
> > > >> > > > > called
> > > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
> > > >> > out-dated
> > > >> > > > > >> version
> > > >> > > > > >> > of
> > > >> > > > > >> > > > > Apache Clerezza. The package
> > > >> > > > org.apache.clerezza:rdf.jena.parser
> > > >> > > > > >> is
> > > >> > > > > >> > > > > maintained outside of
> > > >> > > > > >> > > > > Apache Clerezza in github.com/clerezza by reto
> and
> > > >> me. We
> > > >> > > can
> > > >> > > > > >> update
> > > >> > > > > >> > > the
> > > >> > > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to
> use
> > > the
> > > >> > > current
> > > >> > > > > >> > release
> > > >> > > > > >> > > > > version of Apache Clerezza. You could help here
> as
> > > >> well.
> > > >> > You
> > > >> > > > > could
> > > >> > > > > >> > > study
> > > >> > > > > >> > > > > the code and try to understand the relation of
> that
> > > >> > package
> > > >> > > > with
> > > >> > > > > >> the
> > > >> > > > > >> > > > > representation module.
> > > >> > > > > >> > > > > The representation module is not implementing any
> > > >> parser,
> > > >> > It
> > > >> > > > > >> > delegates
> > > >> > > > > >> > > > the
> > > >> > > > > >> > > > > parsing functionality to any registered
> > > >> ParsingProvider.
> > > >> > The
> > > >> > > > > >> package
> > > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser is
> implementing
> > > >> that
> > > >> > > > > >> > functionality.
> > > >> > > > > >> > > > > Thus, we principally should use the
> representation
> > > >> module
> > > >> > as
> > > >> > > > > well
> > > >> > > > > >> as
> > > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial
> 2.
> > > >> > > > > >> > > > > Let me know if you have any questions and whether
> > you
> > > >> > would
> > > >> > > > like
> > > >> > > > > >> to
> > > >> > > > > >> > fix
> > > >> > > > > >> > > > any
> > > >> > > > > >> > > > > package in github.com/clerezza.
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > > 2. The multiple bindings problem of slf4j is due
> to
> > > >> > > different
> > > >> > > > > libs
> > > >> > > > > >> > used
> > > >> > > > > >> > > > by
> > > >> > > > > >> > > > > the representation module and rdf.jena.parser
> > > library.
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > > Cheers
> > > >> > > > > >> > > > > Hasan
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > > >> > > > > >> xushan.chen@gmail.com>
> > > >> > > > > >> > > > > wrote:
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > > > > Hi Yusuf
> > > >> > > > > >> > > > > >
> > > >> > > > > >> > > > > > Thx for the work. I'll have a look today or
> > > tomorrow.
> > > >> > > > > >> > > > > >
> > > >> > > > > >> > > > > > Regarding the website, you don't yet have
> access
> > to
> > > >> the
> > > >> > > > > >> repository.
> > > >> > > > > >> > > So,
> > > >> > > > > >> > > > > > I'll update it.
> > > >> > > > > >> > > > > >
> > > >> > > > > >> > > > > > Regards
> > > >> > > > > >> > > > > > Hasan
> > > >> > > > > >> > > > > >
> > > >> > > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > >> > > > > >> > > > > yusufkaradag1402@gmail.com>
> > > >> > > > > >> > > > > > wrote:
> > > >> > > > > >> > > > > >
> > > >> > > > > >> > > > > >> Hello!
> > > >> > > > > >> > > > > >> So i've tried to run tutorial with
> > *representation
> > > >> > > *module.
> > > >> > > > > >> But it
> > > >> > > > > >> > > > kept
> > > >> > > > > >> > > > > >> giving *null. *I've kept track of it and it's
> > > >> giving in
> > > >> > > > this
> > > >> > > > > >> line
> > > >> > > > > >> > of
> > > >> > > > > >> > > > > >> *Parser.class:
> > > >> > > > > >> > > > > >> *
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> ParsingProvider provider =
> > > >> > > > > >> > > > > >>
> > > >> > > > > >>
> > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> It can't get the provider and throws
> > > >> > > > > >> > > > > >> *UnsupportedParsingFormatException.*
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> *and the output was:
> > > >> > > > > >> > > > > >> [main] INFO
> > > >> org.apache.clerezza.representation.Parser -
> > > >> > > > > >> > constructing
> > > >> > > > > >> > > > > >> Parser
> > > >> > > > > >> > > > > >> [main] WARN
> > > org.apache.clerezza.tutorial.Example02 -
> > > >> > > > > >> text/turtle
> > > >> > > > > >> > is
> > > >> > > > > >> > > > > >> not supported by the used parser
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> *
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> Then I tried with the dependencies as written
> in
> > > >> > Tutorial
> > > >> > > > 2.
> > > >> > > > > I
> > > >> > > > > >> > moved
> > > >> > > > > >> > > > > >> *example02.ttl *file under *resources
> *directory
> > > of
> > > >> > > module
> > > >> > > > > and
> > > >> > > > > >> > made
> > > >> > > > > >> > > a
> > > >> > > > > >> > > > > >> change in the code as:
> > > >> > > > > >> > > > > >> package org.apache.clerezza.tutorial;
> > > >> > > > > >> > > > > >> import
> > > org.apache.clerezza.commons.rdf.Graph;import
> > > >> > > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > >> > > > > >> > > > > >>
> > > >> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > >> > > > > >> > > > > >>
> > > >> > > > > >>
> > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > >
> > > >> > > > > >> > >
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > >> > > > > >> > > > > >> org.slf4j.Logger;import
> org.slf4j.LoggerFactory;
> > > >> > > > > >> > > > > >> import java.io.InputStream;import
> > > >> java.util.Iterator;
> > > >> > > > > >> > > > > >> public class Example02 {
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>     private static final Logger logger =
> > > >> > > > > >> LoggerFactory.getLogger(
> > > >> > > > > >> > > > > >> Example02.class );
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>     public static void main( String[] args ) {
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>         InputStream inputStream =
> > > >> > > > > >> > > > > >>
> > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > >> > > > > >> > > "example02.ttl"
> > > >> > > > > >> > > > > >> );
> > > >> > > > > >> > > > > >>         Parser parser = Parser.getInstance();
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>         try {
> > > >> > > > > >> > > > > >>             Graph graph = parser.parse(
> > > inputStream,
> > > >> > > > > >> > > > > >> SupportedFormat.TURTLE );
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>             Iterator<Triple> iterator =
> > > >> graph.filter(
> > > >> > > null,
> > > >> > > > > >> null,
> > > >> > > > > >> > > null
> > > >> > > > > >> > > > > );
> > > >> > > > > >> > > > > >>             Triple triple;
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>             while ( iterator.hasNext() ) {
> > > >> > > > > >> > > > > >>                 triple = iterator.next();
> > > >> > > > > >> > > > > >>                 logger.info( String.format(
> "%s
> > > %s
> > > >> > %s",
> > > >> > > > > >> > > > > >>
> > > >>  triple.getSubject().toString(),
> > > >> > > > > >> > > > > >>
> > > >> >  triple.getPredicate().toString(),
> > > >> > > > > >> > > > > >>
> > > >>  triple.getObject().toString()
> > > >> > > > > >> > > > > >>                 ) );
> > > >> > > > > >> > > > > >>             }
> > > >> > > > > >> > > > > >>         } catch ( UnsupportedFormatException
> ex
> > )
> > > {
> > > >> > > > > >> > > > > >>             logger.warn( String.format( "%s is
> > not
> > > >> > > > supported
> > > >> > > > > by
> > > >> > > > > >> > the
> > > >> > > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > >> > > > > >> > > > > >>         }
> > > >> > > > > >> > > > > >>     }
> > > >> > > > > >> > > > > >> }
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> And i got the output as:
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J
> > > bindings.
> > > >> > > > > >> > > > > >> SLF4J: Found binding in
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > >
> > > >> > > > > >> > >
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > >> > > > > >> > > > > >> SLF4J: Found binding in
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > >
> > > >> > > > > >> > >
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > >> > > > > >> > > > > >> SLF4J: See
> > > >> > > > http://www.slf4j.org/codes.html#multiple_bindings
> > > >> > > > > >> for
> > > >> > > > > >> > an
> > > >> > > > > >> > > > > >> explanation.
> > > >> > > > > >> > > > > >> SLF4J: Actual binding is of type
> > > >> > > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > >> > > > > >> > > > > >> [main] INFO
> > > >> > > > > org.apache.clerezza.rdf.core.serializedform.Parser
> > > >> > > > > >> -
> > > >> > > > > >> > > > > >> constructing Parser
> > > >> > > > > >> > > > > >> [main] INFO
> > > org.apache.clerezza.tutorial.Example02 -
> > > >> > > > > >> > > > > >>
> > > >> > > > >
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > >> > > > > >> > > > > >> <
> > > >> > http://clerezza.apache.org/2017/01/example#hasFirstName
> > > >> > > >
> > > >> > > > > >> > > > > >> "Hasan"^^<
> > http://www.w3.org/2001/XMLSchema#string
> > > >
> > > >> > > > > >> > > > > >> [main] INFO
> > > org.apache.clerezza.tutorial.Example02 -
> > > >> > > > > >> > > > > >>
> > > >> > > > >
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > >> > > > > >> > > > > >> <
> http://clerezza.apache.org/2017/01/example#isA
> > >
> > > >> > > > > >> > > > > >> <
> > > >> > http://clerezza.apache.org/2017/01/example#ClerezzaUser
> > > >> > > >
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> I hope i managed to tell what i meant. Just a
> > bit
> > > >> > > confused
> > > >> > > > > why
> > > >> > > > > >> it
> > > >> > > > > >> > > > > >> didn't work with *representation* module.
> > Should i
> > > >> try
> > > >> > > with
> > > >> > > > > >> > > > > >> *representation *or this is fine?
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> Regards!
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> > > >> > hasan@apache.org>
> > > >> > > > > >> wrote:
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> > Hi Yusuf
> > > >> > > > > >> > > > > >> >
> > > >> > > > > >> > > > > >> > I'd be glad if you could try to fix
> tutorial 2
> > > as
> > > >> > well
> > > >> > > > > >> > > > > >> >
> > > >> > > > > >> >
> > > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > >> > > > > >> > > > > >> >
> > > >> > > > > >> > > > > >> > Best regards
> > > >> > > > > >> > > > > >> >
> > > >> > > > > >> > > > > >> > Hasan
> > > >> > > > > >> > > > > >> >
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >> --
> > > >> > > > > >> > > > > >> Yusuf
> > > >> > > > > >> > > > > >>
> > > >> > > > > >> > > > > >
> > > >> > > > > >> > > > >
> > > >> > > > > >> > > >
> > > >> > > > > >> > > >
> > > >> > > > > >> > > > --
> > > >> > > > > >> > > > Yusuf
> > > >> > > > > >> > > >
> > > >> > > > > >> > >
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > > >
> > >
> > > --
> > > Yusuf
> > >
> >
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Hello,
Thank you. I opened a PR on GitHub for tutorial module.
Best regards!

Yusuf Karadag

On Thu, Jun 3, 2021, 18:47 Hasan <ha...@apache.org> wrote:

> Hi Yusuf
>
> I'll ask Reto why the fix for jena.parser is not available in the maven
> central repo yet.
>
> Hasan
>
>
> On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> >  Hi again
> > I just forgot to ask something. What should I do in order to fix tutorial
> > 2? Can it be fixed without waiting for the new release of *jena.parser?
> *I
> > created a new module called *tutorial *and it's on my branch atm. But the
> > tutorial 2 and 3 are still giving
> > *[org.apache.clerezza.tutorial.Example02.main()]
> > INFO org.apache.clerezza.representation.Parser - constructing Parser*
> > *[org.apache.clerezza.tutorial.Example02.main()] WARN
> > org.apache.clerezza.tutorial.Example02 - text/turtle is not supported by
> > the used parser*
> >
> > Do you want me to create a PR to check and continue conversation from
> there
> > or should I wait until tutorial 2 is fixed?
> > Best regards!
> >
> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yusufkaradag1402@gmail.com
> >
> > wrote:
> >
> > > Hello Mr. Hasan
> > > Thank you for the schema.
> > > Regards!
> > >
> > > Yusuf Karadag
> > >
> > > On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
> > >
> > >> Hi Yusuf
> > >>
> > >> As mentioned, this is our artifact dependency diagram
> > >> parent
> > >>   +----> api
> > >>            +--> api-implementation
> > >>            |      +-----------------> representation
> > >>            |      |                     +-------------------->
> api.utils
> > >>            |      |
> > >> +-------->
> > >> jaxrs.rdf.providers
> > >>            |      +-----------------> sparql
> > >>            |      |                     +---------> dataset
> > >>            |      +-----------------> test.utils
> > >>            |                            +---------> dataset
> > >>            |                                          +------>
> api.utils
> > >>            +--> ontologies
> > >>                   +------------------------------------------>
> api.utils
> > >>
> > >> We also have these packages outside of Apache Clerezza, relevant for
> > your
> > >> task:
> > >> jena.commons
> > >> jena.facade
> > >> jena.parser
> > >> jena.serializer
> > >>
> > >> in github.com/clerezza
> > >>
> > >> Hasan
> > >>
> > >> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com>
> > >> wrote:
> > >>
> > >> > Hi Yusuf,
> > >> >
> > >> > Yes, we are waiting for you.
> > >> >
> > >> > Kind Regards,
> > >> > Furkan KAMACI
> > >> >
> > >> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> > >> yusufkaradag1402@gmail.com>
> > >> > wrote:
> > >> >
> > >> > > Hello!
> > >> > > Is the meeting now or in the evening?
> > >> > > Regards!
> > >> > >
> > >> > > Yusuf Karadag
> > >> > >
> > >> > > On Mon, May 31, 2021, 11:01 Furkan KAMACI <furkankamaci@gmail.com
> >
> > >> > wrote:
> > >> > >
> > >> > > > Hi,
> > >> > > >
> > >> > > > Since we have one week until the beginning of the coding period,
> > it
> > >> > would
> > >> > > > be nice to wrap up the things at the meeting.
> > >> > > >
> > >> > > > Hasan, could you share the meeting link?
> > >> > > >
> > >> > > > Kind Regards,
> > >> > > > Furkan KAMACI
> > >> > > >
> > >> > > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> > >> > > yusufkaradag1402@gmail.com
> > >> > > > >
> > >> > > > wrote:
> > >> > > >
> > >> > > > > I don't know whether you meant am or pm but I'm ok with both
> > time.
> > >> > > > > Regards!
> > >> > > > >
> > >> > > > > Yusuf Karadag
> > >> > > > >
> > >> > > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> > >> > yusufkaradag1402@gmail.com>
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > > > Hello,
> > >> > > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > >> > > > > > Regards!
> > >> > > > > >
> > >> > > > > > Yusuf Karadag
> > >> > > > > >
> > >> > > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <
> > xushan.chen@gmail.com>
> > >> > > wrote:
> > >> > > > > >
> > >> > > > > >> Hi Yusuf
> > >> > > > > >>
> > >> > > > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45
> > >> CEST or
> > >> > > Wed
> > >> > > > > >> 8:00
> > >> > > > > >> - 8:45 CEST
> > >> > > > > >> Which do you prefer?
> > >> > > > > >>
> > >> > > > > >> Hasan
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > >> > > > > >> yusufkaradag1402@gmail.com>
> > >> > > > > >> wrote:
> > >> > > > > >>
> > >> > > > > >> > Great, thank you so much.
> > >> > > > > >> > Regards!
> > >> > > > > >> >
> > >> > > > > >> > Yusuf Karadag
> > >> > > > > >> >
> > >> > > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <
> > >> xushan.chen@gmail.com>
> > >> > > > > wrote:
> > >> > > > > >> >
> > >> > > > > >> > > Hi Yusuf
> > >> > > > > >> > >
> > >> > > > > >> > > Yes, Reto has just released a new version of
> > jena.parser. I
> > >> > hope
> > >> > > > we
> > >> > > > > >> can
> > >> > > > > >> > use
> > >> > > > > >> > > that soon.
> > >> > > > > >> > > I think we can schedule a meeting next week. I'll try
> to
> > >> find
> > >> > > some
> > >> > > > > >> slots
> > >> > > > > >> > > next week.
> > >> > > > > >> > >
> > >> > > > > >> > > Hasan
> > >> > > > > >> > >
> > >> > > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > >> > > > > >> > yusufkaradag1402@gmail.com>
> > >> > > > > >> > > wrote:
> > >> > > > > >> > >
> > >> > > > > >> > > > Dear Mr. Hasan,
> > >> > > > > >> > > > Thank you for explaining to me. I am looking at to
> > >> > > > > >> > > > https://github.com/clerezza/jena.parser  and I see
> one
> > >> > class
> > >> > > > > >> > > > JenaParserProvider
> > >> > > > > >> > > > <
> > >> > > > > >> > > >
> > >> > > > > >> > >
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > >> > > > > >> > > > >
> > >> > > > > >> > > > which I can see implements the *ParsingProvider* in
> > >> > > > > *representation
> > >> > > > > >> > > > *module.
> > >> > > > > >> > > > So the first thing would be to release new versions?
> I
> > >> just
> > >> > > > > >> > > > didn't understand whether something was wrong or not
> > with
> > >> > the
> > >> > > > > >> modules
> > >> > > > > >> > in
> > >> > > > > >> > > > github.com/clerezza? From the second problemö we
> then
> > >> > should
> > >> > > > make
> > >> > > > > >> sure
> > >> > > > > >> > > > that
> > >> > > > > >> > > > the representation module and rdf.jena.parser library
> > use
> > >> > the
> > >> > > > same
> > >> > > > > >> > > versıon
> > >> > > > > >> > > > of slf4j? Also can we arrange a short meeting this
> week
> > >> or
> > >> > > next
> > >> > > > > week
> > >> > > > > >> > with
> > >> > > > > >> > > > the mentors to get to know each other and maybe to
> tell
> > >> more
> > >> > > > about
> > >> > > > > >> the
> > >> > > > > >> > > code
> > >> > > > > >> > > > and structure if that's not too much trouble? Just
> > >> getting a
> > >> > > > > little
> > >> > > > > >> bit
> > >> > > > > >> > > > confused about the old and new version/modules.
> > >> > > > > >> > > > Regards!
> > >> > > > > >> > > >
> > >> > > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > >> > > > > xushan.chen@gmail.com
> > >> > > > > >> >
> > >> > > > > >> > > > wrote:
> > >> > > > > >> > > >
> > >> > > > > >> > > > > Hi Yusuf
> > >> > > > > >> > > > >
> > >> > > > > >> > > > > There are two problems in tutorial 2:
> > >> > > > > >> > > > > 1. It uses a library outside of the Apache Clerezza
> > >> > project
> > >> > > > > called
> > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
> > >> > out-dated
> > >> > > > > >> version
> > >> > > > > >> > of
> > >> > > > > >> > > > > Apache Clerezza. The package
> > >> > > > org.apache.clerezza:rdf.jena.parser
> > >> > > > > >> is
> > >> > > > > >> > > > > maintained outside of
> > >> > > > > >> > > > > Apache Clerezza in github.com/clerezza by reto and
> > >> me. We
> > >> > > can
> > >> > > > > >> update
> > >> > > > > >> > > the
> > >> > > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use
> > the
> > >> > > current
> > >> > > > > >> > release
> > >> > > > > >> > > > > version of Apache Clerezza. You could help here as
> > >> well.
> > >> > You
> > >> > > > > could
> > >> > > > > >> > > study
> > >> > > > > >> > > > > the code and try to understand the relation of that
> > >> > package
> > >> > > > with
> > >> > > > > >> the
> > >> > > > > >> > > > > representation module.
> > >> > > > > >> > > > > The representation module is not implementing any
> > >> parser,
> > >> > It
> > >> > > > > >> > delegates
> > >> > > > > >> > > > the
> > >> > > > > >> > > > > parsing functionality to any registered
> > >> ParsingProvider.
> > >> > The
> > >> > > > > >> package
> > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing
> > >> that
> > >> > > > > >> > functionality.
> > >> > > > > >> > > > > Thus, we principally should use the representation
> > >> module
> > >> > as
> > >> > > > > well
> > >> > > > > >> as
> > >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > >> > > > > >> > > > > Let me know if you have any questions and whether
> you
> > >> > would
> > >> > > > like
> > >> > > > > >> to
> > >> > > > > >> > fix
> > >> > > > > >> > > > any
> > >> > > > > >> > > > > package in github.com/clerezza.
> > >> > > > > >> > > > >
> > >> > > > > >> > > > > 2. The multiple bindings problem of slf4j is due to
> > >> > > different
> > >> > > > > libs
> > >> > > > > >> > used
> > >> > > > > >> > > > by
> > >> > > > > >> > > > > the representation module and rdf.jena.parser
> > library.
> > >> > > > > >> > > > >
> > >> > > > > >> > > > > Cheers
> > >> > > > > >> > > > > Hasan
> > >> > > > > >> > > > >
> > >> > > > > >> > > > >
> > >> > > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > >> > > > > >> xushan.chen@gmail.com>
> > >> > > > > >> > > > > wrote:
> > >> > > > > >> > > > >
> > >> > > > > >> > > > > > Hi Yusuf
> > >> > > > > >> > > > > >
> > >> > > > > >> > > > > > Thx for the work. I'll have a look today or
> > tomorrow.
> > >> > > > > >> > > > > >
> > >> > > > > >> > > > > > Regarding the website, you don't yet have access
> to
> > >> the
> > >> > > > > >> repository.
> > >> > > > > >> > > So,
> > >> > > > > >> > > > > > I'll update it.
> > >> > > > > >> > > > > >
> > >> > > > > >> > > > > > Regards
> > >> > > > > >> > > > > > Hasan
> > >> > > > > >> > > > > >
> > >> > > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > >> > > > > >> > > > > yusufkaradag1402@gmail.com>
> > >> > > > > >> > > > > > wrote:
> > >> > > > > >> > > > > >
> > >> > > > > >> > > > > >> Hello!
> > >> > > > > >> > > > > >> So i've tried to run tutorial with
> *representation
> > >> > > *module.
> > >> > > > > >> But it
> > >> > > > > >> > > > kept
> > >> > > > > >> > > > > >> giving *null. *I've kept track of it and it's
> > >> giving in
> > >> > > > this
> > >> > > > > >> line
> > >> > > > > >> > of
> > >> > > > > >> > > > > >> *Parser.class:
> > >> > > > > >> > > > > >> *
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> ParsingProvider provider =
> > >> > > > > >> > > > > >>
> > >> > > > > >>
> > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> It can't get the provider and throws
> > >> > > > > >> > > > > >> *UnsupportedParsingFormatException.*
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> *and the output was:
> > >> > > > > >> > > > > >> [main] INFO
> > >> org.apache.clerezza.representation.Parser -
> > >> > > > > >> > constructing
> > >> > > > > >> > > > > >> Parser
> > >> > > > > >> > > > > >> [main] WARN
> > org.apache.clerezza.tutorial.Example02 -
> > >> > > > > >> text/turtle
> > >> > > > > >> > is
> > >> > > > > >> > > > > >> not supported by the used parser
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> *
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> Then I tried with the dependencies as written in
> > >> > Tutorial
> > >> > > > 2.
> > >> > > > > I
> > >> > > > > >> > moved
> > >> > > > > >> > > > > >> *example02.ttl *file under *resources *directory
> > of
> > >> > > module
> > >> > > > > and
> > >> > > > > >> > made
> > >> > > > > >> > > a
> > >> > > > > >> > > > > >> change in the code as:
> > >> > > > > >> > > > > >> package org.apache.clerezza.tutorial;
> > >> > > > > >> > > > > >> import
> > org.apache.clerezza.commons.rdf.Graph;import
> > >> > > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > >> > > > > >> > > > > >>
> > >> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> > >> > > > > >> > > > > >>
> > >> > > > > >>
> > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > >
> > >> > > > > >> > > >
> > >> > > > > >> > >
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > >> > > > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > >> > > > > >> > > > > >> import java.io.InputStream;import
> > >> java.util.Iterator;
> > >> > > > > >> > > > > >> public class Example02 {
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>     private static final Logger logger =
> > >> > > > > >> LoggerFactory.getLogger(
> > >> > > > > >> > > > > >> Example02.class );
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>     public static void main( String[] args ) {
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>         InputStream inputStream =
> > >> > > > > >> > > > > >>
> > >> Example02.class.getClassLoader().getResourceAsStream(
> > >> > > > > >> > > "example02.ttl"
> > >> > > > > >> > > > > >> );
> > >> > > > > >> > > > > >>         Parser parser = Parser.getInstance();
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>         try {
> > >> > > > > >> > > > > >>             Graph graph = parser.parse(
> > inputStream,
> > >> > > > > >> > > > > >> SupportedFormat.TURTLE );
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>             Iterator<Triple> iterator =
> > >> graph.filter(
> > >> > > null,
> > >> > > > > >> null,
> > >> > > > > >> > > null
> > >> > > > > >> > > > > );
> > >> > > > > >> > > > > >>             Triple triple;
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>             while ( iterator.hasNext() ) {
> > >> > > > > >> > > > > >>                 triple = iterator.next();
> > >> > > > > >> > > > > >>                 logger.info( String.format( "%s
> > %s
> > >> > %s",
> > >> > > > > >> > > > > >>
> > >>  triple.getSubject().toString(),
> > >> > > > > >> > > > > >>
> > >> >  triple.getPredicate().toString(),
> > >> > > > > >> > > > > >>
> > >>  triple.getObject().toString()
> > >> > > > > >> > > > > >>                 ) );
> > >> > > > > >> > > > > >>             }
> > >> > > > > >> > > > > >>         } catch ( UnsupportedFormatException ex
> )
> > {
> > >> > > > > >> > > > > >>             logger.warn( String.format( "%s is
> not
> > >> > > > supported
> > >> > > > > by
> > >> > > > > >> > the
> > >> > > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > >> > > > > >> > > > > >>         }
> > >> > > > > >> > > > > >>     }
> > >> > > > > >> > > > > >> }
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> And i got the output as:
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J
> > bindings.
> > >> > > > > >> > > > > >> SLF4J: Found binding in
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > >
> > >> > > > > >> > > >
> > >> > > > > >> > >
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > >> > > > > >> > > > > >> SLF4J: Found binding in
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > >
> > >> > > > > >> > > >
> > >> > > > > >> > >
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > >> > > > > >> > > > > >> SLF4J: See
> > >> > > > http://www.slf4j.org/codes.html#multiple_bindings
> > >> > > > > >> for
> > >> > > > > >> > an
> > >> > > > > >> > > > > >> explanation.
> > >> > > > > >> > > > > >> SLF4J: Actual binding is of type
> > >> > > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > >> > > > > >> > > > > >> [main] INFO
> > >> > > > > org.apache.clerezza.rdf.core.serializedform.Parser
> > >> > > > > >> -
> > >> > > > > >> > > > > >> constructing Parser
> > >> > > > > >> > > > > >> [main] INFO
> > org.apache.clerezza.tutorial.Example02 -
> > >> > > > > >> > > > > >>
> > >> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > >> > > > > >> > > > > >> <
> > >> > http://clerezza.apache.org/2017/01/example#hasFirstName
> > >> > > >
> > >> > > > > >> > > > > >> "Hasan"^^<
> http://www.w3.org/2001/XMLSchema#string
> > >
> > >> > > > > >> > > > > >> [main] INFO
> > org.apache.clerezza.tutorial.Example02 -
> > >> > > > > >> > > > > >>
> > >> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > >> > > > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA
> >
> > >> > > > > >> > > > > >> <
> > >> > http://clerezza.apache.org/2017/01/example#ClerezzaUser
> > >> > > >
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> I hope i managed to tell what i meant. Just a
> bit
> > >> > > confused
> > >> > > > > why
> > >> > > > > >> it
> > >> > > > > >> > > > > >> didn't work with *representation* module.
> Should i
> > >> try
> > >> > > with
> > >> > > > > >> > > > > >> *representation *or this is fine?
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> Regards!
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> > >> > hasan@apache.org>
> > >> > > > > >> wrote:
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> > Hi Yusuf
> > >> > > > > >> > > > > >> >
> > >> > > > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2
> > as
> > >> > well
> > >> > > > > >> > > > > >> >
> > >> > > > > >> >
> > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > >> > > > > >> > > > > >> >
> > >> > > > > >> > > > > >> > Best regards
> > >> > > > > >> > > > > >> >
> > >> > > > > >> > > > > >> > Hasan
> > >> > > > > >> > > > > >> >
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >> --
> > >> > > > > >> > > > > >> Yusuf
> > >> > > > > >> > > > > >>
> > >> > > > > >> > > > > >
> > >> > > > > >> > > > >
> > >> > > > > >> > > >
> > >> > > > > >> > > >
> > >> > > > > >> > > > --
> > >> > > > > >> > > > Yusuf
> > >> > > > > >> > > >
> > >> > > > > >> > >
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> >
> > --
> > Yusuf
> >
>

Re: Tutorial 2

Posted by Hasan <ha...@apache.org>.
Hi Yusuf

I'll ask Reto why the fix for jena.parser is not available in the maven
central repo yet.

Hasan


On Tue, Jun 1, 2021 at 10:11 AM Yusuf Karadağ <yu...@gmail.com>
wrote:

>  Hi again
> I just forgot to ask something. What should I do in order to fix tutorial
> 2? Can it be fixed without waiting for the new release of *jena.parser? *I
> created a new module called *tutorial *and it's on my branch atm. But the
> tutorial 2 and 3 are still giving
> *[org.apache.clerezza.tutorial.Example02.main()]
> INFO org.apache.clerezza.representation.Parser - constructing Parser*
> *[org.apache.clerezza.tutorial.Example02.main()] WARN
> org.apache.clerezza.tutorial.Example02 - text/turtle is not supported by
> the used parser*
>
> Do you want me to create a PR to check and continue conversation from there
> or should I wait until tutorial 2 is fixed?
> Best regards!
>
> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello Mr. Hasan
> > Thank you for the schema.
> > Regards!
> >
> > Yusuf Karadag
> >
> > On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
> >
> >> Hi Yusuf
> >>
> >> As mentioned, this is our artifact dependency diagram
> >> parent
> >>   +----> api
> >>            +--> api-implementation
> >>            |      +-----------------> representation
> >>            |      |                     +--------------------> api.utils
> >>            |      |
> >> +-------->
> >> jaxrs.rdf.providers
> >>            |      +-----------------> sparql
> >>            |      |                     +---------> dataset
> >>            |      +-----------------> test.utils
> >>            |                            +---------> dataset
> >>            |                                          +------> api.utils
> >>            +--> ontologies
> >>                   +------------------------------------------> api.utils
> >>
> >> We also have these packages outside of Apache Clerezza, relevant for
> your
> >> task:
> >> jena.commons
> >> jena.facade
> >> jena.parser
> >> jena.serializer
> >>
> >> in github.com/clerezza
> >>
> >> Hasan
> >>
> >> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com>
> >> wrote:
> >>
> >> > Hi Yusuf,
> >> >
> >> > Yes, we are waiting for you.
> >> >
> >> > Kind Regards,
> >> > Furkan KAMACI
> >> >
> >> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
> >> yusufkaradag1402@gmail.com>
> >> > wrote:
> >> >
> >> > > Hello!
> >> > > Is the meeting now or in the evening?
> >> > > Regards!
> >> > >
> >> > > Yusuf Karadag
> >> > >
> >> > > On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
> >> > wrote:
> >> > >
> >> > > > Hi,
> >> > > >
> >> > > > Since we have one week until the beginning of the coding period,
> it
> >> > would
> >> > > > be nice to wrap up the things at the meeting.
> >> > > >
> >> > > > Hasan, could you share the meeting link?
> >> > > >
> >> > > > Kind Regards,
> >> > > > Furkan KAMACI
> >> > > >
> >> > > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> >> > > yusufkaradag1402@gmail.com
> >> > > > >
> >> > > > wrote:
> >> > > >
> >> > > > > I don't know whether you meant am or pm but I'm ok with both
> time.
> >> > > > > Regards!
> >> > > > >
> >> > > > > Yusuf Karadag
> >> > > > >
> >> > > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> >> > yusufkaradag1402@gmail.com>
> >> > > > > wrote:
> >> > > > >
> >> > > > > > Hello,
> >> > > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> >> > > > > > Regards!
> >> > > > > >
> >> > > > > > Yusuf Karadag
> >> > > > > >
> >> > > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <
> xushan.chen@gmail.com>
> >> > > wrote:
> >> > > > > >
> >> > > > > >> Hi Yusuf
> >> > > > > >>
> >> > > > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45
> >> CEST or
> >> > > Wed
> >> > > > > >> 8:00
> >> > > > > >> - 8:45 CEST
> >> > > > > >> Which do you prefer?
> >> > > > > >>
> >> > > > > >> Hasan
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> >> > > > > >> yusufkaradag1402@gmail.com>
> >> > > > > >> wrote:
> >> > > > > >>
> >> > > > > >> > Great, thank you so much.
> >> > > > > >> > Regards!
> >> > > > > >> >
> >> > > > > >> > Yusuf Karadag
> >> > > > > >> >
> >> > > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <
> >> xushan.chen@gmail.com>
> >> > > > > wrote:
> >> > > > > >> >
> >> > > > > >> > > Hi Yusuf
> >> > > > > >> > >
> >> > > > > >> > > Yes, Reto has just released a new version of
> jena.parser. I
> >> > hope
> >> > > > we
> >> > > > > >> can
> >> > > > > >> > use
> >> > > > > >> > > that soon.
> >> > > > > >> > > I think we can schedule a meeting next week. I'll try to
> >> find
> >> > > some
> >> > > > > >> slots
> >> > > > > >> > > next week.
> >> > > > > >> > >
> >> > > > > >> > > Hasan
> >> > > > > >> > >
> >> > > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> >> > > > > >> > yusufkaradag1402@gmail.com>
> >> > > > > >> > > wrote:
> >> > > > > >> > >
> >> > > > > >> > > > Dear Mr. Hasan,
> >> > > > > >> > > > Thank you for explaining to me. I am looking at to
> >> > > > > >> > > > https://github.com/clerezza/jena.parser  and I see one
> >> > class
> >> > > > > >> > > > JenaParserProvider
> >> > > > > >> > > > <
> >> > > > > >> > > >
> >> > > > > >> > >
> >> > > > > >> >
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> >> > > > > >> > > > >
> >> > > > > >> > > > which I can see implements the *ParsingProvider* in
> >> > > > > *representation
> >> > > > > >> > > > *module.
> >> > > > > >> > > > So the first thing would be to release new versions? I
> >> just
> >> > > > > >> > > > didn't understand whether something was wrong or not
> with
> >> > the
> >> > > > > >> modules
> >> > > > > >> > in
> >> > > > > >> > > > github.com/clerezza? From the second problemö we then
> >> > should
> >> > > > make
> >> > > > > >> sure
> >> > > > > >> > > > that
> >> > > > > >> > > > the representation module and rdf.jena.parser library
> use
> >> > the
> >> > > > same
> >> > > > > >> > > versıon
> >> > > > > >> > > > of slf4j? Also can we arrange a short meeting this week
> >> or
> >> > > next
> >> > > > > week
> >> > > > > >> > with
> >> > > > > >> > > > the mentors to get to know each other and maybe to tell
> >> more
> >> > > > about
> >> > > > > >> the
> >> > > > > >> > > code
> >> > > > > >> > > > and structure if that's not too much trouble? Just
> >> getting a
> >> > > > > little
> >> > > > > >> bit
> >> > > > > >> > > > confused about the old and new version/modules.
> >> > > > > >> > > > Regards!
> >> > > > > >> > > >
> >> > > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> >> > > > > xushan.chen@gmail.com
> >> > > > > >> >
> >> > > > > >> > > > wrote:
> >> > > > > >> > > >
> >> > > > > >> > > > > Hi Yusuf
> >> > > > > >> > > > >
> >> > > > > >> > > > > There are two problems in tutorial 2:
> >> > > > > >> > > > > 1. It uses a library outside of the Apache Clerezza
> >> > project
> >> > > > > called
> >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
> >> > out-dated
> >> > > > > >> version
> >> > > > > >> > of
> >> > > > > >> > > > > Apache Clerezza. The package
> >> > > > org.apache.clerezza:rdf.jena.parser
> >> > > > > >> is
> >> > > > > >> > > > > maintained outside of
> >> > > > > >> > > > > Apache Clerezza in github.com/clerezza by reto and
> >> me. We
> >> > > can
> >> > > > > >> update
> >> > > > > >> > > the
> >> > > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use
> the
> >> > > current
> >> > > > > >> > release
> >> > > > > >> > > > > version of Apache Clerezza. You could help here as
> >> well.
> >> > You
> >> > > > > could
> >> > > > > >> > > study
> >> > > > > >> > > > > the code and try to understand the relation of that
> >> > package
> >> > > > with
> >> > > > > >> the
> >> > > > > >> > > > > representation module.
> >> > > > > >> > > > > The representation module is not implementing any
> >> parser,
> >> > It
> >> > > > > >> > delegates
> >> > > > > >> > > > the
> >> > > > > >> > > > > parsing functionality to any registered
> >> ParsingProvider.
> >> > The
> >> > > > > >> package
> >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing
> >> that
> >> > > > > >> > functionality.
> >> > > > > >> > > > > Thus, we principally should use the representation
> >> module
> >> > as
> >> > > > > well
> >> > > > > >> as
> >> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> >> > > > > >> > > > > Let me know if you have any questions and whether you
> >> > would
> >> > > > like
> >> > > > > >> to
> >> > > > > >> > fix
> >> > > > > >> > > > any
> >> > > > > >> > > > > package in github.com/clerezza.
> >> > > > > >> > > > >
> >> > > > > >> > > > > 2. The multiple bindings problem of slf4j is due to
> >> > > different
> >> > > > > libs
> >> > > > > >> > used
> >> > > > > >> > > > by
> >> > > > > >> > > > > the representation module and rdf.jena.parser
> library.
> >> > > > > >> > > > >
> >> > > > > >> > > > > Cheers
> >> > > > > >> > > > > Hasan
> >> > > > > >> > > > >
> >> > > > > >> > > > >
> >> > > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> >> > > > > >> xushan.chen@gmail.com>
> >> > > > > >> > > > > wrote:
> >> > > > > >> > > > >
> >> > > > > >> > > > > > Hi Yusuf
> >> > > > > >> > > > > >
> >> > > > > >> > > > > > Thx for the work. I'll have a look today or
> tomorrow.
> >> > > > > >> > > > > >
> >> > > > > >> > > > > > Regarding the website, you don't yet have access to
> >> the
> >> > > > > >> repository.
> >> > > > > >> > > So,
> >> > > > > >> > > > > > I'll update it.
> >> > > > > >> > > > > >
> >> > > > > >> > > > > > Regards
> >> > > > > >> > > > > > Hasan
> >> > > > > >> > > > > >
> >> > > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> >> > > > > >> > > > > yusufkaradag1402@gmail.com>
> >> > > > > >> > > > > > wrote:
> >> > > > > >> > > > > >
> >> > > > > >> > > > > >> Hello!
> >> > > > > >> > > > > >> So i've tried to run tutorial with *representation
> >> > > *module.
> >> > > > > >> But it
> >> > > > > >> > > > kept
> >> > > > > >> > > > > >> giving *null. *I've kept track of it and it's
> >> giving in
> >> > > > this
> >> > > > > >> line
> >> > > > > >> > of
> >> > > > > >> > > > > >> *Parser.class:
> >> > > > > >> > > > > >> *
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> ParsingProvider provider =
> >> > > > > >> > > > > >>
> >> > > > > >>
> >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> It can't get the provider and throws
> >> > > > > >> > > > > >> *UnsupportedParsingFormatException.*
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> *and the output was:
> >> > > > > >> > > > > >> [main] INFO
> >> org.apache.clerezza.representation.Parser -
> >> > > > > >> > constructing
> >> > > > > >> > > > > >> Parser
> >> > > > > >> > > > > >> [main] WARN
> org.apache.clerezza.tutorial.Example02 -
> >> > > > > >> text/turtle
> >> > > > > >> > is
> >> > > > > >> > > > > >> not supported by the used parser
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> *
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> Then I tried with the dependencies as written in
> >> > Tutorial
> >> > > > 2.
> >> > > > > I
> >> > > > > >> > moved
> >> > > > > >> > > > > >> *example02.ttl *file under *resources *directory
> of
> >> > > module
> >> > > > > and
> >> > > > > >> > made
> >> > > > > >> > > a
> >> > > > > >> > > > > >> change in the code as:
> >> > > > > >> > > > > >> package org.apache.clerezza.tutorial;
> >> > > > > >> > > > > >> import
> org.apache.clerezza.commons.rdf.Graph;import
> >> > > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> >> > > > > >> > > > > >>
> >> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> >> > > > > >> > > > > >>
> >> > > > > >>
> >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > >
> >> > > > > >> > > >
> >> > > > > >> > >
> >> > > > > >> >
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> >> > > > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> >> > > > > >> > > > > >> import java.io.InputStream;import
> >> java.util.Iterator;
> >> > > > > >> > > > > >> public class Example02 {
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>     private static final Logger logger =
> >> > > > > >> LoggerFactory.getLogger(
> >> > > > > >> > > > > >> Example02.class );
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>     public static void main( String[] args ) {
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>         InputStream inputStream =
> >> > > > > >> > > > > >>
> >> Example02.class.getClassLoader().getResourceAsStream(
> >> > > > > >> > > "example02.ttl"
> >> > > > > >> > > > > >> );
> >> > > > > >> > > > > >>         Parser parser = Parser.getInstance();
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>         try {
> >> > > > > >> > > > > >>             Graph graph = parser.parse(
> inputStream,
> >> > > > > >> > > > > >> SupportedFormat.TURTLE );
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>             Iterator<Triple> iterator =
> >> graph.filter(
> >> > > null,
> >> > > > > >> null,
> >> > > > > >> > > null
> >> > > > > >> > > > > );
> >> > > > > >> > > > > >>             Triple triple;
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>             while ( iterator.hasNext() ) {
> >> > > > > >> > > > > >>                 triple = iterator.next();
> >> > > > > >> > > > > >>                 logger.info( String.format( "%s
> %s
> >> > %s",
> >> > > > > >> > > > > >>
> >>  triple.getSubject().toString(),
> >> > > > > >> > > > > >>
> >> >  triple.getPredicate().toString(),
> >> > > > > >> > > > > >>
> >>  triple.getObject().toString()
> >> > > > > >> > > > > >>                 ) );
> >> > > > > >> > > > > >>             }
> >> > > > > >> > > > > >>         } catch ( UnsupportedFormatException ex )
> {
> >> > > > > >> > > > > >>             logger.warn( String.format( "%s is not
> >> > > > supported
> >> > > > > by
> >> > > > > >> > the
> >> > > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> >> > > > > >> > > > > >>         }
> >> > > > > >> > > > > >>     }
> >> > > > > >> > > > > >> }
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> And i got the output as:
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J
> bindings.
> >> > > > > >> > > > > >> SLF4J: Found binding in
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > >
> >> > > > > >> > > >
> >> > > > > >> > >
> >> > > > > >> >
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >> > > > > >> > > > > >> SLF4J: Found binding in
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > >
> >> > > > > >> > > >
> >> > > > > >> > >
> >> > > > > >> >
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >> > > > > >> > > > > >> SLF4J: See
> >> > > > http://www.slf4j.org/codes.html#multiple_bindings
> >> > > > > >> for
> >> > > > > >> > an
> >> > > > > >> > > > > >> explanation.
> >> > > > > >> > > > > >> SLF4J: Actual binding is of type
> >> > > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> >> > > > > >> > > > > >> [main] INFO
> >> > > > > org.apache.clerezza.rdf.core.serializedform.Parser
> >> > > > > >> -
> >> > > > > >> > > > > >> constructing Parser
> >> > > > > >> > > > > >> [main] INFO
> org.apache.clerezza.tutorial.Example02 -
> >> > > > > >> > > > > >>
> >> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >> > > > > >> > > > > >> <
> >> > http://clerezza.apache.org/2017/01/example#hasFirstName
> >> > > >
> >> > > > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string
> >
> >> > > > > >> > > > > >> [main] INFO
> org.apache.clerezza.tutorial.Example02 -
> >> > > > > >> > > > > >>
> >> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >> > > > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> >> > > > > >> > > > > >> <
> >> > http://clerezza.apache.org/2017/01/example#ClerezzaUser
> >> > > >
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
> >> > > confused
> >> > > > > why
> >> > > > > >> it
> >> > > > > >> > > > > >> didn't work with *representation* module. Should i
> >> try
> >> > > with
> >> > > > > >> > > > > >> *representation *or this is fine?
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> Regards!
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> >> > hasan@apache.org>
> >> > > > > >> wrote:
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> > Hi Yusuf
> >> > > > > >> > > > > >> >
> >> > > > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2
> as
> >> > well
> >> > > > > >> > > > > >> >
> >> > > > > >> >
> >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> >> > > > > >> > > > > >> >
> >> > > > > >> > > > > >> > Best regards
> >> > > > > >> > > > > >> >
> >> > > > > >> > > > > >> > Hasan
> >> > > > > >> > > > > >> >
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >> --
> >> > > > > >> > > > > >> Yusuf
> >> > > > > >> > > > > >>
> >> > > > > >> > > > > >
> >> > > > > >> > > > >
> >> > > > > >> > > >
> >> > > > > >> > > >
> >> > > > > >> > > > --
> >> > > > > >> > > > Yusuf
> >> > > > > >> > > >
> >> > > > > >> > >
> >> > > > > >> >
> >> > > > > >>
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> >
>
> --
> Yusuf
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
 Hi again
I just forgot to ask something. What should I do in order to fix tutorial
2? Can it be fixed without waiting for the new release of *jena.parser? *I
created a new module called *tutorial *and it's on my branch atm. But the
tutorial 2 and 3 are still giving
*[org.apache.clerezza.tutorial.Example02.main()]
INFO org.apache.clerezza.representation.Parser - constructing Parser*
*[org.apache.clerezza.tutorial.Example02.main()] WARN
org.apache.clerezza.tutorial.Example02 - text/turtle is not supported by
the used parser*

Do you want me to create a PR to check and continue conversation from there
or should I wait until tutorial 2 is fixed?
Best regards!

On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Hello Mr. Hasan
> Thank you for the schema.
> Regards!
>
> Yusuf Karadag
>
> On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:
>
>> Hi Yusuf
>>
>> As mentioned, this is our artifact dependency diagram
>> parent
>>   +----> api
>>            +--> api-implementation
>>            |      +-----------------> representation
>>            |      |                     +--------------------> api.utils
>>            |      |
>> +-------->
>> jaxrs.rdf.providers
>>            |      +-----------------> sparql
>>            |      |                     +---------> dataset
>>            |      +-----------------> test.utils
>>            |                            +---------> dataset
>>            |                                          +------> api.utils
>>            +--> ontologies
>>                   +------------------------------------------> api.utils
>>
>> We also have these packages outside of Apache Clerezza, relevant for your
>> task:
>> jena.commons
>> jena.facade
>> jena.parser
>> jena.serializer
>>
>> in github.com/clerezza
>>
>> Hasan
>>
>> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com>
>> wrote:
>>
>> > Hi Yusuf,
>> >
>> > Yes, we are waiting for you.
>> >
>> > Kind Regards,
>> > Furkan KAMACI
>> >
>> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <
>> yusufkaradag1402@gmail.com>
>> > wrote:
>> >
>> > > Hello!
>> > > Is the meeting now or in the evening?
>> > > Regards!
>> > >
>> > > Yusuf Karadag
>> > >
>> > > On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
>> > wrote:
>> > >
>> > > > Hi,
>> > > >
>> > > > Since we have one week until the beginning of the coding period, it
>> > would
>> > > > be nice to wrap up the things at the meeting.
>> > > >
>> > > > Hasan, could you share the meeting link?
>> > > >
>> > > > Kind Regards,
>> > > > Furkan KAMACI
>> > > >
>> > > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
>> > > yusufkaradag1402@gmail.com
>> > > > >
>> > > > wrote:
>> > > >
>> > > > > I don't know whether you meant am or pm but I'm ok with both time.
>> > > > > Regards!
>> > > > >
>> > > > > Yusuf Karadag
>> > > > >
>> > > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
>> > yusufkaradag1402@gmail.com>
>> > > > > wrote:
>> > > > >
>> > > > > > Hello,
>> > > > > > Tomorrow(Tuesday) 8 am would be ok for me.
>> > > > > > Regards!
>> > > > > >
>> > > > > > Yusuf Karadag
>> > > > > >
>> > > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com>
>> > > wrote:
>> > > > > >
>> > > > > >> Hi Yusuf
>> > > > > >>
>> > > > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45
>> CEST or
>> > > Wed
>> > > > > >> 8:00
>> > > > > >> - 8:45 CEST
>> > > > > >> Which do you prefer?
>> > > > > >>
>> > > > > >> Hasan
>> > > > > >>
>> > > > > >>
>> > > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
>> > > > > >> yusufkaradag1402@gmail.com>
>> > > > > >> wrote:
>> > > > > >>
>> > > > > >> > Great, thank you so much.
>> > > > > >> > Regards!
>> > > > > >> >
>> > > > > >> > Yusuf Karadag
>> > > > > >> >
>> > > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <
>> xushan.chen@gmail.com>
>> > > > > wrote:
>> > > > > >> >
>> > > > > >> > > Hi Yusuf
>> > > > > >> > >
>> > > > > >> > > Yes, Reto has just released a new version of jena.parser. I
>> > hope
>> > > > we
>> > > > > >> can
>> > > > > >> > use
>> > > > > >> > > that soon.
>> > > > > >> > > I think we can schedule a meeting next week. I'll try to
>> find
>> > > some
>> > > > > >> slots
>> > > > > >> > > next week.
>> > > > > >> > >
>> > > > > >> > > Hasan
>> > > > > >> > >
>> > > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
>> > > > > >> > yusufkaradag1402@gmail.com>
>> > > > > >> > > wrote:
>> > > > > >> > >
>> > > > > >> > > > Dear Mr. Hasan,
>> > > > > >> > > > Thank you for explaining to me. I am looking at to
>> > > > > >> > > > https://github.com/clerezza/jena.parser  and I see one
>> > class
>> > > > > >> > > > JenaParserProvider
>> > > > > >> > > > <
>> > > > > >> > > >
>> > > > > >> > >
>> > > > > >> >
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
>> > > > > >> > > > >
>> > > > > >> > > > which I can see implements the *ParsingProvider* in
>> > > > > *representation
>> > > > > >> > > > *module.
>> > > > > >> > > > So the first thing would be to release new versions? I
>> just
>> > > > > >> > > > didn't understand whether something was wrong or not with
>> > the
>> > > > > >> modules
>> > > > > >> > in
>> > > > > >> > > > github.com/clerezza? From the second problemö we then
>> > should
>> > > > make
>> > > > > >> sure
>> > > > > >> > > > that
>> > > > > >> > > > the representation module and rdf.jena.parser library use
>> > the
>> > > > same
>> > > > > >> > > versıon
>> > > > > >> > > > of slf4j? Also can we arrange a short meeting this week
>> or
>> > > next
>> > > > > week
>> > > > > >> > with
>> > > > > >> > > > the mentors to get to know each other and maybe to tell
>> more
>> > > > about
>> > > > > >> the
>> > > > > >> > > code
>> > > > > >> > > > and structure if that's not too much trouble? Just
>> getting a
>> > > > > little
>> > > > > >> bit
>> > > > > >> > > > confused about the old and new version/modules.
>> > > > > >> > > > Regards!
>> > > > > >> > > >
>> > > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
>> > > > > xushan.chen@gmail.com
>> > > > > >> >
>> > > > > >> > > > wrote:
>> > > > > >> > > >
>> > > > > >> > > > > Hi Yusuf
>> > > > > >> > > > >
>> > > > > >> > > > > There are two problems in tutorial 2:
>> > > > > >> > > > > 1. It uses a library outside of the Apache Clerezza
>> > project
>> > > > > called
>> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
>> > out-dated
>> > > > > >> version
>> > > > > >> > of
>> > > > > >> > > > > Apache Clerezza. The package
>> > > > org.apache.clerezza:rdf.jena.parser
>> > > > > >> is
>> > > > > >> > > > > maintained outside of
>> > > > > >> > > > > Apache Clerezza in github.com/clerezza by reto and
>> me. We
>> > > can
>> > > > > >> update
>> > > > > >> > > the
>> > > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the
>> > > current
>> > > > > >> > release
>> > > > > >> > > > > version of Apache Clerezza. You could help here as
>> well.
>> > You
>> > > > > could
>> > > > > >> > > study
>> > > > > >> > > > > the code and try to understand the relation of that
>> > package
>> > > > with
>> > > > > >> the
>> > > > > >> > > > > representation module.
>> > > > > >> > > > > The representation module is not implementing any
>> parser,
>> > It
>> > > > > >> > delegates
>> > > > > >> > > > the
>> > > > > >> > > > > parsing functionality to any registered
>> ParsingProvider.
>> > The
>> > > > > >> package
>> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing
>> that
>> > > > > >> > functionality.
>> > > > > >> > > > > Thus, we principally should use the representation
>> module
>> > as
>> > > > > well
>> > > > > >> as
>> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
>> > > > > >> > > > > Let me know if you have any questions and whether you
>> > would
>> > > > like
>> > > > > >> to
>> > > > > >> > fix
>> > > > > >> > > > any
>> > > > > >> > > > > package in github.com/clerezza.
>> > > > > >> > > > >
>> > > > > >> > > > > 2. The multiple bindings problem of slf4j is due to
>> > > different
>> > > > > libs
>> > > > > >> > used
>> > > > > >> > > > by
>> > > > > >> > > > > the representation module and rdf.jena.parser library.
>> > > > > >> > > > >
>> > > > > >> > > > > Cheers
>> > > > > >> > > > > Hasan
>> > > > > >> > > > >
>> > > > > >> > > > >
>> > > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
>> > > > > >> xushan.chen@gmail.com>
>> > > > > >> > > > > wrote:
>> > > > > >> > > > >
>> > > > > >> > > > > > Hi Yusuf
>> > > > > >> > > > > >
>> > > > > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
>> > > > > >> > > > > >
>> > > > > >> > > > > > Regarding the website, you don't yet have access to
>> the
>> > > > > >> repository.
>> > > > > >> > > So,
>> > > > > >> > > > > > I'll update it.
>> > > > > >> > > > > >
>> > > > > >> > > > > > Regards
>> > > > > >> > > > > > Hasan
>> > > > > >> > > > > >
>> > > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
>> > > > > >> > > > > yusufkaradag1402@gmail.com>
>> > > > > >> > > > > > wrote:
>> > > > > >> > > > > >
>> > > > > >> > > > > >> Hello!
>> > > > > >> > > > > >> So i've tried to run tutorial with *representation
>> > > *module.
>> > > > > >> But it
>> > > > > >> > > > kept
>> > > > > >> > > > > >> giving *null. *I've kept track of it and it's
>> giving in
>> > > > this
>> > > > > >> line
>> > > > > >> > of
>> > > > > >> > > > > >> *Parser.class:
>> > > > > >> > > > > >> *
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> ParsingProvider provider =
>> > > > > >> > > > > >>
>> > > > > >>
>> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> It can't get the provider and throws
>> > > > > >> > > > > >> *UnsupportedParsingFormatException.*
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> *and the output was:
>> > > > > >> > > > > >> [main] INFO
>> org.apache.clerezza.representation.Parser -
>> > > > > >> > constructing
>> > > > > >> > > > > >> Parser
>> > > > > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
>> > > > > >> text/turtle
>> > > > > >> > is
>> > > > > >> > > > > >> not supported by the used parser
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> *
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> Then I tried with the dependencies as written in
>> > Tutorial
>> > > > 2.
>> > > > > I
>> > > > > >> > moved
>> > > > > >> > > > > >> *example02.ttl *file under *resources *directory of
>> > > module
>> > > > > and
>> > > > > >> > made
>> > > > > >> > > a
>> > > > > >> > > > > >> change in the code as:
>> > > > > >> > > > > >> package org.apache.clerezza.tutorial;
>> > > > > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
>> > > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
>> > > > > >> > > > > >>
>> > org.apache.clerezza.rdf.core.serializedform.Parser;import
>> > > > > >> > > > > >>
>> > > > > >>
>> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > >
>> > > > > >> > > >
>> > > > > >> > >
>> > > > > >> >
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
>> > > > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
>> > > > > >> > > > > >> import java.io.InputStream;import
>> java.util.Iterator;
>> > > > > >> > > > > >> public class Example02 {
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>     private static final Logger logger =
>> > > > > >> LoggerFactory.getLogger(
>> > > > > >> > > > > >> Example02.class );
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>     public static void main( String[] args ) {
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>         InputStream inputStream =
>> > > > > >> > > > > >>
>> Example02.class.getClassLoader().getResourceAsStream(
>> > > > > >> > > "example02.ttl"
>> > > > > >> > > > > >> );
>> > > > > >> > > > > >>         Parser parser = Parser.getInstance();
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>         try {
>> > > > > >> > > > > >>             Graph graph = parser.parse( inputStream,
>> > > > > >> > > > > >> SupportedFormat.TURTLE );
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>             Iterator<Triple> iterator =
>> graph.filter(
>> > > null,
>> > > > > >> null,
>> > > > > >> > > null
>> > > > > >> > > > > );
>> > > > > >> > > > > >>             Triple triple;
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>             while ( iterator.hasNext() ) {
>> > > > > >> > > > > >>                 triple = iterator.next();
>> > > > > >> > > > > >>                 logger.info( String.format( "%s %s
>> > %s",
>> > > > > >> > > > > >>
>>  triple.getSubject().toString(),
>> > > > > >> > > > > >>
>> >  triple.getPredicate().toString(),
>> > > > > >> > > > > >>
>>  triple.getObject().toString()
>> > > > > >> > > > > >>                 ) );
>> > > > > >> > > > > >>             }
>> > > > > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
>> > > > > >> > > > > >>             logger.warn( String.format( "%s is not
>> > > > supported
>> > > > > by
>> > > > > >> > the
>> > > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
>> > > > > >> > > > > >>         }
>> > > > > >> > > > > >>     }
>> > > > > >> > > > > >> }
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> And i got the output as:
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
>> > > > > >> > > > > >> SLF4J: Found binding in
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > >
>> > > > > >> > > >
>> > > > > >> > >
>> > > > > >> >
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> > > > > >> > > > > >> SLF4J: Found binding in
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > >
>> > > > > >> > > >
>> > > > > >> > >
>> > > > > >> >
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> > > > > >> > > > > >> SLF4J: See
>> > > > http://www.slf4j.org/codes.html#multiple_bindings
>> > > > > >> for
>> > > > > >> > an
>> > > > > >> > > > > >> explanation.
>> > > > > >> > > > > >> SLF4J: Actual binding is of type
>> > > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
>> > > > > >> > > > > >> [main] INFO
>> > > > > org.apache.clerezza.rdf.core.serializedform.Parser
>> > > > > >> -
>> > > > > >> > > > > >> constructing Parser
>> > > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> > > > > >> > > > > >>
>> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> > > > > >> > > > > >> <
>> > http://clerezza.apache.org/2017/01/example#hasFirstName
>> > > >
>> > > > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
>> > > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> > > > > >> > > > > >>
>> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> > > > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
>> > > > > >> > > > > >> <
>> > http://clerezza.apache.org/2017/01/example#ClerezzaUser
>> > > >
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
>> > > confused
>> > > > > why
>> > > > > >> it
>> > > > > >> > > > > >> didn't work with *representation* module. Should i
>> try
>> > > with
>> > > > > >> > > > > >> *representation *or this is fine?
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> Regards!
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
>> > hasan@apache.org>
>> > > > > >> wrote:
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> > Hi Yusuf
>> > > > > >> > > > > >> >
>> > > > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as
>> > well
>> > > > > >> > > > > >> >
>> > > > > >> >
>> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>> > > > > >> > > > > >> >
>> > > > > >> > > > > >> > Best regards
>> > > > > >> > > > > >> >
>> > > > > >> > > > > >> > Hasan
>> > > > > >> > > > > >> >
>> > > > > >> > > > > >>
>> > > > > >> > > > > >>
>> > > > > >> > > > > >> --
>> > > > > >> > > > > >> Yusuf
>> > > > > >> > > > > >>
>> > > > > >> > > > > >
>> > > > > >> > > > >
>> > > > > >> > > >
>> > > > > >> > > >
>> > > > > >> > > > --
>> > > > > >> > > > Yusuf
>> > > > > >> > > >
>> > > > > >> > >
>> > > > > >> >
>> > > > > >>
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>

-- 
Yusuf

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Hello Mr. Hasan
Thank you for the schema.
Regards!

Yusuf Karadag

On Tue, Jun 1, 2021, 08:54 Hasan <ha...@apache.org> wrote:

> Hi Yusuf
>
> As mentioned, this is our artifact dependency diagram
> parent
>   +----> api
>            +--> api-implementation
>            |      +-----------------> representation
>            |      |                     +--------------------> api.utils
>            |      |                                              +-------->
> jaxrs.rdf.providers
>            |      +-----------------> sparql
>            |      |                     +---------> dataset
>            |      +-----------------> test.utils
>            |                            +---------> dataset
>            |                                          +------> api.utils
>            +--> ontologies
>                   +------------------------------------------> api.utils
>
> We also have these packages outside of Apache Clerezza, relevant for your
> task:
> jena.commons
> jena.facade
> jena.parser
> jena.serializer
>
> in github.com/clerezza
>
> Hasan
>
> On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com>
> wrote:
>
> > Hi Yusuf,
> >
> > Yes, we are waiting for you.
> >
> > Kind Regards,
> > Furkan KAMACI
> >
> > On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yusufkaradag1402@gmail.com
> >
> > wrote:
> >
> > > Hello!
> > > Is the meeting now or in the evening?
> > > Regards!
> > >
> > > Yusuf Karadag
> > >
> > > On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
> > wrote:
> > >
> > > > Hi,
> > > >
> > > > Since we have one week until the beginning of the coding period, it
> > would
> > > > be nice to wrap up the things at the meeting.
> > > >
> > > > Hasan, could you share the meeting link?
> > > >
> > > > Kind Regards,
> > > > Furkan KAMACI
> > > >
> > > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> > > yusufkaradag1402@gmail.com
> > > > >
> > > > wrote:
> > > >
> > > > > I don't know whether you meant am or pm but I'm ok with both time.
> > > > > Regards!
> > > > >
> > > > > Yusuf Karadag
> > > > >
> > > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> > yusufkaradag1402@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hello,
> > > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > > > > Regards!
> > > > > >
> > > > > > Yusuf Karadag
> > > > > >
> > > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com>
> > > wrote:
> > > > > >
> > > > > >> Hi Yusuf
> > > > > >>
> > > > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST
> or
> > > Wed
> > > > > >> 8:00
> > > > > >> - 8:45 CEST
> > > > > >> Which do you prefer?
> > > > > >>
> > > > > >> Hasan
> > > > > >>
> > > > > >>
> > > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > > > > >> yusufkaradag1402@gmail.com>
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Great, thank you so much.
> > > > > >> > Regards!
> > > > > >> >
> > > > > >> > Yusuf Karadag
> > > > > >> >
> > > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <
> xushan.chen@gmail.com>
> > > > > wrote:
> > > > > >> >
> > > > > >> > > Hi Yusuf
> > > > > >> > >
> > > > > >> > > Yes, Reto has just released a new version of jena.parser. I
> > hope
> > > > we
> > > > > >> can
> > > > > >> > use
> > > > > >> > > that soon.
> > > > > >> > > I think we can schedule a meeting next week. I'll try to
> find
> > > some
> > > > > >> slots
> > > > > >> > > next week.
> > > > > >> > >
> > > > > >> > > Hasan
> > > > > >> > >
> > > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > > > > >> > yusufkaradag1402@gmail.com>
> > > > > >> > > wrote:
> > > > > >> > >
> > > > > >> > > > Dear Mr. Hasan,
> > > > > >> > > > Thank you for explaining to me. I am looking at to
> > > > > >> > > > https://github.com/clerezza/jena.parser  and I see one
> > class
> > > > > >> > > > JenaParserProvider
> > > > > >> > > > <
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > > > >> > > > >
> > > > > >> > > > which I can see implements the *ParsingProvider* in
> > > > > *representation
> > > > > >> > > > *module.
> > > > > >> > > > So the first thing would be to release new versions? I
> just
> > > > > >> > > > didn't understand whether something was wrong or not with
> > the
> > > > > >> modules
> > > > > >> > in
> > > > > >> > > > github.com/clerezza? From the second problemö we then
> > should
> > > > make
> > > > > >> sure
> > > > > >> > > > that
> > > > > >> > > > the representation module and rdf.jena.parser library use
> > the
> > > > same
> > > > > >> > > versıon
> > > > > >> > > > of slf4j? Also can we arrange a short meeting this week or
> > > next
> > > > > week
> > > > > >> > with
> > > > > >> > > > the mentors to get to know each other and maybe to tell
> more
> > > > about
> > > > > >> the
> > > > > >> > > code
> > > > > >> > > > and structure if that's not too much trouble? Just
> getting a
> > > > > little
> > > > > >> bit
> > > > > >> > > > confused about the old and new version/modules.
> > > > > >> > > > Regards!
> > > > > >> > > >
> > > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > > > > xushan.chen@gmail.com
> > > > > >> >
> > > > > >> > > > wrote:
> > > > > >> > > >
> > > > > >> > > > > Hi Yusuf
> > > > > >> > > > >
> > > > > >> > > > > There are two problems in tutorial 2:
> > > > > >> > > > > 1. It uses a library outside of the Apache Clerezza
> > project
> > > > > called
> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
> > out-dated
> > > > > >> version
> > > > > >> > of
> > > > > >> > > > > Apache Clerezza. The package
> > > > org.apache.clerezza:rdf.jena.parser
> > > > > >> is
> > > > > >> > > > > maintained outside of
> > > > > >> > > > > Apache Clerezza in github.com/clerezza by reto and me.
> We
> > > can
> > > > > >> update
> > > > > >> > > the
> > > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the
> > > current
> > > > > >> > release
> > > > > >> > > > > version of Apache Clerezza. You could help here as well.
> > You
> > > > > could
> > > > > >> > > study
> > > > > >> > > > > the code and try to understand the relation of that
> > package
> > > > with
> > > > > >> the
> > > > > >> > > > > representation module.
> > > > > >> > > > > The representation module is not implementing any
> parser,
> > It
> > > > > >> > delegates
> > > > > >> > > > the
> > > > > >> > > > > parsing functionality to any registered ParsingProvider.
> > The
> > > > > >> package
> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> > > > > >> > functionality.
> > > > > >> > > > > Thus, we principally should use the representation
> module
> > as
> > > > > well
> > > > > >> as
> > > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > > > >> > > > > Let me know if you have any questions and whether you
> > would
> > > > like
> > > > > >> to
> > > > > >> > fix
> > > > > >> > > > any
> > > > > >> > > > > package in github.com/clerezza.
> > > > > >> > > > >
> > > > > >> > > > > 2. The multiple bindings problem of slf4j is due to
> > > different
> > > > > libs
> > > > > >> > used
> > > > > >> > > > by
> > > > > >> > > > > the representation module and rdf.jena.parser library.
> > > > > >> > > > >
> > > > > >> > > > > Cheers
> > > > > >> > > > > Hasan
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > > > > >> xushan.chen@gmail.com>
> > > > > >> > > > > wrote:
> > > > > >> > > > >
> > > > > >> > > > > > Hi Yusuf
> > > > > >> > > > > >
> > > > > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
> > > > > >> > > > > >
> > > > > >> > > > > > Regarding the website, you don't yet have access to
> the
> > > > > >> repository.
> > > > > >> > > So,
> > > > > >> > > > > > I'll update it.
> > > > > >> > > > > >
> > > > > >> > > > > > Regards
> > > > > >> > > > > > Hasan
> > > > > >> > > > > >
> > > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > > > >> > > > > yusufkaradag1402@gmail.com>
> > > > > >> > > > > > wrote:
> > > > > >> > > > > >
> > > > > >> > > > > >> Hello!
> > > > > >> > > > > >> So i've tried to run tutorial with *representation
> > > *module.
> > > > > >> But it
> > > > > >> > > > kept
> > > > > >> > > > > >> giving *null. *I've kept track of it and it's giving
> in
> > > > this
> > > > > >> line
> > > > > >> > of
> > > > > >> > > > > >> *Parser.class:
> > > > > >> > > > > >> *
> > > > > >> > > > > >>
> > > > > >> > > > > >> ParsingProvider provider =
> > > > > >> > > > > >>
> > > > > >>
> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > > > >> > > > > >>
> > > > > >> > > > > >> It can't get the provider and throws
> > > > > >> > > > > >> *UnsupportedParsingFormatException.*
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > > >> *and the output was:
> > > > > >> > > > > >> [main] INFO
> org.apache.clerezza.representation.Parser -
> > > > > >> > constructing
> > > > > >> > > > > >> Parser
> > > > > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
> > > > > >> text/turtle
> > > > > >> > is
> > > > > >> > > > > >> not supported by the used parser
> > > > > >> > > > > >>
> > > > > >> > > > > >> *
> > > > > >> > > > > >>
> > > > > >> > > > > >> Then I tried with the dependencies as written in
> > Tutorial
> > > > 2.
> > > > > I
> > > > > >> > moved
> > > > > >> > > > > >> *example02.ttl *file under *resources *directory of
> > > module
> > > > > and
> > > > > >> > made
> > > > > >> > > a
> > > > > >> > > > > >> change in the code as:
> > > > > >> > > > > >> package org.apache.clerezza.tutorial;
> > > > > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > > > >> > > > > >>
> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > > > >> > > > > >>
> > > > > >>
> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > > > >> > > > > >> import java.io.InputStream;import java.util.Iterator;
> > > > > >> > > > > >> public class Example02 {
> > > > > >> > > > > >>
> > > > > >> > > > > >>     private static final Logger logger =
> > > > > >> LoggerFactory.getLogger(
> > > > > >> > > > > >> Example02.class );
> > > > > >> > > > > >>
> > > > > >> > > > > >>     public static void main( String[] args ) {
> > > > > >> > > > > >>
> > > > > >> > > > > >>         InputStream inputStream =
> > > > > >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > > > >> > > "example02.ttl"
> > > > > >> > > > > >> );
> > > > > >> > > > > >>         Parser parser = Parser.getInstance();
> > > > > >> > > > > >>
> > > > > >> > > > > >>         try {
> > > > > >> > > > > >>             Graph graph = parser.parse( inputStream,
> > > > > >> > > > > >> SupportedFormat.TURTLE );
> > > > > >> > > > > >>
> > > > > >> > > > > >>             Iterator<Triple> iterator = graph.filter(
> > > null,
> > > > > >> null,
> > > > > >> > > null
> > > > > >> > > > > );
> > > > > >> > > > > >>             Triple triple;
> > > > > >> > > > > >>
> > > > > >> > > > > >>             while ( iterator.hasNext() ) {
> > > > > >> > > > > >>                 triple = iterator.next();
> > > > > >> > > > > >>                 logger.info( String.format( "%s %s
> > %s",
> > > > > >> > > > > >>
>  triple.getSubject().toString(),
> > > > > >> > > > > >>
> >  triple.getPredicate().toString(),
> > > > > >> > > > > >>                         triple.getObject().toString()
> > > > > >> > > > > >>                 ) );
> > > > > >> > > > > >>             }
> > > > > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> > > > > >> > > > > >>             logger.warn( String.format( "%s is not
> > > > supported
> > > > > by
> > > > > >> > the
> > > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > > > >> > > > > >>         }
> > > > > >> > > > > >>     }
> > > > > >> > > > > >> }
> > > > > >> > > > > >>
> > > > > >> > > > > >> And i got the output as:
> > > > > >> > > > > >>
> > > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > > > >> > > > > >> SLF4J: Found binding in
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > > >> > > > > >> SLF4J: Found binding in
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > > >> > > > > >> SLF4J: See
> > > > http://www.slf4j.org/codes.html#multiple_bindings
> > > > > >> for
> > > > > >> > an
> > > > > >> > > > > >> explanation.
> > > > > >> > > > > >> SLF4J: Actual binding is of type
> > > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > > > >> > > > > >> [main] INFO
> > > > > org.apache.clerezza.rdf.core.serializedform.Parser
> > > > > >> -
> > > > > >> > > > > >> constructing Parser
> > > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > > >> > > > > >>
> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > > >> > > > > >> <
> > http://clerezza.apache.org/2017/01/example#hasFirstName
> > > >
> > > > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > > >> > > > > >>
> > > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > > > >> > > > > >> <
> > http://clerezza.apache.org/2017/01/example#ClerezzaUser
> > > >
> > > > > >> > > > > >>
> > > > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
> > > confused
> > > > > why
> > > > > >> it
> > > > > >> > > > > >> didn't work with *representation* module. Should i
> try
> > > with
> > > > > >> > > > > >> *representation *or this is fine?
> > > > > >> > > > > >>
> > > > > >> > > > > >> Regards!
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> > hasan@apache.org>
> > > > > >> wrote:
> > > > > >> > > > > >>
> > > > > >> > > > > >> > Hi Yusuf
> > > > > >> > > > > >> >
> > > > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as
> > well
> > > > > >> > > > > >> >
> > > > > >> >
> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > > > >> > > > > >> >
> > > > > >> > > > > >> > Best regards
> > > > > >> > > > > >> >
> > > > > >> > > > > >> > Hasan
> > > > > >> > > > > >> >
> > > > > >> > > > > >>
> > > > > >> > > > > >>
> > > > > >> > > > > >> --
> > > > > >> > > > > >> Yusuf
> > > > > >> > > > > >>
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > --
> > > > > >> > > > Yusuf
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Tutorial 2

Posted by Hasan <ha...@apache.org>.
Hi Yusuf

As mentioned, this is our artifact dependency diagram
parent
  +----> api
           +--> api-implementation
           |      +-----------------> representation
           |      |                     +--------------------> api.utils
           |      |                                              +-------->
jaxrs.rdf.providers
           |      +-----------------> sparql
           |      |                     +---------> dataset
           |      +-----------------> test.utils
           |                            +---------> dataset
           |                                          +------> api.utils
           +--> ontologies
                  +------------------------------------------> api.utils

We also have these packages outside of Apache Clerezza, relevant for your
task:
jena.commons
jena.facade
jena.parser
jena.serializer

in github.com/clerezza

Hasan

On Tue, Jun 1, 2021 at 8:19 AM Furkan KAMACI <fu...@gmail.com> wrote:

> Hi Yusuf,
>
> Yes, we are waiting for you.
>
> Kind Regards,
> Furkan KAMACI
>
> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello!
> > Is the meeting now or in the evening?
> > Regards!
> >
> > Yusuf Karadag
> >
> > On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
> wrote:
> >
> > > Hi,
> > >
> > > Since we have one week until the beginning of the coding period, it
> would
> > > be nice to wrap up the things at the meeting.
> > >
> > > Hasan, could you share the meeting link?
> > >
> > > Kind Regards,
> > > Furkan KAMACI
> > >
> > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> > yusufkaradag1402@gmail.com
> > > >
> > > wrote:
> > >
> > > > I don't know whether you meant am or pm but I'm ok with both time.
> > > > Regards!
> > > >
> > > > Yusuf Karadag
> > > >
> > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> > > > wrote:
> > > >
> > > > > Hello,
> > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > > > Regards!
> > > > >
> > > > > Yusuf Karadag
> > > > >
> > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com>
> > wrote:
> > > > >
> > > > >> Hi Yusuf
> > > > >>
> > > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or
> > Wed
> > > > >> 8:00
> > > > >> - 8:45 CEST
> > > > >> Which do you prefer?
> > > > >>
> > > > >> Hasan
> > > > >>
> > > > >>
> > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > > > >> yusufkaradag1402@gmail.com>
> > > > >> wrote:
> > > > >>
> > > > >> > Great, thank you so much.
> > > > >> > Regards!
> > > > >> >
> > > > >> > Yusuf Karadag
> > > > >> >
> > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com>
> > > > wrote:
> > > > >> >
> > > > >> > > Hi Yusuf
> > > > >> > >
> > > > >> > > Yes, Reto has just released a new version of jena.parser. I
> hope
> > > we
> > > > >> can
> > > > >> > use
> > > > >> > > that soon.
> > > > >> > > I think we can schedule a meeting next week. I'll try to find
> > some
> > > > >> slots
> > > > >> > > next week.
> > > > >> > >
> > > > >> > > Hasan
> > > > >> > >
> > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > > > >> > yusufkaradag1402@gmail.com>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Dear Mr. Hasan,
> > > > >> > > > Thank you for explaining to me. I am looking at to
> > > > >> > > > https://github.com/clerezza/jena.parser  and I see one
> class
> > > > >> > > > JenaParserProvider
> > > > >> > > > <
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > > >> > > > >
> > > > >> > > > which I can see implements the *ParsingProvider* in
> > > > *representation
> > > > >> > > > *module.
> > > > >> > > > So the first thing would be to release new versions? I just
> > > > >> > > > didn't understand whether something was wrong or not with
> the
> > > > >> modules
> > > > >> > in
> > > > >> > > > github.com/clerezza? From the second problemö we then
> should
> > > make
> > > > >> sure
> > > > >> > > > that
> > > > >> > > > the representation module and rdf.jena.parser library use
> the
> > > same
> > > > >> > > versıon
> > > > >> > > > of slf4j? Also can we arrange a short meeting this week or
> > next
> > > > week
> > > > >> > with
> > > > >> > > > the mentors to get to know each other and maybe to tell more
> > > about
> > > > >> the
> > > > >> > > code
> > > > >> > > > and structure if that's not too much trouble? Just getting a
> > > > little
> > > > >> bit
> > > > >> > > > confused about the old and new version/modules.
> > > > >> > > > Regards!
> > > > >> > > >
> > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > > > xushan.chen@gmail.com
> > > > >> >
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > > > Hi Yusuf
> > > > >> > > > >
> > > > >> > > > > There are two problems in tutorial 2:
> > > > >> > > > > 1. It uses a library outside of the Apache Clerezza
> project
> > > > called
> > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
> out-dated
> > > > >> version
> > > > >> > of
> > > > >> > > > > Apache Clerezza. The package
> > > org.apache.clerezza:rdf.jena.parser
> > > > >> is
> > > > >> > > > > maintained outside of
> > > > >> > > > > Apache Clerezza in github.com/clerezza by reto and me. We
> > can
> > > > >> update
> > > > >> > > the
> > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the
> > current
> > > > >> > release
> > > > >> > > > > version of Apache Clerezza. You could help here as well.
> You
> > > > could
> > > > >> > > study
> > > > >> > > > > the code and try to understand the relation of that
> package
> > > with
> > > > >> the
> > > > >> > > > > representation module.
> > > > >> > > > > The representation module is not implementing any parser,
> It
> > > > >> > delegates
> > > > >> > > > the
> > > > >> > > > > parsing functionality to any registered ParsingProvider.
> The
> > > > >> package
> > > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> > > > >> > functionality.
> > > > >> > > > > Thus, we principally should use the representation module
> as
> > > > well
> > > > >> as
> > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > > >> > > > > Let me know if you have any questions and whether you
> would
> > > like
> > > > >> to
> > > > >> > fix
> > > > >> > > > any
> > > > >> > > > > package in github.com/clerezza.
> > > > >> > > > >
> > > > >> > > > > 2. The multiple bindings problem of slf4j is due to
> > different
> > > > libs
> > > > >> > used
> > > > >> > > > by
> > > > >> > > > > the representation module and rdf.jena.parser library.
> > > > >> > > > >
> > > > >> > > > > Cheers
> > > > >> > > > > Hasan
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > > > >> xushan.chen@gmail.com>
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > > Hi Yusuf
> > > > >> > > > > >
> > > > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
> > > > >> > > > > >
> > > > >> > > > > > Regarding the website, you don't yet have access to the
> > > > >> repository.
> > > > >> > > So,
> > > > >> > > > > > I'll update it.
> > > > >> > > > > >
> > > > >> > > > > > Regards
> > > > >> > > > > > Hasan
> > > > >> > > > > >
> > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > > >> > > > > yusufkaradag1402@gmail.com>
> > > > >> > > > > > wrote:
> > > > >> > > > > >
> > > > >> > > > > >> Hello!
> > > > >> > > > > >> So i've tried to run tutorial with *representation
> > *module.
> > > > >> But it
> > > > >> > > > kept
> > > > >> > > > > >> giving *null. *I've kept track of it and it's giving in
> > > this
> > > > >> line
> > > > >> > of
> > > > >> > > > > >> *Parser.class:
> > > > >> > > > > >> *
> > > > >> > > > > >>
> > > > >> > > > > >> ParsingProvider provider =
> > > > >> > > > > >>
> > > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > > >> > > > > >>
> > > > >> > > > > >> It can't get the provider and throws
> > > > >> > > > > >> *UnsupportedParsingFormatException.*
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> *and the output was:
> > > > >> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> > > > >> > constructing
> > > > >> > > > > >> Parser
> > > > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
> > > > >> text/turtle
> > > > >> > is
> > > > >> > > > > >> not supported by the used parser
> > > > >> > > > > >>
> > > > >> > > > > >> *
> > > > >> > > > > >>
> > > > >> > > > > >> Then I tried with the dependencies as written in
> Tutorial
> > > 2.
> > > > I
> > > > >> > moved
> > > > >> > > > > >> *example02.ttl *file under *resources *directory of
> > module
> > > > and
> > > > >> > made
> > > > >> > > a
> > > > >> > > > > >> change in the code as:
> > > > >> > > > > >> package org.apache.clerezza.tutorial;
> > > > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > > >> > > > > >>
> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > > >> > > > > >>
> > > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > > >> > > > > >> import java.io.InputStream;import java.util.Iterator;
> > > > >> > > > > >> public class Example02 {
> > > > >> > > > > >>
> > > > >> > > > > >>     private static final Logger logger =
> > > > >> LoggerFactory.getLogger(
> > > > >> > > > > >> Example02.class );
> > > > >> > > > > >>
> > > > >> > > > > >>     public static void main( String[] args ) {
> > > > >> > > > > >>
> > > > >> > > > > >>         InputStream inputStream =
> > > > >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > > >> > > "example02.ttl"
> > > > >> > > > > >> );
> > > > >> > > > > >>         Parser parser = Parser.getInstance();
> > > > >> > > > > >>
> > > > >> > > > > >>         try {
> > > > >> > > > > >>             Graph graph = parser.parse( inputStream,
> > > > >> > > > > >> SupportedFormat.TURTLE );
> > > > >> > > > > >>
> > > > >> > > > > >>             Iterator<Triple> iterator = graph.filter(
> > null,
> > > > >> null,
> > > > >> > > null
> > > > >> > > > > );
> > > > >> > > > > >>             Triple triple;
> > > > >> > > > > >>
> > > > >> > > > > >>             while ( iterator.hasNext() ) {
> > > > >> > > > > >>                 triple = iterator.next();
> > > > >> > > > > >>                 logger.info( String.format( "%s %s
> %s",
> > > > >> > > > > >>                         triple.getSubject().toString(),
> > > > >> > > > > >>
>  triple.getPredicate().toString(),
> > > > >> > > > > >>                         triple.getObject().toString()
> > > > >> > > > > >>                 ) );
> > > > >> > > > > >>             }
> > > > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> > > > >> > > > > >>             logger.warn( String.format( "%s is not
> > > supported
> > > > by
> > > > >> > the
> > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > > >> > > > > >>         }
> > > > >> > > > > >>     }
> > > > >> > > > > >> }
> > > > >> > > > > >>
> > > > >> > > > > >> And i got the output as:
> > > > >> > > > > >>
> > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > > >> > > > > >> SLF4J: Found binding in
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> > > > > >> SLF4J: Found binding in
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> > > > > >> SLF4J: See
> > > http://www.slf4j.org/codes.html#multiple_bindings
> > > > >> for
> > > > >> > an
> > > > >> > > > > >> explanation.
> > > > >> > > > > >> SLF4J: Actual binding is of type
> > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > > >> > > > > >> [main] INFO
> > > > org.apache.clerezza.rdf.core.serializedform.Parser
> > > > >> -
> > > > >> > > > > >> constructing Parser
> > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >>
> > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> > > > > >> <
> http://clerezza.apache.org/2017/01/example#hasFirstName
> > >
> > > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >>
> > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > > >> > > > > >> <
> http://clerezza.apache.org/2017/01/example#ClerezzaUser
> > >
> > > > >> > > > > >>
> > > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
> > confused
> > > > why
> > > > >> it
> > > > >> > > > > >> didn't work with *representation* module. Should i try
> > with
> > > > >> > > > > >> *representation *or this is fine?
> > > > >> > > > > >>
> > > > >> > > > > >> Regards!
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> hasan@apache.org>
> > > > >> wrote:
> > > > >> > > > > >>
> > > > >> > > > > >> > Hi Yusuf
> > > > >> > > > > >> >
> > > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as
> well
> > > > >> > > > > >> >
> > > > >> >
> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > > >> > > > > >> >
> > > > >> > > > > >> > Best regards
> > > > >> > > > > >> >
> > > > >> > > > > >> > Hasan
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> --
> > > > >> > > > > >> Yusuf
> > > > >> > > > > >>
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > > Yusuf
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > >
> > >
> >
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
I don't have the meeting link. Can you send me the meeting link?

Yusuf Karadag

On Tue, Jun 1, 2021, 08:19 Furkan KAMACI <fu...@gmail.com> wrote:

> Hi Yusuf,
>
> Yes, we are waiting for you.
>
> Kind Regards,
> Furkan KAMACI
>
> On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello!
> > Is the meeting now or in the evening?
> > Regards!
> >
> > Yusuf Karadag
> >
> > On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com>
> wrote:
> >
> > > Hi,
> > >
> > > Since we have one week until the beginning of the coding period, it
> would
> > > be nice to wrap up the things at the meeting.
> > >
> > > Hasan, could you share the meeting link?
> > >
> > > Kind Regards,
> > > Furkan KAMACI
> > >
> > > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> > yusufkaradag1402@gmail.com
> > > >
> > > wrote:
> > >
> > > > I don't know whether you meant am or pm but I'm ok with both time.
> > > > Regards!
> > > >
> > > > Yusuf Karadag
> > > >
> > > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> > > > wrote:
> > > >
> > > > > Hello,
> > > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > > > Regards!
> > > > >
> > > > > Yusuf Karadag
> > > > >
> > > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com>
> > wrote:
> > > > >
> > > > >> Hi Yusuf
> > > > >>
> > > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or
> > Wed
> > > > >> 8:00
> > > > >> - 8:45 CEST
> > > > >> Which do you prefer?
> > > > >>
> > > > >> Hasan
> > > > >>
> > > > >>
> > > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > > > >> yusufkaradag1402@gmail.com>
> > > > >> wrote:
> > > > >>
> > > > >> > Great, thank you so much.
> > > > >> > Regards!
> > > > >> >
> > > > >> > Yusuf Karadag
> > > > >> >
> > > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com>
> > > > wrote:
> > > > >> >
> > > > >> > > Hi Yusuf
> > > > >> > >
> > > > >> > > Yes, Reto has just released a new version of jena.parser. I
> hope
> > > we
> > > > >> can
> > > > >> > use
> > > > >> > > that soon.
> > > > >> > > I think we can schedule a meeting next week. I'll try to find
> > some
> > > > >> slots
> > > > >> > > next week.
> > > > >> > >
> > > > >> > > Hasan
> > > > >> > >
> > > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > > > >> > yusufkaradag1402@gmail.com>
> > > > >> > > wrote:
> > > > >> > >
> > > > >> > > > Dear Mr. Hasan,
> > > > >> > > > Thank you for explaining to me. I am looking at to
> > > > >> > > > https://github.com/clerezza/jena.parser  and I see one
> class
> > > > >> > > > JenaParserProvider
> > > > >> > > > <
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > > >> > > > >
> > > > >> > > > which I can see implements the *ParsingProvider* in
> > > > *representation
> > > > >> > > > *module.
> > > > >> > > > So the first thing would be to release new versions? I just
> > > > >> > > > didn't understand whether something was wrong or not with
> the
> > > > >> modules
> > > > >> > in
> > > > >> > > > github.com/clerezza? From the second problemö we then
> should
> > > make
> > > > >> sure
> > > > >> > > > that
> > > > >> > > > the representation module and rdf.jena.parser library use
> the
> > > same
> > > > >> > > versıon
> > > > >> > > > of slf4j? Also can we arrange a short meeting this week or
> > next
> > > > week
> > > > >> > with
> > > > >> > > > the mentors to get to know each other and maybe to tell more
> > > about
> > > > >> the
> > > > >> > > code
> > > > >> > > > and structure if that's not too much trouble? Just getting a
> > > > little
> > > > >> bit
> > > > >> > > > confused about the old and new version/modules.
> > > > >> > > > Regards!
> > > > >> > > >
> > > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > > > xushan.chen@gmail.com
> > > > >> >
> > > > >> > > > wrote:
> > > > >> > > >
> > > > >> > > > > Hi Yusuf
> > > > >> > > > >
> > > > >> > > > > There are two problems in tutorial 2:
> > > > >> > > > > 1. It uses a library outside of the Apache Clerezza
> project
> > > > called
> > > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an
> out-dated
> > > > >> version
> > > > >> > of
> > > > >> > > > > Apache Clerezza. The package
> > > org.apache.clerezza:rdf.jena.parser
> > > > >> is
> > > > >> > > > > maintained outside of
> > > > >> > > > > Apache Clerezza in github.com/clerezza by reto and me. We
> > can
> > > > >> update
> > > > >> > > the
> > > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the
> > current
> > > > >> > release
> > > > >> > > > > version of Apache Clerezza. You could help here as well.
> You
> > > > could
> > > > >> > > study
> > > > >> > > > > the code and try to understand the relation of that
> package
> > > with
> > > > >> the
> > > > >> > > > > representation module.
> > > > >> > > > > The representation module is not implementing any parser,
> It
> > > > >> > delegates
> > > > >> > > > the
> > > > >> > > > > parsing functionality to any registered ParsingProvider.
> The
> > > > >> package
> > > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> > > > >> > functionality.
> > > > >> > > > > Thus, we principally should use the representation module
> as
> > > > well
> > > > >> as
> > > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > > >> > > > > Let me know if you have any questions and whether you
> would
> > > like
> > > > >> to
> > > > >> > fix
> > > > >> > > > any
> > > > >> > > > > package in github.com/clerezza.
> > > > >> > > > >
> > > > >> > > > > 2. The multiple bindings problem of slf4j is due to
> > different
> > > > libs
> > > > >> > used
> > > > >> > > > by
> > > > >> > > > > the representation module and rdf.jena.parser library.
> > > > >> > > > >
> > > > >> > > > > Cheers
> > > > >> > > > > Hasan
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > > > >> xushan.chen@gmail.com>
> > > > >> > > > > wrote:
> > > > >> > > > >
> > > > >> > > > > > Hi Yusuf
> > > > >> > > > > >
> > > > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
> > > > >> > > > > >
> > > > >> > > > > > Regarding the website, you don't yet have access to the
> > > > >> repository.
> > > > >> > > So,
> > > > >> > > > > > I'll update it.
> > > > >> > > > > >
> > > > >> > > > > > Regards
> > > > >> > > > > > Hasan
> > > > >> > > > > >
> > > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > > >> > > > > yusufkaradag1402@gmail.com>
> > > > >> > > > > > wrote:
> > > > >> > > > > >
> > > > >> > > > > >> Hello!
> > > > >> > > > > >> So i've tried to run tutorial with *representation
> > *module.
> > > > >> But it
> > > > >> > > > kept
> > > > >> > > > > >> giving *null. *I've kept track of it and it's giving in
> > > this
> > > > >> line
> > > > >> > of
> > > > >> > > > > >> *Parser.class:
> > > > >> > > > > >> *
> > > > >> > > > > >>
> > > > >> > > > > >> ParsingProvider provider =
> > > > >> > > > > >>
> > > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > > >> > > > > >>
> > > > >> > > > > >> It can't get the provider and throws
> > > > >> > > > > >> *UnsupportedParsingFormatException.*
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> *and the output was:
> > > > >> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> > > > >> > constructing
> > > > >> > > > > >> Parser
> > > > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
> > > > >> text/turtle
> > > > >> > is
> > > > >> > > > > >> not supported by the used parser
> > > > >> > > > > >>
> > > > >> > > > > >> *
> > > > >> > > > > >>
> > > > >> > > > > >> Then I tried with the dependencies as written in
> Tutorial
> > > 2.
> > > > I
> > > > >> > moved
> > > > >> > > > > >> *example02.ttl *file under *resources *directory of
> > module
> > > > and
> > > > >> > made
> > > > >> > > a
> > > > >> > > > > >> change in the code as:
> > > > >> > > > > >> package org.apache.clerezza.tutorial;
> > > > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > > >> > > > > >>
> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > > >> > > > > >>
> > > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > > >> > > > > >> import java.io.InputStream;import java.util.Iterator;
> > > > >> > > > > >> public class Example02 {
> > > > >> > > > > >>
> > > > >> > > > > >>     private static final Logger logger =
> > > > >> LoggerFactory.getLogger(
> > > > >> > > > > >> Example02.class );
> > > > >> > > > > >>
> > > > >> > > > > >>     public static void main( String[] args ) {
> > > > >> > > > > >>
> > > > >> > > > > >>         InputStream inputStream =
> > > > >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > > >> > > "example02.ttl"
> > > > >> > > > > >> );
> > > > >> > > > > >>         Parser parser = Parser.getInstance();
> > > > >> > > > > >>
> > > > >> > > > > >>         try {
> > > > >> > > > > >>             Graph graph = parser.parse( inputStream,
> > > > >> > > > > >> SupportedFormat.TURTLE );
> > > > >> > > > > >>
> > > > >> > > > > >>             Iterator<Triple> iterator = graph.filter(
> > null,
> > > > >> null,
> > > > >> > > null
> > > > >> > > > > );
> > > > >> > > > > >>             Triple triple;
> > > > >> > > > > >>
> > > > >> > > > > >>             while ( iterator.hasNext() ) {
> > > > >> > > > > >>                 triple = iterator.next();
> > > > >> > > > > >>                 logger.info( String.format( "%s %s
> %s",
> > > > >> > > > > >>                         triple.getSubject().toString(),
> > > > >> > > > > >>
>  triple.getPredicate().toString(),
> > > > >> > > > > >>                         triple.getObject().toString()
> > > > >> > > > > >>                 ) );
> > > > >> > > > > >>             }
> > > > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> > > > >> > > > > >>             logger.warn( String.format( "%s is not
> > > supported
> > > > by
> > > > >> > the
> > > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > > >> > > > > >>         }
> > > > >> > > > > >>     }
> > > > >> > > > > >> }
> > > > >> > > > > >>
> > > > >> > > > > >> And i got the output as:
> > > > >> > > > > >>
> > > > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > > >> > > > > >> SLF4J: Found binding in
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> > > > > >> SLF4J: Found binding in
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> > > > > >> SLF4J: See
> > > http://www.slf4j.org/codes.html#multiple_bindings
> > > > >> for
> > > > >> > an
> > > > >> > > > > >> explanation.
> > > > >> > > > > >> SLF4J: Actual binding is of type
> > > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > > >> > > > > >> [main] INFO
> > > > org.apache.clerezza.rdf.core.serializedform.Parser
> > > > >> -
> > > > >> > > > > >> constructing Parser
> > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >>
> > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> > > > > >> <
> http://clerezza.apache.org/2017/01/example#hasFirstName
> > >
> > > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > >> > > > > >>
> > > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > > >> > > > > >> <
> http://clerezza.apache.org/2017/01/example#ClerezzaUser
> > >
> > > > >> > > > > >>
> > > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
> > confused
> > > > why
> > > > >> it
> > > > >> > > > > >> didn't work with *representation* module. Should i try
> > with
> > > > >> > > > > >> *representation *or this is fine?
> > > > >> > > > > >>
> > > > >> > > > > >> Regards!
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <
> hasan@apache.org>
> > > > >> wrote:
> > > > >> > > > > >>
> > > > >> > > > > >> > Hi Yusuf
> > > > >> > > > > >> >
> > > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as
> well
> > > > >> > > > > >> >
> > > > >> >
> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > > >> > > > > >> >
> > > > >> > > > > >> > Best regards
> > > > >> > > > > >> >
> > > > >> > > > > >> > Hasan
> > > > >> > > > > >> >
> > > > >> > > > > >>
> > > > >> > > > > >>
> > > > >> > > > > >> --
> > > > >> > > > > >> Yusuf
> > > > >> > > > > >>
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > > Yusuf
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > >
> > >
> >
>

Re: Tutorial 2

Posted by Furkan KAMACI <fu...@gmail.com>.
Hi Yusuf,

Yes, we are waiting for you.

Kind Regards,
Furkan KAMACI

On Tue, Jun 1, 2021 at 9:16 AM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Hello!
> Is the meeting now or in the evening?
> Regards!
>
> Yusuf Karadag
>
> On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com> wrote:
>
> > Hi,
> >
> > Since we have one week until the beginning of the coding period, it would
> > be nice to wrap up the things at the meeting.
> >
> > Hasan, could you share the meeting link?
> >
> > Kind Regards,
> > Furkan KAMACI
> >
> > On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <
> yusufkaradag1402@gmail.com
> > >
> > wrote:
> >
> > > I don't know whether you meant am or pm but I'm ok with both time.
> > > Regards!
> > >
> > > Yusuf Karadag
> > >
> > > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <yu...@gmail.com>
> > > wrote:
> > >
> > > > Hello,
> > > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > > Regards!
> > > >
> > > > Yusuf Karadag
> > > >
> > > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com>
> wrote:
> > > >
> > > >> Hi Yusuf
> > > >>
> > > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or
> Wed
> > > >> 8:00
> > > >> - 8:45 CEST
> > > >> Which do you prefer?
> > > >>
> > > >> Hasan
> > > >>
> > > >>
> > > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > > >> yusufkaradag1402@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > Great, thank you so much.
> > > >> > Regards!
> > > >> >
> > > >> > Yusuf Karadag
> > > >> >
> > > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com>
> > > wrote:
> > > >> >
> > > >> > > Hi Yusuf
> > > >> > >
> > > >> > > Yes, Reto has just released a new version of jena.parser. I hope
> > we
> > > >> can
> > > >> > use
> > > >> > > that soon.
> > > >> > > I think we can schedule a meeting next week. I'll try to find
> some
> > > >> slots
> > > >> > > next week.
> > > >> > >
> > > >> > > Hasan
> > > >> > >
> > > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > > >> > yusufkaradag1402@gmail.com>
> > > >> > > wrote:
> > > >> > >
> > > >> > > > Dear Mr. Hasan,
> > > >> > > > Thank you for explaining to me. I am looking at to
> > > >> > > > https://github.com/clerezza/jena.parser  and I see one class
> > > >> > > > JenaParserProvider
> > > >> > > > <
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > >> > > > >
> > > >> > > > which I can see implements the *ParsingProvider* in
> > > *representation
> > > >> > > > *module.
> > > >> > > > So the first thing would be to release new versions? I just
> > > >> > > > didn't understand whether something was wrong or not with the
> > > >> modules
> > > >> > in
> > > >> > > > github.com/clerezza? From the second problemö we then should
> > make
> > > >> sure
> > > >> > > > that
> > > >> > > > the representation module and rdf.jena.parser library use the
> > same
> > > >> > > versıon
> > > >> > > > of slf4j? Also can we arrange a short meeting this week or
> next
> > > week
> > > >> > with
> > > >> > > > the mentors to get to know each other and maybe to tell more
> > about
> > > >> the
> > > >> > > code
> > > >> > > > and structure if that's not too much trouble? Just getting a
> > > little
> > > >> bit
> > > >> > > > confused about the old and new version/modules.
> > > >> > > > Regards!
> > > >> > > >
> > > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > > xushan.chen@gmail.com
> > > >> >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > > Hi Yusuf
> > > >> > > > >
> > > >> > > > > There are two problems in tutorial 2:
> > > >> > > > > 1. It uses a library outside of the Apache Clerezza project
> > > called
> > > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated
> > > >> version
> > > >> > of
> > > >> > > > > Apache Clerezza. The package
> > org.apache.clerezza:rdf.jena.parser
> > > >> is
> > > >> > > > > maintained outside of
> > > >> > > > > Apache Clerezza in github.com/clerezza by reto and me. We
> can
> > > >> update
> > > >> > > the
> > > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the
> current
> > > >> > release
> > > >> > > > > version of Apache Clerezza. You could help here as well. You
> > > could
> > > >> > > study
> > > >> > > > > the code and try to understand the relation of that package
> > with
> > > >> the
> > > >> > > > > representation module.
> > > >> > > > > The representation module is not implementing any parser, It
> > > >> > delegates
> > > >> > > > the
> > > >> > > > > parsing functionality to any registered ParsingProvider. The
> > > >> package
> > > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> > > >> > functionality.
> > > >> > > > > Thus, we principally should use the representation module as
> > > well
> > > >> as
> > > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > >> > > > > Let me know if you have any questions and whether you would
> > like
> > > >> to
> > > >> > fix
> > > >> > > > any
> > > >> > > > > package in github.com/clerezza.
> > > >> > > > >
> > > >> > > > > 2. The multiple bindings problem of slf4j is due to
> different
> > > libs
> > > >> > used
> > > >> > > > by
> > > >> > > > > the representation module and rdf.jena.parser library.
> > > >> > > > >
> > > >> > > > > Cheers
> > > >> > > > > Hasan
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > > >> xushan.chen@gmail.com>
> > > >> > > > > wrote:
> > > >> > > > >
> > > >> > > > > > Hi Yusuf
> > > >> > > > > >
> > > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
> > > >> > > > > >
> > > >> > > > > > Regarding the website, you don't yet have access to the
> > > >> repository.
> > > >> > > So,
> > > >> > > > > > I'll update it.
> > > >> > > > > >
> > > >> > > > > > Regards
> > > >> > > > > > Hasan
> > > >> > > > > >
> > > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > >> > > > > yusufkaradag1402@gmail.com>
> > > >> > > > > > wrote:
> > > >> > > > > >
> > > >> > > > > >> Hello!
> > > >> > > > > >> So i've tried to run tutorial with *representation
> *module.
> > > >> But it
> > > >> > > > kept
> > > >> > > > > >> giving *null. *I've kept track of it and it's giving in
> > this
> > > >> line
> > > >> > of
> > > >> > > > > >> *Parser.class:
> > > >> > > > > >> *
> > > >> > > > > >>
> > > >> > > > > >> ParsingProvider provider =
> > > >> > > > > >>
> > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > >> > > > > >>
> > > >> > > > > >> It can't get the provider and throws
> > > >> > > > > >> *UnsupportedParsingFormatException.*
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >> *and the output was:
> > > >> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> > > >> > constructing
> > > >> > > > > >> Parser
> > > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
> > > >> text/turtle
> > > >> > is
> > > >> > > > > >> not supported by the used parser
> > > >> > > > > >>
> > > >> > > > > >> *
> > > >> > > > > >>
> > > >> > > > > >> Then I tried with the dependencies as written in Tutorial
> > 2.
> > > I
> > > >> > moved
> > > >> > > > > >> *example02.ttl *file under *resources *directory of
> module
> > > and
> > > >> > made
> > > >> > > a
> > > >> > > > > >> change in the code as:
> > > >> > > > > >> package org.apache.clerezza.tutorial;
> > > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > >> > > > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > >> > > > > >>
> > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > >> > > > > >> import java.io.InputStream;import java.util.Iterator;
> > > >> > > > > >> public class Example02 {
> > > >> > > > > >>
> > > >> > > > > >>     private static final Logger logger =
> > > >> LoggerFactory.getLogger(
> > > >> > > > > >> Example02.class );
> > > >> > > > > >>
> > > >> > > > > >>     public static void main( String[] args ) {
> > > >> > > > > >>
> > > >> > > > > >>         InputStream inputStream =
> > > >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > >> > > "example02.ttl"
> > > >> > > > > >> );
> > > >> > > > > >>         Parser parser = Parser.getInstance();
> > > >> > > > > >>
> > > >> > > > > >>         try {
> > > >> > > > > >>             Graph graph = parser.parse( inputStream,
> > > >> > > > > >> SupportedFormat.TURTLE );
> > > >> > > > > >>
> > > >> > > > > >>             Iterator<Triple> iterator = graph.filter(
> null,
> > > >> null,
> > > >> > > null
> > > >> > > > > );
> > > >> > > > > >>             Triple triple;
> > > >> > > > > >>
> > > >> > > > > >>             while ( iterator.hasNext() ) {
> > > >> > > > > >>                 triple = iterator.next();
> > > >> > > > > >>                 logger.info( String.format( "%s %s %s",
> > > >> > > > > >>                         triple.getSubject().toString(),
> > > >> > > > > >>                         triple.getPredicate().toString(),
> > > >> > > > > >>                         triple.getObject().toString()
> > > >> > > > > >>                 ) );
> > > >> > > > > >>             }
> > > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> > > >> > > > > >>             logger.warn( String.format( "%s is not
> > supported
> > > by
> > > >> > the
> > > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > >> > > > > >>         }
> > > >> > > > > >>     }
> > > >> > > > > >> }
> > > >> > > > > >>
> > > >> > > > > >> And i got the output as:
> > > >> > > > > >>
> > > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > >> > > > > >> SLF4J: Found binding in
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > >> > > > > >> SLF4J: Found binding in
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > >> > > > > >> SLF4J: See
> > http://www.slf4j.org/codes.html#multiple_bindings
> > > >> for
> > > >> > an
> > > >> > > > > >> explanation.
> > > >> > > > > >> SLF4J: Actual binding is of type
> > > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > >> > > > > >> [main] INFO
> > > org.apache.clerezza.rdf.core.serializedform.Parser
> > > >> -
> > > >> > > > > >> constructing Parser
> > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > >> > > > > >>
> > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName
> >
> > > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > >> > > > > >>
> > > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > >> > > > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser
> >
> > > >> > > > > >>
> > > >> > > > > >> I hope i managed to tell what i meant. Just a bit
> confused
> > > why
> > > >> it
> > > >> > > > > >> didn't work with *representation* module. Should i try
> with
> > > >> > > > > >> *representation *or this is fine?
> > > >> > > > > >>
> > > >> > > > > >> Regards!
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org>
> > > >> wrote:
> > > >> > > > > >>
> > > >> > > > > >> > Hi Yusuf
> > > >> > > > > >> >
> > > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as well
> > > >> > > > > >> >
> > > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > >> > > > > >> >
> > > >> > > > > >> > Best regards
> > > >> > > > > >> >
> > > >> > > > > >> > Hasan
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >> --
> > > >> > > > > >> Yusuf
> > > >> > > > > >>
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > --
> > > >> > > > Yusuf
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > > >
> > >
> >
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Hello!
Is the meeting now or in the evening?
Regards!

Yusuf Karadag

On Mon, May 31, 2021, 11:01 Furkan KAMACI <fu...@gmail.com> wrote:

> Hi,
>
> Since we have one week until the beginning of the coding period, it would
> be nice to wrap up the things at the meeting.
>
> Hasan, could you share the meeting link?
>
> Kind Regards,
> Furkan KAMACI
>
> On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <yusufkaradag1402@gmail.com
> >
> wrote:
>
> > I don't know whether you meant am or pm but I'm ok with both time.
> > Regards!
> >
> > Yusuf Karadag
> >
> > On Mon, May 31, 2021, 09:35 Yusuf Karadağ <yu...@gmail.com>
> > wrote:
> >
> > > Hello,
> > > Tomorrow(Tuesday) 8 am would be ok for me.
> > > Regards!
> > >
> > > Yusuf Karadag
> > >
> > > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com> wrote:
> > >
> > >> Hi Yusuf
> > >>
> > >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or Wed
> > >> 8:00
> > >> - 8:45 CEST
> > >> Which do you prefer?
> > >>
> > >> Hasan
> > >>
> > >>
> > >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> > >> yusufkaradag1402@gmail.com>
> > >> wrote:
> > >>
> > >> > Great, thank you so much.
> > >> > Regards!
> > >> >
> > >> > Yusuf Karadag
> > >> >
> > >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com>
> > wrote:
> > >> >
> > >> > > Hi Yusuf
> > >> > >
> > >> > > Yes, Reto has just released a new version of jena.parser. I hope
> we
> > >> can
> > >> > use
> > >> > > that soon.
> > >> > > I think we can schedule a meeting next week. I'll try to find some
> > >> slots
> > >> > > next week.
> > >> > >
> > >> > > Hasan
> > >> > >
> > >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > >> > yusufkaradag1402@gmail.com>
> > >> > > wrote:
> > >> > >
> > >> > > > Dear Mr. Hasan,
> > >> > > > Thank you for explaining to me. I am looking at to
> > >> > > > https://github.com/clerezza/jena.parser  and I see one class
> > >> > > > JenaParserProvider
> > >> > > > <
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > >> > > > >
> > >> > > > which I can see implements the *ParsingProvider* in
> > *representation
> > >> > > > *module.
> > >> > > > So the first thing would be to release new versions? I just
> > >> > > > didn't understand whether something was wrong or not with the
> > >> modules
> > >> > in
> > >> > > > github.com/clerezza? From the second problemö we then should
> make
> > >> sure
> > >> > > > that
> > >> > > > the representation module and rdf.jena.parser library use the
> same
> > >> > > versıon
> > >> > > > of slf4j? Also can we arrange a short meeting this week or next
> > week
> > >> > with
> > >> > > > the mentors to get to know each other and maybe to tell more
> about
> > >> the
> > >> > > code
> > >> > > > and structure if that's not too much trouble? Just getting a
> > little
> > >> bit
> > >> > > > confused about the old and new version/modules.
> > >> > > > Regards!
> > >> > > >
> > >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> > xushan.chen@gmail.com
> > >> >
> > >> > > > wrote:
> > >> > > >
> > >> > > > > Hi Yusuf
> > >> > > > >
> > >> > > > > There are two problems in tutorial 2:
> > >> > > > > 1. It uses a library outside of the Apache Clerezza project
> > called
> > >> > > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated
> > >> version
> > >> > of
> > >> > > > > Apache Clerezza. The package
> org.apache.clerezza:rdf.jena.parser
> > >> is
> > >> > > > > maintained outside of
> > >> > > > > Apache Clerezza in github.com/clerezza by reto and me. We can
> > >> update
> > >> > > the
> > >> > > > > package org.apache.clerezza:rdf.jena.parser to use the current
> > >> > release
> > >> > > > > version of Apache Clerezza. You could help here as well. You
> > could
> > >> > > study
> > >> > > > > the code and try to understand the relation of that package
> with
> > >> the
> > >> > > > > representation module.
> > >> > > > > The representation module is not implementing any parser, It
> > >> > delegates
> > >> > > > the
> > >> > > > > parsing functionality to any registered ParsingProvider. The
> > >> package
> > >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> > >> > functionality.
> > >> > > > > Thus, we principally should use the representation module as
> > well
> > >> as
> > >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > >> > > > > Let me know if you have any questions and whether you would
> like
> > >> to
> > >> > fix
> > >> > > > any
> > >> > > > > package in github.com/clerezza.
> > >> > > > >
> > >> > > > > 2. The multiple bindings problem of slf4j is due to different
> > libs
> > >> > used
> > >> > > > by
> > >> > > > > the representation module and rdf.jena.parser library.
> > >> > > > >
> > >> > > > > Cheers
> > >> > > > > Hasan
> > >> > > > >
> > >> > > > >
> > >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> > >> xushan.chen@gmail.com>
> > >> > > > > wrote:
> > >> > > > >
> > >> > > > > > Hi Yusuf
> > >> > > > > >
> > >> > > > > > Thx for the work. I'll have a look today or tomorrow.
> > >> > > > > >
> > >> > > > > > Regarding the website, you don't yet have access to the
> > >> repository.
> > >> > > So,
> > >> > > > > > I'll update it.
> > >> > > > > >
> > >> > > > > > Regards
> > >> > > > > > Hasan
> > >> > > > > >
> > >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > >> > > > > yusufkaradag1402@gmail.com>
> > >> > > > > > wrote:
> > >> > > > > >
> > >> > > > > >> Hello!
> > >> > > > > >> So i've tried to run tutorial with *representation *module.
> > >> But it
> > >> > > > kept
> > >> > > > > >> giving *null. *I've kept track of it and it's giving in
> this
> > >> line
> > >> > of
> > >> > > > > >> *Parser.class:
> > >> > > > > >> *
> > >> > > > > >>
> > >> > > > > >> ParsingProvider provider =
> > >> > > > > >>
> > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > >> > > > > >>
> > >> > > > > >> It can't get the provider and throws
> > >> > > > > >> *UnsupportedParsingFormatException.*
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >> *and the output was:
> > >> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> > >> > constructing
> > >> > > > > >> Parser
> > >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
> > >> text/turtle
> > >> > is
> > >> > > > > >> not supported by the used parser
> > >> > > > > >>
> > >> > > > > >> *
> > >> > > > > >>
> > >> > > > > >> Then I tried with the dependencies as written in Tutorial
> 2.
> > I
> > >> > moved
> > >> > > > > >> *example02.ttl *file under *resources *directory of module
> > and
> > >> > made
> > >> > > a
> > >> > > > > >> change in the code as:
> > >> > > > > >> package org.apache.clerezza.tutorial;
> > >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > >> > > > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > >> > > > > >>
> > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > >> > > > > >> import java.io.InputStream;import java.util.Iterator;
> > >> > > > > >> public class Example02 {
> > >> > > > > >>
> > >> > > > > >>     private static final Logger logger =
> > >> LoggerFactory.getLogger(
> > >> > > > > >> Example02.class );
> > >> > > > > >>
> > >> > > > > >>     public static void main( String[] args ) {
> > >> > > > > >>
> > >> > > > > >>         InputStream inputStream =
> > >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > >> > > "example02.ttl"
> > >> > > > > >> );
> > >> > > > > >>         Parser parser = Parser.getInstance();
> > >> > > > > >>
> > >> > > > > >>         try {
> > >> > > > > >>             Graph graph = parser.parse( inputStream,
> > >> > > > > >> SupportedFormat.TURTLE );
> > >> > > > > >>
> > >> > > > > >>             Iterator<Triple> iterator = graph.filter( null,
> > >> null,
> > >> > > null
> > >> > > > > );
> > >> > > > > >>             Triple triple;
> > >> > > > > >>
> > >> > > > > >>             while ( iterator.hasNext() ) {
> > >> > > > > >>                 triple = iterator.next();
> > >> > > > > >>                 logger.info( String.format( "%s %s %s",
> > >> > > > > >>                         triple.getSubject().toString(),
> > >> > > > > >>                         triple.getPredicate().toString(),
> > >> > > > > >>                         triple.getObject().toString()
> > >> > > > > >>                 ) );
> > >> > > > > >>             }
> > >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> > >> > > > > >>             logger.warn( String.format( "%s is not
> supported
> > by
> > >> > the
> > >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > >> > > > > >>         }
> > >> > > > > >>     }
> > >> > > > > >> }
> > >> > > > > >>
> > >> > > > > >> And i got the output as:
> > >> > > > > >>
> > >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > >> > > > > >> SLF4J: Found binding in
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > >> > > > > >> SLF4J: Found binding in
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > >> > > > > >> SLF4J: See
> http://www.slf4j.org/codes.html#multiple_bindings
> > >> for
> > >> > an
> > >> > > > > >> explanation.
> > >> > > > > >> SLF4J: Actual binding is of type
> > >> > > [org.slf4j.impl.SimpleLoggerFactory]
> > >> > > > > >> [main] INFO
> > org.apache.clerezza.rdf.core.serializedform.Parser
> > >> -
> > >> > > > > >> constructing Parser
> > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > >> > > > > >>
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > >> > > > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > >> > > > > >>
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > >> > > > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> > >> > > > > >>
> > >> > > > > >> I hope i managed to tell what i meant. Just a bit confused
> > why
> > >> it
> > >> > > > > >> didn't work with *representation* module. Should i try with
> > >> > > > > >> *representation *or this is fine?
> > >> > > > > >>
> > >> > > > > >> Regards!
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org>
> > >> wrote:
> > >> > > > > >>
> > >> > > > > >> > Hi Yusuf
> > >> > > > > >> >
> > >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as well
> > >> > > > > >> >
> > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > >> > > > > >> >
> > >> > > > > >> > Best regards
> > >> > > > > >> >
> > >> > > > > >> > Hasan
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >> --
> > >> > > > > >> Yusuf
> > >> > > > > >>
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > > --
> > >> > > > Yusuf
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> >
>

Re: Tutorial 2

Posted by Furkan KAMACI <fu...@gmail.com>.
Hi,

Since we have one week until the beginning of the coding period, it would
be nice to wrap up the things at the meeting.

Hasan, could you share the meeting link?

Kind Regards,
Furkan KAMACI

On Mon, May 31, 2021 at 10:36 AM Yusuf Karadağ <yu...@gmail.com>
wrote:

> I don't know whether you meant am or pm but I'm ok with both time.
> Regards!
>
> Yusuf Karadag
>
> On Mon, May 31, 2021, 09:35 Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello,
> > Tomorrow(Tuesday) 8 am would be ok for me.
> > Regards!
> >
> > Yusuf Karadag
> >
> > On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com> wrote:
> >
> >> Hi Yusuf
> >>
> >> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or Wed
> >> 8:00
> >> - 8:45 CEST
> >> Which do you prefer?
> >>
> >> Hasan
> >>
> >>
> >> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
> >> yusufkaradag1402@gmail.com>
> >> wrote:
> >>
> >> > Great, thank you so much.
> >> > Regards!
> >> >
> >> > Yusuf Karadag
> >> >
> >> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com>
> wrote:
> >> >
> >> > > Hi Yusuf
> >> > >
> >> > > Yes, Reto has just released a new version of jena.parser. I hope we
> >> can
> >> > use
> >> > > that soon.
> >> > > I think we can schedule a meeting next week. I'll try to find some
> >> slots
> >> > > next week.
> >> > >
> >> > > Hasan
> >> > >
> >> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> >> > yusufkaradag1402@gmail.com>
> >> > > wrote:
> >> > >
> >> > > > Dear Mr. Hasan,
> >> > > > Thank you for explaining to me. I am looking at to
> >> > > > https://github.com/clerezza/jena.parser  and I see one class
> >> > > > JenaParserProvider
> >> > > > <
> >> > > >
> >> > >
> >> >
> >>
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> >> > > > >
> >> > > > which I can see implements the *ParsingProvider* in
> *representation
> >> > > > *module.
> >> > > > So the first thing would be to release new versions? I just
> >> > > > didn't understand whether something was wrong or not with the
> >> modules
> >> > in
> >> > > > github.com/clerezza? From the second problemö we then should make
> >> sure
> >> > > > that
> >> > > > the representation module and rdf.jena.parser library use the same
> >> > > versıon
> >> > > > of slf4j? Also can we arrange a short meeting this week or next
> week
> >> > with
> >> > > > the mentors to get to know each other and maybe to tell more about
> >> the
> >> > > code
> >> > > > and structure if that's not too much trouble? Just getting a
> little
> >> bit
> >> > > > confused about the old and new version/modules.
> >> > > > Regards!
> >> > > >
> >> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <
> xushan.chen@gmail.com
> >> >
> >> > > > wrote:
> >> > > >
> >> > > > > Hi Yusuf
> >> > > > >
> >> > > > > There are two problems in tutorial 2:
> >> > > > > 1. It uses a library outside of the Apache Clerezza project
> called
> >> > > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated
> >> version
> >> > of
> >> > > > > Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser
> >> is
> >> > > > > maintained outside of
> >> > > > > Apache Clerezza in github.com/clerezza by reto and me. We can
> >> update
> >> > > the
> >> > > > > package org.apache.clerezza:rdf.jena.parser to use the current
> >> > release
> >> > > > > version of Apache Clerezza. You could help here as well. You
> could
> >> > > study
> >> > > > > the code and try to understand the relation of that package with
> >> the
> >> > > > > representation module.
> >> > > > > The representation module is not implementing any parser, It
> >> > delegates
> >> > > > the
> >> > > > > parsing functionality to any registered ParsingProvider. The
> >> package
> >> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> >> > functionality.
> >> > > > > Thus, we principally should use the representation module as
> well
> >> as
> >> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> >> > > > > Let me know if you have any questions and whether you would like
> >> to
> >> > fix
> >> > > > any
> >> > > > > package in github.com/clerezza.
> >> > > > >
> >> > > > > 2. The multiple bindings problem of slf4j is due to different
> libs
> >> > used
> >> > > > by
> >> > > > > the representation module and rdf.jena.parser library.
> >> > > > >
> >> > > > > Cheers
> >> > > > > Hasan
> >> > > > >
> >> > > > >
> >> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> >> xushan.chen@gmail.com>
> >> > > > > wrote:
> >> > > > >
> >> > > > > > Hi Yusuf
> >> > > > > >
> >> > > > > > Thx for the work. I'll have a look today or tomorrow.
> >> > > > > >
> >> > > > > > Regarding the website, you don't yet have access to the
> >> repository.
> >> > > So,
> >> > > > > > I'll update it.
> >> > > > > >
> >> > > > > > Regards
> >> > > > > > Hasan
> >> > > > > >
> >> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> >> > > > > yusufkaradag1402@gmail.com>
> >> > > > > > wrote:
> >> > > > > >
> >> > > > > >> Hello!
> >> > > > > >> So i've tried to run tutorial with *representation *module.
> >> But it
> >> > > > kept
> >> > > > > >> giving *null. *I've kept track of it and it's giving in this
> >> line
> >> > of
> >> > > > > >> *Parser.class:
> >> > > > > >> *
> >> > > > > >>
> >> > > > > >> ParsingProvider provider =
> >> > > > > >>
> >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> >> > > > > >>
> >> > > > > >> It can't get the provider and throws
> >> > > > > >> *UnsupportedParsingFormatException.*
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> *and the output was:
> >> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> >> > constructing
> >> > > > > >> Parser
> >> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
> >> text/turtle
> >> > is
> >> > > > > >> not supported by the used parser
> >> > > > > >>
> >> > > > > >> *
> >> > > > > >>
> >> > > > > >> Then I tried with the dependencies as written in Tutorial 2.
> I
> >> > moved
> >> > > > > >> *example02.ttl *file under *resources *directory of module
> and
> >> > made
> >> > > a
> >> > > > > >> change in the code as:
> >> > > > > >> package org.apache.clerezza.tutorial;
> >> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> >> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> >> > > > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> >> > > > > >>
> >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> >> > > > > >>
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> >> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> >> > > > > >> import java.io.InputStream;import java.util.Iterator;
> >> > > > > >> public class Example02 {
> >> > > > > >>
> >> > > > > >>     private static final Logger logger =
> >> LoggerFactory.getLogger(
> >> > > > > >> Example02.class );
> >> > > > > >>
> >> > > > > >>     public static void main( String[] args ) {
> >> > > > > >>
> >> > > > > >>         InputStream inputStream =
> >> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> >> > > "example02.ttl"
> >> > > > > >> );
> >> > > > > >>         Parser parser = Parser.getInstance();
> >> > > > > >>
> >> > > > > >>         try {
> >> > > > > >>             Graph graph = parser.parse( inputStream,
> >> > > > > >> SupportedFormat.TURTLE );
> >> > > > > >>
> >> > > > > >>             Iterator<Triple> iterator = graph.filter( null,
> >> null,
> >> > > null
> >> > > > > );
> >> > > > > >>             Triple triple;
> >> > > > > >>
> >> > > > > >>             while ( iterator.hasNext() ) {
> >> > > > > >>                 triple = iterator.next();
> >> > > > > >>                 logger.info( String.format( "%s %s %s",
> >> > > > > >>                         triple.getSubject().toString(),
> >> > > > > >>                         triple.getPredicate().toString(),
> >> > > > > >>                         triple.getObject().toString()
> >> > > > > >>                 ) );
> >> > > > > >>             }
> >> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> >> > > > > >>             logger.warn( String.format( "%s is not supported
> by
> >> > the
> >> > > > > >> used parser", SupportedFormat.TURTLE ) );
> >> > > > > >>         }
> >> > > > > >>     }
> >> > > > > >> }
> >> > > > > >>
> >> > > > > >> And i got the output as:
> >> > > > > >>
> >> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> >> > > > > >> SLF4J: Found binding in
> >> > > > > >>
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >> > > > > >> SLF4J: Found binding in
> >> > > > > >>
> >> > > > > >>
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >> > > > > >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
> >> for
> >> > an
> >> > > > > >> explanation.
> >> > > > > >> SLF4J: Actual binding is of type
> >> > > [org.slf4j.impl.SimpleLoggerFactory]
> >> > > > > >> [main] INFO
> org.apache.clerezza.rdf.core.serializedform.Parser
> >> -
> >> > > > > >> constructing Parser
> >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> >> > > > > >>
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >> > > > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> >> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> >> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> >> > > > > >>
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> >> > > > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> >> > > > > >>
> >> > > > > >> I hope i managed to tell what i meant. Just a bit confused
> why
> >> it
> >> > > > > >> didn't work with *representation* module. Should i try with
> >> > > > > >> *representation *or this is fine?
> >> > > > > >>
> >> > > > > >> Regards!
> >> > > > > >>
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org>
> >> wrote:
> >> > > > > >>
> >> > > > > >> > Hi Yusuf
> >> > > > > >> >
> >> > > > > >> > I'd be glad if you could try to fix tutorial 2 as well
> >> > > > > >> >
> >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> >> > > > > >> >
> >> > > > > >> > Best regards
> >> > > > > >> >
> >> > > > > >> > Hasan
> >> > > > > >> >
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> --
> >> > > > > >> Yusuf
> >> > > > > >>
> >> > > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > Yusuf
> >> > > >
> >> > >
> >> >
> >>
> >
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
I don't know whether you meant am or pm but I'm ok with both time.
Regards!

Yusuf Karadag

On Mon, May 31, 2021, 09:35 Yusuf Karadağ <yu...@gmail.com>
wrote:

> Hello,
> Tomorrow(Tuesday) 8 am would be ok for me.
> Regards!
>
> Yusuf Karadag
>
> On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com> wrote:
>
>> Hi Yusuf
>>
>> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or Wed
>> 8:00
>> - 8:45 CEST
>> Which do you prefer?
>>
>> Hasan
>>
>>
>> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <
>> yusufkaradag1402@gmail.com>
>> wrote:
>>
>> > Great, thank you so much.
>> > Regards!
>> >
>> > Yusuf Karadag
>> >
>> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com> wrote:
>> >
>> > > Hi Yusuf
>> > >
>> > > Yes, Reto has just released a new version of jena.parser. I hope we
>> can
>> > use
>> > > that soon.
>> > > I think we can schedule a meeting next week. I'll try to find some
>> slots
>> > > next week.
>> > >
>> > > Hasan
>> > >
>> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
>> > yusufkaradag1402@gmail.com>
>> > > wrote:
>> > >
>> > > > Dear Mr. Hasan,
>> > > > Thank you for explaining to me. I am looking at to
>> > > > https://github.com/clerezza/jena.parser  and I see one class
>> > > > JenaParserProvider
>> > > > <
>> > > >
>> > >
>> >
>> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
>> > > > >
>> > > > which I can see implements the *ParsingProvider* in *representation
>> > > > *module.
>> > > > So the first thing would be to release new versions? I just
>> > > > didn't understand whether something was wrong or not with the
>> modules
>> > in
>> > > > github.com/clerezza? From the second problemö we then should make
>> sure
>> > > > that
>> > > > the representation module and rdf.jena.parser library use the same
>> > > versıon
>> > > > of slf4j? Also can we arrange a short meeting this week or next week
>> > with
>> > > > the mentors to get to know each other and maybe to tell more about
>> the
>> > > code
>> > > > and structure if that's not too much trouble? Just getting a little
>> bit
>> > > > confused about the old and new version/modules.
>> > > > Regards!
>> > > >
>> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <xushan.chen@gmail.com
>> >
>> > > > wrote:
>> > > >
>> > > > > Hi Yusuf
>> > > > >
>> > > > > There are two problems in tutorial 2:
>> > > > > 1. It uses a library outside of the Apache Clerezza project called
>> > > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated
>> version
>> > of
>> > > > > Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser
>> is
>> > > > > maintained outside of
>> > > > > Apache Clerezza in github.com/clerezza by reto and me. We can
>> update
>> > > the
>> > > > > package org.apache.clerezza:rdf.jena.parser to use the current
>> > release
>> > > > > version of Apache Clerezza. You could help here as well. You could
>> > > study
>> > > > > the code and try to understand the relation of that package with
>> the
>> > > > > representation module.
>> > > > > The representation module is not implementing any parser, It
>> > delegates
>> > > > the
>> > > > > parsing functionality to any registered ParsingProvider. The
>> package
>> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
>> > functionality.
>> > > > > Thus, we principally should use the representation module as well
>> as
>> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
>> > > > > Let me know if you have any questions and whether you would like
>> to
>> > fix
>> > > > any
>> > > > > package in github.com/clerezza.
>> > > > >
>> > > > > 2. The multiple bindings problem of slf4j is due to different libs
>> > used
>> > > > by
>> > > > > the representation module and rdf.jena.parser library.
>> > > > >
>> > > > > Cheers
>> > > > > Hasan
>> > > > >
>> > > > >
>> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
>> xushan.chen@gmail.com>
>> > > > > wrote:
>> > > > >
>> > > > > > Hi Yusuf
>> > > > > >
>> > > > > > Thx for the work. I'll have a look today or tomorrow.
>> > > > > >
>> > > > > > Regarding the website, you don't yet have access to the
>> repository.
>> > > So,
>> > > > > > I'll update it.
>> > > > > >
>> > > > > > Regards
>> > > > > > Hasan
>> > > > > >
>> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
>> > > > > yusufkaradag1402@gmail.com>
>> > > > > > wrote:
>> > > > > >
>> > > > > >> Hello!
>> > > > > >> So i've tried to run tutorial with *representation *module.
>> But it
>> > > > kept
>> > > > > >> giving *null. *I've kept track of it and it's giving in this
>> line
>> > of
>> > > > > >> *Parser.class:
>> > > > > >> *
>> > > > > >>
>> > > > > >> ParsingProvider provider =
>> > > > > >>
>> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>> > > > > >>
>> > > > > >> It can't get the provider and throws
>> > > > > >> *UnsupportedParsingFormatException.*
>> > > > > >>
>> > > > > >>
>> > > > > >> *and the output was:
>> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
>> > constructing
>> > > > > >> Parser
>> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 -
>> text/turtle
>> > is
>> > > > > >> not supported by the used parser
>> > > > > >>
>> > > > > >> *
>> > > > > >>
>> > > > > >> Then I tried with the dependencies as written in Tutorial 2. I
>> > moved
>> > > > > >> *example02.ttl *file under *resources *directory of module and
>> > made
>> > > a
>> > > > > >> change in the code as:
>> > > > > >> package org.apache.clerezza.tutorial;
>> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
>> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
>> > > > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
>> > > > > >>
>> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>> > > > > >>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
>> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
>> > > > > >> import java.io.InputStream;import java.util.Iterator;
>> > > > > >> public class Example02 {
>> > > > > >>
>> > > > > >>     private static final Logger logger =
>> LoggerFactory.getLogger(
>> > > > > >> Example02.class );
>> > > > > >>
>> > > > > >>     public static void main( String[] args ) {
>> > > > > >>
>> > > > > >>         InputStream inputStream =
>> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
>> > > "example02.ttl"
>> > > > > >> );
>> > > > > >>         Parser parser = Parser.getInstance();
>> > > > > >>
>> > > > > >>         try {
>> > > > > >>             Graph graph = parser.parse( inputStream,
>> > > > > >> SupportedFormat.TURTLE );
>> > > > > >>
>> > > > > >>             Iterator<Triple> iterator = graph.filter( null,
>> null,
>> > > null
>> > > > > );
>> > > > > >>             Triple triple;
>> > > > > >>
>> > > > > >>             while ( iterator.hasNext() ) {
>> > > > > >>                 triple = iterator.next();
>> > > > > >>                 logger.info( String.format( "%s %s %s",
>> > > > > >>                         triple.getSubject().toString(),
>> > > > > >>                         triple.getPredicate().toString(),
>> > > > > >>                         triple.getObject().toString()
>> > > > > >>                 ) );
>> > > > > >>             }
>> > > > > >>         } catch ( UnsupportedFormatException ex ) {
>> > > > > >>             logger.warn( String.format( "%s is not supported by
>> > the
>> > > > > >> used parser", SupportedFormat.TURTLE ) );
>> > > > > >>         }
>> > > > > >>     }
>> > > > > >> }
>> > > > > >>
>> > > > > >> And i got the output as:
>> > > > > >>
>> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
>> > > > > >> SLF4J: Found binding in
>> > > > > >>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> > > > > >> SLF4J: Found binding in
>> > > > > >>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> > > > > >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
>> for
>> > an
>> > > > > >> explanation.
>> > > > > >> SLF4J: Actual binding is of type
>> > > [org.slf4j.impl.SimpleLoggerFactory]
>> > > > > >> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser
>> -
>> > > > > >> constructing Parser
>> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> > > > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> > > > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
>> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
>> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> > > > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
>> > > > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
>> > > > > >>
>> > > > > >> I hope i managed to tell what i meant. Just a bit confused why
>> it
>> > > > > >> didn't work with *representation* module. Should i try with
>> > > > > >> *representation *or this is fine?
>> > > > > >>
>> > > > > >> Regards!
>> > > > > >>
>> > > > > >>
>> > > > > >>
>> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org>
>> wrote:
>> > > > > >>
>> > > > > >> > Hi Yusuf
>> > > > > >> >
>> > > > > >> > I'd be glad if you could try to fix tutorial 2 as well
>> > > > > >> >
>> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>> > > > > >> >
>> > > > > >> > Best regards
>> > > > > >> >
>> > > > > >> > Hasan
>> > > > > >> >
>> > > > > >>
>> > > > > >>
>> > > > > >> --
>> > > > > >> Yusuf
>> > > > > >>
>> > > > > >
>> > > > >
>> > > >
>> > > >
>> > > > --
>> > > > Yusuf
>> > > >
>> > >
>> >
>>
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Hello,
Tomorrow(Tuesday) 8 am would be ok for me.
Regards!

Yusuf Karadag

On Mon, May 31, 2021, 07:09 Hasan Hasan <xu...@gmail.com> wrote:

> Hi Yusuf
>
> We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or Wed 8:00
> - 8:45 CEST
> Which do you prefer?
>
> Hasan
>
>
> On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <yusufkaradag1402@gmail.com
> >
> wrote:
>
> > Great, thank you so much.
> > Regards!
> >
> > Yusuf Karadag
> >
> > On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com> wrote:
> >
> > > Hi Yusuf
> > >
> > > Yes, Reto has just released a new version of jena.parser. I hope we can
> > use
> > > that soon.
> > > I think we can schedule a meeting next week. I'll try to find some
> slots
> > > next week.
> > >
> > > Hasan
> > >
> > > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> > yusufkaradag1402@gmail.com>
> > > wrote:
> > >
> > > > Dear Mr. Hasan,
> > > > Thank you for explaining to me. I am looking at to
> > > > https://github.com/clerezza/jena.parser  and I see one class
> > > > JenaParserProvider
> > > > <
> > > >
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > > >
> > > > which I can see implements the *ParsingProvider* in *representation
> > > > *module.
> > > > So the first thing would be to release new versions? I just
> > > > didn't understand whether something was wrong or not with the modules
> > in
> > > > github.com/clerezza? From the second problemö we then should make
> sure
> > > > that
> > > > the representation module and rdf.jena.parser library use the same
> > > versıon
> > > > of slf4j? Also can we arrange a short meeting this week or next week
> > with
> > > > the mentors to get to know each other and maybe to tell more about
> the
> > > code
> > > > and structure if that's not too much trouble? Just getting a little
> bit
> > > > confused about the old and new version/modules.
> > > > Regards!
> > > >
> > > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <xu...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Yusuf
> > > > >
> > > > > There are two problems in tutorial 2:
> > > > > 1. It uses a library outside of the Apache Clerezza project called
> > > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated version
> > of
> > > > > Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser is
> > > > > maintained outside of
> > > > > Apache Clerezza in github.com/clerezza by reto and me. We can
> update
> > > the
> > > > > package org.apache.clerezza:rdf.jena.parser to use the current
> > release
> > > > > version of Apache Clerezza. You could help here as well. You could
> > > study
> > > > > the code and try to understand the relation of that package with
> the
> > > > > representation module.
> > > > > The representation module is not implementing any parser, It
> > delegates
> > > > the
> > > > > parsing functionality to any registered ParsingProvider. The
> package
> > > > > org.apache.clerezza:rdf.jena.parser is implementing that
> > functionality.
> > > > > Thus, we principally should use the representation module as well
> as
> > > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > > > Let me know if you have any questions and whether you would like to
> > fix
> > > > any
> > > > > package in github.com/clerezza.
> > > > >
> > > > > 2. The multiple bindings problem of slf4j is due to different libs
> > used
> > > > by
> > > > > the representation module and rdf.jena.parser library.
> > > > >
> > > > > Cheers
> > > > > Hasan
> > > > >
> > > > >
> > > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <
> xushan.chen@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Yusuf
> > > > > >
> > > > > > Thx for the work. I'll have a look today or tomorrow.
> > > > > >
> > > > > > Regarding the website, you don't yet have access to the
> repository.
> > > So,
> > > > > > I'll update it.
> > > > > >
> > > > > > Regards
> > > > > > Hasan
> > > > > >
> > > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > > > yusufkaradag1402@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > >> Hello!
> > > > > >> So i've tried to run tutorial with *representation *module. But
> it
> > > > kept
> > > > > >> giving *null. *I've kept track of it and it's giving in this
> line
> > of
> > > > > >> *Parser.class:
> > > > > >> *
> > > > > >>
> > > > > >> ParsingProvider provider =
> > > > > >>
> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > > > >>
> > > > > >> It can't get the provider and throws
> > > > > >> *UnsupportedParsingFormatException.*
> > > > > >>
> > > > > >>
> > > > > >> *and the output was:
> > > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> > constructing
> > > > > >> Parser
> > > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle
> > is
> > > > > >> not supported by the used parser
> > > > > >>
> > > > > >> *
> > > > > >>
> > > > > >> Then I tried with the dependencies as written in Tutorial 2. I
> > moved
> > > > > >> *example02.ttl *file under *resources *directory of module and
> > made
> > > a
> > > > > >> change in the code as:
> > > > > >> package org.apache.clerezza.tutorial;
> > > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > > > >>
> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > > > >>
> > > > > >>
> > > > >
> > > >
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > > > >> import java.io.InputStream;import java.util.Iterator;
> > > > > >> public class Example02 {
> > > > > >>
> > > > > >>     private static final Logger logger =
> LoggerFactory.getLogger(
> > > > > >> Example02.class );
> > > > > >>
> > > > > >>     public static void main( String[] args ) {
> > > > > >>
> > > > > >>         InputStream inputStream =
> > > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > > "example02.ttl"
> > > > > >> );
> > > > > >>         Parser parser = Parser.getInstance();
> > > > > >>
> > > > > >>         try {
> > > > > >>             Graph graph = parser.parse( inputStream,
> > > > > >> SupportedFormat.TURTLE );
> > > > > >>
> > > > > >>             Iterator<Triple> iterator = graph.filter( null,
> null,
> > > null
> > > > > );
> > > > > >>             Triple triple;
> > > > > >>
> > > > > >>             while ( iterator.hasNext() ) {
> > > > > >>                 triple = iterator.next();
> > > > > >>                 logger.info( String.format( "%s %s %s",
> > > > > >>                         triple.getSubject().toString(),
> > > > > >>                         triple.getPredicate().toString(),
> > > > > >>                         triple.getObject().toString()
> > > > > >>                 ) );
> > > > > >>             }
> > > > > >>         } catch ( UnsupportedFormatException ex ) {
> > > > > >>             logger.warn( String.format( "%s is not supported by
> > the
> > > > > >> used parser", SupportedFormat.TURTLE ) );
> > > > > >>         }
> > > > > >>     }
> > > > > >> }
> > > > > >>
> > > > > >> And i got the output as:
> > > > > >>
> > > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > > > >> SLF4J: Found binding in
> > > > > >>
> > > > > >>
> > > > >
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > > >> SLF4J: Found binding in
> > > > > >>
> > > > > >>
> > > > >
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > > >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings
> for
> > an
> > > > > >> explanation.
> > > > > >> SLF4J: Actual binding is of type
> > > [org.slf4j.impl.SimpleLoggerFactory]
> > > > > >> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> > > > > >> constructing Parser
> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> > > > > >>
> > > > > >> I hope i managed to tell what i meant. Just a bit confused why
> it
> > > > > >> didn't work with *representation* module. Should i try with
> > > > > >> *representation *or this is fine?
> > > > > >>
> > > > > >> Regards!
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> > > > > >>
> > > > > >> > Hi Yusuf
> > > > > >> >
> > > > > >> > I'd be glad if you could try to fix tutorial 2 as well
> > > > > >> >
> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > > > >> >
> > > > > >> > Best regards
> > > > > >> >
> > > > > >> > Hasan
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> Yusuf
> > > > > >>
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Yusuf
> > > >
> > >
> >
>

Re: Tutorial 2

Posted by Hasan Hasan <xu...@gmail.com>.
Hi Yusuf

We can have a meeting on either Tue (tomorrow) 8:00 - 8:45 CEST or Wed 8:00
- 8:45 CEST
Which do you prefer?

Hasan


On Sat, May 29, 2021 at 10:33 PM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Great, thank you so much.
> Regards!
>
> Yusuf Karadag
>
> On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com> wrote:
>
> > Hi Yusuf
> >
> > Yes, Reto has just released a new version of jena.parser. I hope we can
> use
> > that soon.
> > I think we can schedule a meeting next week. I'll try to find some slots
> > next week.
> >
> > Hasan
> >
> > On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> > wrote:
> >
> > > Dear Mr. Hasan,
> > > Thank you for explaining to me. I am looking at to
> > > https://github.com/clerezza/jena.parser  and I see one class
> > > JenaParserProvider
> > > <
> > >
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > > >
> > > which I can see implements the *ParsingProvider* in *representation
> > > *module.
> > > So the first thing would be to release new versions? I just
> > > didn't understand whether something was wrong or not with the modules
> in
> > > github.com/clerezza? From the second problemö we then should make sure
> > > that
> > > the representation module and rdf.jena.parser library use the same
> > versıon
> > > of slf4j? Also can we arrange a short meeting this week or next week
> with
> > > the mentors to get to know each other and maybe to tell more about the
> > code
> > > and structure if that's not too much trouble? Just getting a little bit
> > > confused about the old and new version/modules.
> > > Regards!
> > >
> > > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <xu...@gmail.com>
> > > wrote:
> > >
> > > > Hi Yusuf
> > > >
> > > > There are two problems in tutorial 2:
> > > > 1. It uses a library outside of the Apache Clerezza project called
> > > > org.apache.clerezza:rdf.jena.parser which uses an out-dated version
> of
> > > > Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser is
> > > > maintained outside of
> > > > Apache Clerezza in github.com/clerezza by reto and me. We can update
> > the
> > > > package org.apache.clerezza:rdf.jena.parser to use the current
> release
> > > > version of Apache Clerezza. You could help here as well. You could
> > study
> > > > the code and try to understand the relation of that package with the
> > > > representation module.
> > > > The representation module is not implementing any parser, It
> delegates
> > > the
> > > > parsing functionality to any registered ParsingProvider. The package
> > > > org.apache.clerezza:rdf.jena.parser is implementing that
> functionality.
> > > > Thus, we principally should use the representation module as well as
> > > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > > Let me know if you have any questions and whether you would like to
> fix
> > > any
> > > > package in github.com/clerezza.
> > > >
> > > > 2. The multiple bindings problem of slf4j is due to different libs
> used
> > > by
> > > > the representation module and rdf.jena.parser library.
> > > >
> > > > Cheers
> > > > Hasan
> > > >
> > > >
> > > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <xu...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Yusuf
> > > > >
> > > > > Thx for the work. I'll have a look today or tomorrow.
> > > > >
> > > > > Regarding the website, you don't yet have access to the repository.
> > So,
> > > > > I'll update it.
> > > > >
> > > > > Regards
> > > > > Hasan
> > > > >
> > > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > > yusufkaradag1402@gmail.com>
> > > > > wrote:
> > > > >
> > > > >> Hello!
> > > > >> So i've tried to run tutorial with *representation *module. But it
> > > kept
> > > > >> giving *null. *I've kept track of it and it's giving in this line
> of
> > > > >> *Parser.class:
> > > > >> *
> > > > >>
> > > > >> ParsingProvider provider =
> > > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > > >>
> > > > >> It can't get the provider and throws
> > > > >> *UnsupportedParsingFormatException.*
> > > > >>
> > > > >>
> > > > >> *and the output was:
> > > > >> [main] INFO org.apache.clerezza.representation.Parser -
> constructing
> > > > >> Parser
> > > > >> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle
> is
> > > > >> not supported by the used parser
> > > > >>
> > > > >> *
> > > > >>
> > > > >> Then I tried with the dependencies as written in Tutorial 2. I
> moved
> > > > >> *example02.ttl *file under *resources *directory of module and
> made
> > a
> > > > >> change in the code as:
> > > > >> package org.apache.clerezza.tutorial;
> > > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > > >>
> > > > >>
> > > >
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > > >> import java.io.InputStream;import java.util.Iterator;
> > > > >> public class Example02 {
> > > > >>
> > > > >>     private static final Logger logger = LoggerFactory.getLogger(
> > > > >> Example02.class );
> > > > >>
> > > > >>     public static void main( String[] args ) {
> > > > >>
> > > > >>         InputStream inputStream =
> > > > >> Example02.class.getClassLoader().getResourceAsStream(
> > "example02.ttl"
> > > > >> );
> > > > >>         Parser parser = Parser.getInstance();
> > > > >>
> > > > >>         try {
> > > > >>             Graph graph = parser.parse( inputStream,
> > > > >> SupportedFormat.TURTLE );
> > > > >>
> > > > >>             Iterator<Triple> iterator = graph.filter( null, null,
> > null
> > > > );
> > > > >>             Triple triple;
> > > > >>
> > > > >>             while ( iterator.hasNext() ) {
> > > > >>                 triple = iterator.next();
> > > > >>                 logger.info( String.format( "%s %s %s",
> > > > >>                         triple.getSubject().toString(),
> > > > >>                         triple.getPredicate().toString(),
> > > > >>                         triple.getObject().toString()
> > > > >>                 ) );
> > > > >>             }
> > > > >>         } catch ( UnsupportedFormatException ex ) {
> > > > >>             logger.warn( String.format( "%s is not supported by
> the
> > > > >> used parser", SupportedFormat.TURTLE ) );
> > > > >>         }
> > > > >>     }
> > > > >> }
> > > > >>
> > > > >> And i got the output as:
> > > > >>
> > > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > > >> SLF4J: Found binding in
> > > > >>
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> SLF4J: Found binding in
> > > > >>
> > > > >>
> > > >
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > > >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for
> an
> > > > >> explanation.
> > > > >> SLF4J: Actual binding is of type
> > [org.slf4j.impl.SimpleLoggerFactory]
> > > > >> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> > > > >> constructing Parser
> > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> > > > >>
> > > > >> I hope i managed to tell what i meant. Just a bit confused why it
> > > > >> didn't work with *representation* module. Should i try with
> > > > >> *representation *or this is fine?
> > > > >>
> > > > >> Regards!
> > > > >>
> > > > >>
> > > > >>
> > > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> > > > >>
> > > > >> > Hi Yusuf
> > > > >> >
> > > > >> > I'd be glad if you could try to fix tutorial 2 as well
> > > > >> >
> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > > >> >
> > > > >> > Best regards
> > > > >> >
> > > > >> > Hasan
> > > > >> >
> > > > >>
> > > > >>
> > > > >> --
> > > > >> Yusuf
> > > > >>
> > > > >
> > > >
> > >
> > >
> > > --
> > > Yusuf
> > >
> >
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Great, thank you so much.
Regards!

Yusuf Karadag

On Sat, May 29, 2021, 22:19 Hasan Hasan <xu...@gmail.com> wrote:

> Hi Yusuf
>
> Yes, Reto has just released a new version of jena.parser. I hope we can use
> that soon.
> I think we can schedule a meeting next week. I'll try to find some slots
> next week.
>
> Hasan
>
> On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Dear Mr. Hasan,
> > Thank you for explaining to me. I am looking at to
> > https://github.com/clerezza/jena.parser  and I see one class
> > JenaParserProvider
> > <
> >
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> > >
> > which I can see implements the *ParsingProvider* in *representation
> > *module.
> > So the first thing would be to release new versions? I just
> > didn't understand whether something was wrong or not with the modules in
> > github.com/clerezza? From the second problemö we then should make sure
> > that
> > the representation module and rdf.jena.parser library use the same
> versıon
> > of slf4j? Also can we arrange a short meeting this week or next week with
> > the mentors to get to know each other and maybe to tell more about the
> code
> > and structure if that's not too much trouble? Just getting a little bit
> > confused about the old and new version/modules.
> > Regards!
> >
> > On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <xu...@gmail.com>
> > wrote:
> >
> > > Hi Yusuf
> > >
> > > There are two problems in tutorial 2:
> > > 1. It uses a library outside of the Apache Clerezza project called
> > > org.apache.clerezza:rdf.jena.parser which uses an out-dated version of
> > > Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser is
> > > maintained outside of
> > > Apache Clerezza in github.com/clerezza by reto and me. We can update
> the
> > > package org.apache.clerezza:rdf.jena.parser to use the current release
> > > version of Apache Clerezza. You could help here as well. You could
> study
> > > the code and try to understand the relation of that package with the
> > > representation module.
> > > The representation module is not implementing any parser, It delegates
> > the
> > > parsing functionality to any registered ParsingProvider. The package
> > > org.apache.clerezza:rdf.jena.parser is implementing that functionality.
> > > Thus, we principally should use the representation module as well as
> > > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > > Let me know if you have any questions and whether you would like to fix
> > any
> > > package in github.com/clerezza.
> > >
> > > 2. The multiple bindings problem of slf4j is due to different libs used
> > by
> > > the representation module and rdf.jena.parser library.
> > >
> > > Cheers
> > > Hasan
> > >
> > >
> > > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <xu...@gmail.com>
> > > wrote:
> > >
> > > > Hi Yusuf
> > > >
> > > > Thx for the work. I'll have a look today or tomorrow.
> > > >
> > > > Regarding the website, you don't yet have access to the repository.
> So,
> > > > I'll update it.
> > > >
> > > > Regards
> > > > Hasan
> > > >
> > > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > > yusufkaradag1402@gmail.com>
> > > > wrote:
> > > >
> > > >> Hello!
> > > >> So i've tried to run tutorial with *representation *module. But it
> > kept
> > > >> giving *null. *I've kept track of it and it's giving in this line of
> > > >> *Parser.class:
> > > >> *
> > > >>
> > > >> ParsingProvider provider =
> > > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > > >>
> > > >> It can't get the provider and throws
> > > >> *UnsupportedParsingFormatException.*
> > > >>
> > > >>
> > > >> *and the output was:
> > > >> [main] INFO org.apache.clerezza.representation.Parser - constructing
> > > >> Parser
> > > >> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> > > >> not supported by the used parser
> > > >>
> > > >> *
> > > >>
> > > >> Then I tried with the dependencies as written in Tutorial 2. I moved
> > > >> *example02.ttl *file under *resources *directory of module and made
> a
> > > >> change in the code as:
> > > >> package org.apache.clerezza.tutorial;
> > > >> import org.apache.clerezza.commons.rdf.Graph;import
> > > >> org.apache.clerezza.commons.rdf.Triple;import
> > > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > > >>
> > > >>
> > >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > > >> import java.io.InputStream;import java.util.Iterator;
> > > >> public class Example02 {
> > > >>
> > > >>     private static final Logger logger = LoggerFactory.getLogger(
> > > >> Example02.class );
> > > >>
> > > >>     public static void main( String[] args ) {
> > > >>
> > > >>         InputStream inputStream =
> > > >> Example02.class.getClassLoader().getResourceAsStream(
> "example02.ttl"
> > > >> );
> > > >>         Parser parser = Parser.getInstance();
> > > >>
> > > >>         try {
> > > >>             Graph graph = parser.parse( inputStream,
> > > >> SupportedFormat.TURTLE );
> > > >>
> > > >>             Iterator<Triple> iterator = graph.filter( null, null,
> null
> > > );
> > > >>             Triple triple;
> > > >>
> > > >>             while ( iterator.hasNext() ) {
> > > >>                 triple = iterator.next();
> > > >>                 logger.info( String.format( "%s %s %s",
> > > >>                         triple.getSubject().toString(),
> > > >>                         triple.getPredicate().toString(),
> > > >>                         triple.getObject().toString()
> > > >>                 ) );
> > > >>             }
> > > >>         } catch ( UnsupportedFormatException ex ) {
> > > >>             logger.warn( String.format( "%s is not supported by the
> > > >> used parser", SupportedFormat.TURTLE ) );
> > > >>         }
> > > >>     }
> > > >> }
> > > >>
> > > >> And i got the output as:
> > > >>
> > > >> SLF4J: Class path contains multiple SLF4J bindings.
> > > >> SLF4J: Found binding in
> > > >>
> > > >>
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > >> SLF4J: Found binding in
> > > >>
> > > >>
> > >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > > >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> > > >> explanation.
> > > >> SLF4J: Actual binding is of type
> [org.slf4j.impl.SimpleLoggerFactory]
> > > >> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> > > >> constructing Parser
> > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > > >> <http://clerezza.apache.org/2017/01/example#isA>
> > > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> > > >>
> > > >> I hope i managed to tell what i meant. Just a bit confused why it
> > > >> didn't work with *representation* module. Should i try with
> > > >> *representation *or this is fine?
> > > >>
> > > >> Regards!
> > > >>
> > > >>
> > > >>
> > > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> > > >>
> > > >> > Hi Yusuf
> > > >> >
> > > >> > I'd be glad if you could try to fix tutorial 2 as well
> > > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > > >> >
> > > >> > Best regards
> > > >> >
> > > >> > Hasan
> > > >> >
> > > >>
> > > >>
> > > >> --
> > > >> Yusuf
> > > >>
> > > >
> > >
> >
> >
> > --
> > Yusuf
> >
>

Re: Tutorial 2

Posted by Hasan Hasan <xu...@gmail.com>.
Hi Yusuf

Yes, Reto has just released a new version of jena.parser. I hope we can use
that soon.
I think we can schedule a meeting next week. I'll try to find some slots
next week.

Hasan

On Sat, May 29, 2021 at 9:56 PM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Dear Mr. Hasan,
> Thank you for explaining to me. I am looking at to
> https://github.com/clerezza/jena.parser  and I see one class
> JenaParserProvider
> <
> https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java
> >
> which I can see implements the *ParsingProvider* in *representation
> *module.
> So the first thing would be to release new versions? I just
> didn't understand whether something was wrong or not with the modules in
> github.com/clerezza? From the second problemö we then should make sure
> that
> the representation module and rdf.jena.parser library use the same versıon
> of slf4j? Also can we arrange a short meeting this week or next week with
> the mentors to get to know each other and maybe to tell more about the code
> and structure if that's not too much trouble? Just getting a little bit
> confused about the old and new version/modules.
> Regards!
>
> On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <xu...@gmail.com>
> wrote:
>
> > Hi Yusuf
> >
> > There are two problems in tutorial 2:
> > 1. It uses a library outside of the Apache Clerezza project called
> > org.apache.clerezza:rdf.jena.parser which uses an out-dated version of
> > Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser is
> > maintained outside of
> > Apache Clerezza in github.com/clerezza by reto and me. We can update the
> > package org.apache.clerezza:rdf.jena.parser to use the current release
> > version of Apache Clerezza. You could help here as well. You could study
> > the code and try to understand the relation of that package with the
> > representation module.
> > The representation module is not implementing any parser, It delegates
> the
> > parsing functionality to any registered ParsingProvider. The package
> > org.apache.clerezza:rdf.jena.parser is implementing that functionality.
> > Thus, we principally should use the representation module as well as
> > org.apache.clerezza:rdf.jena.parser in tutorial 2.
> > Let me know if you have any questions and whether you would like to fix
> any
> > package in github.com/clerezza.
> >
> > 2. The multiple bindings problem of slf4j is due to different libs used
> by
> > the representation module and rdf.jena.parser library.
> >
> > Cheers
> > Hasan
> >
> >
> > On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <xu...@gmail.com>
> > wrote:
> >
> > > Hi Yusuf
> > >
> > > Thx for the work. I'll have a look today or tomorrow.
> > >
> > > Regarding the website, you don't yet have access to the repository. So,
> > > I'll update it.
> > >
> > > Regards
> > > Hasan
> > >
> > > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> > yusufkaradag1402@gmail.com>
> > > wrote:
> > >
> > >> Hello!
> > >> So i've tried to run tutorial with *representation *module. But it
> kept
> > >> giving *null. *I've kept track of it and it's giving in this line of
> > >> *Parser.class:
> > >> *
> > >>
> > >> ParsingProvider provider =
> > >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> > >>
> > >> It can't get the provider and throws
> > >> *UnsupportedParsingFormatException.*
> > >>
> > >>
> > >> *and the output was:
> > >> [main] INFO org.apache.clerezza.representation.Parser - constructing
> > >> Parser
> > >> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> > >> not supported by the used parser
> > >>
> > >> *
> > >>
> > >> Then I tried with the dependencies as written in Tutorial 2. I moved
> > >> *example02.ttl *file under *resources *directory of module and made a
> > >> change in the code as:
> > >> package org.apache.clerezza.tutorial;
> > >> import org.apache.clerezza.commons.rdf.Graph;import
> > >> org.apache.clerezza.commons.rdf.Triple;import
> > >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> > >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> > >>
> > >>
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > >> import java.io.InputStream;import java.util.Iterator;
> > >> public class Example02 {
> > >>
> > >>     private static final Logger logger = LoggerFactory.getLogger(
> > >> Example02.class );
> > >>
> > >>     public static void main( String[] args ) {
> > >>
> > >>         InputStream inputStream =
> > >> Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
> > >> );
> > >>         Parser parser = Parser.getInstance();
> > >>
> > >>         try {
> > >>             Graph graph = parser.parse( inputStream,
> > >> SupportedFormat.TURTLE );
> > >>
> > >>             Iterator<Triple> iterator = graph.filter( null, null, null
> > );
> > >>             Triple triple;
> > >>
> > >>             while ( iterator.hasNext() ) {
> > >>                 triple = iterator.next();
> > >>                 logger.info( String.format( "%s %s %s",
> > >>                         triple.getSubject().toString(),
> > >>                         triple.getPredicate().toString(),
> > >>                         triple.getObject().toString()
> > >>                 ) );
> > >>             }
> > >>         } catch ( UnsupportedFormatException ex ) {
> > >>             logger.warn( String.format( "%s is not supported by the
> > >> used parser", SupportedFormat.TURTLE ) );
> > >>         }
> > >>     }
> > >> }
> > >>
> > >> And i got the output as:
> > >>
> > >> SLF4J: Class path contains multiple SLF4J bindings.
> > >> SLF4J: Found binding in
> > >>
> > >>
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > >> SLF4J: Found binding in
> > >>
> > >>
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> > >> explanation.
> > >> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> > >> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> > >> constructing Parser
> > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> > >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > >> <http://clerezza.apache.org/2017/01/example#isA>
> > >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> > >>
> > >> I hope i managed to tell what i meant. Just a bit confused why it
> > >> didn't work with *representation* module. Should i try with
> > >> *representation *or this is fine?
> > >>
> > >> Regards!
> > >>
> > >>
> > >>
> > >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> > >>
> > >> > Hi Yusuf
> > >> >
> > >> > I'd be glad if you could try to fix tutorial 2 as well
> > >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > >> >
> > >> > Best regards
> > >> >
> > >> > Hasan
> > >> >
> > >>
> > >>
> > >> --
> > >> Yusuf
> > >>
> > >
> >
>
>
> --
> Yusuf
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Dear Mr. Hasan,
Thank you for explaining to me. I am looking at to
https://github.com/clerezza/jena.parser  and I see one class
JenaParserProvider
<https://github.com/clerezza/jena.parser/blob/master/src/main/java/org/apache/clerezza/rdf/jena/parser/JenaParserProvider.java>
which I can see implements the *ParsingProvider* in *representation *module.
So the first thing would be to release new versions? I just
didn't understand whether something was wrong or not with the modules in
github.com/clerezza? From the second problemö we then should make sure that
the representation module and rdf.jena.parser library use the same versıon
of slf4j? Also can we arrange a short meeting this week or next week with
the mentors to get to know each other and maybe to tell more about the code
and structure if that's not too much trouble? Just getting a little bit
confused about the old and new version/modules.
Regards!

On Fri, May 28, 2021 at 10:26 AM Hasan Hasan <xu...@gmail.com> wrote:

> Hi Yusuf
>
> There are two problems in tutorial 2:
> 1. It uses a library outside of the Apache Clerezza project called
> org.apache.clerezza:rdf.jena.parser which uses an out-dated version of
> Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser is
> maintained outside of
> Apache Clerezza in github.com/clerezza by reto and me. We can update the
> package org.apache.clerezza:rdf.jena.parser to use the current release
> version of Apache Clerezza. You could help here as well. You could study
> the code and try to understand the relation of that package with the
> representation module.
> The representation module is not implementing any parser, It delegates the
> parsing functionality to any registered ParsingProvider. The package
> org.apache.clerezza:rdf.jena.parser is implementing that functionality.
> Thus, we principally should use the representation module as well as
> org.apache.clerezza:rdf.jena.parser in tutorial 2.
> Let me know if you have any questions and whether you would like to fix any
> package in github.com/clerezza.
>
> 2. The multiple bindings problem of slf4j is due to different libs used by
> the representation module and rdf.jena.parser library.
>
> Cheers
> Hasan
>
>
> On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <xu...@gmail.com>
> wrote:
>
> > Hi Yusuf
> >
> > Thx for the work. I'll have a look today or tomorrow.
> >
> > Regarding the website, you don't yet have access to the repository. So,
> > I'll update it.
> >
> > Regards
> > Hasan
> >
> > On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <
> yusufkaradag1402@gmail.com>
> > wrote:
> >
> >> Hello!
> >> So i've tried to run tutorial with *representation *module. But it kept
> >> giving *null. *I've kept track of it and it's giving in this line of
> >> *Parser.class:
> >> *
> >>
> >> ParsingProvider provider =
> >> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> >>
> >> It can't get the provider and throws
> >> *UnsupportedParsingFormatException.*
> >>
> >>
> >> *and the output was:
> >> [main] INFO org.apache.clerezza.representation.Parser - constructing
> >> Parser
> >> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> >> not supported by the used parser
> >>
> >> *
> >>
> >> Then I tried with the dependencies as written in Tutorial 2. I moved
> >> *example02.ttl *file under *resources *directory of module and made a
> >> change in the code as:
> >> package org.apache.clerezza.tutorial;
> >> import org.apache.clerezza.commons.rdf.Graph;import
> >> org.apache.clerezza.commons.rdf.Triple;import
> >> org.apache.clerezza.rdf.core.serializedform.Parser;import
> >> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> >>
> >>
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> >> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> >> import java.io.InputStream;import java.util.Iterator;
> >> public class Example02 {
> >>
> >>     private static final Logger logger = LoggerFactory.getLogger(
> >> Example02.class );
> >>
> >>     public static void main( String[] args ) {
> >>
> >>         InputStream inputStream =
> >> Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
> >> );
> >>         Parser parser = Parser.getInstance();
> >>
> >>         try {
> >>             Graph graph = parser.parse( inputStream,
> >> SupportedFormat.TURTLE );
> >>
> >>             Iterator<Triple> iterator = graph.filter( null, null, null
> );
> >>             Triple triple;
> >>
> >>             while ( iterator.hasNext() ) {
> >>                 triple = iterator.next();
> >>                 logger.info( String.format( "%s %s %s",
> >>                         triple.getSubject().toString(),
> >>                         triple.getPredicate().toString(),
> >>                         triple.getObject().toString()
> >>                 ) );
> >>             }
> >>         } catch ( UnsupportedFormatException ex ) {
> >>             logger.warn( String.format( "%s is not supported by the
> >> used parser", SupportedFormat.TURTLE ) );
> >>         }
> >>     }
> >> }
> >>
> >> And i got the output as:
> >>
> >> SLF4J: Class path contains multiple SLF4J bindings.
> >> SLF4J: Found binding in
> >>
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >> SLF4J: Found binding in
> >>
> >>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> >> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> >> explanation.
> >> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> >> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> >> constructing Parser
> >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> >> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> >> [main] INFO org.apache.clerezza.tutorial.Example02 -
> >> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> >> <http://clerezza.apache.org/2017/01/example#isA>
> >> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> >>
> >> I hope i managed to tell what i meant. Just a bit confused why it
> >> didn't work with *representation* module. Should i try with
> >> *representation *or this is fine?
> >>
> >> Regards!
> >>
> >>
> >>
> >> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> >>
> >> > Hi Yusuf
> >> >
> >> > I'd be glad if you could try to fix tutorial 2 as well
> >> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> >> >
> >> > Best regards
> >> >
> >> > Hasan
> >> >
> >>
> >>
> >> --
> >> Yusuf
> >>
> >
>


-- 
Yusuf

Re: Tutorial 2

Posted by Hasan Hasan <xu...@gmail.com>.
Hi Yusuf

There are two problems in tutorial 2:
1. It uses a library outside of the Apache Clerezza project called
org.apache.clerezza:rdf.jena.parser which uses an out-dated version of
Apache Clerezza. The package org.apache.clerezza:rdf.jena.parser is
maintained outside of
Apache Clerezza in github.com/clerezza by reto and me. We can update the
package org.apache.clerezza:rdf.jena.parser to use the current release
version of Apache Clerezza. You could help here as well. You could study
the code and try to understand the relation of that package with the
representation module.
The representation module is not implementing any parser, It delegates the
parsing functionality to any registered ParsingProvider. The package
org.apache.clerezza:rdf.jena.parser is implementing that functionality.
Thus, we principally should use the representation module as well as
org.apache.clerezza:rdf.jena.parser in tutorial 2.
Let me know if you have any questions and whether you would like to fix any
package in github.com/clerezza.

2. The multiple bindings problem of slf4j is due to different libs used by
the representation module and rdf.jena.parser library.

Cheers
Hasan


On Thu, May 27, 2021 at 10:45 AM Hasan Hasan <xu...@gmail.com> wrote:

> Hi Yusuf
>
> Thx for the work. I'll have a look today or tomorrow.
>
> Regarding the website, you don't yet have access to the repository. So,
> I'll update it.
>
> Regards
> Hasan
>
> On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
>> Hello!
>> So i've tried to run tutorial with *representation *module. But it kept
>> giving *null. *I've kept track of it and it's giving in this line of
>> *Parser.class:
>> *
>>
>> ParsingProvider provider =
>> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>>
>> It can't get the provider and throws
>> *UnsupportedParsingFormatException.*
>>
>>
>> *and the output was:
>> [main] INFO org.apache.clerezza.representation.Parser - constructing
>> Parser
>> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
>> not supported by the used parser
>>
>> *
>>
>> Then I tried with the dependencies as written in Tutorial 2. I moved
>> *example02.ttl *file under *resources *directory of module and made a
>> change in the code as:
>> package org.apache.clerezza.tutorial;
>> import org.apache.clerezza.commons.rdf.Graph;import
>> org.apache.clerezza.commons.rdf.Triple;import
>> org.apache.clerezza.rdf.core.serializedform.Parser;import
>> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>>
>> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
>> org.slf4j.Logger;import org.slf4j.LoggerFactory;
>> import java.io.InputStream;import java.util.Iterator;
>> public class Example02 {
>>
>>     private static final Logger logger = LoggerFactory.getLogger(
>> Example02.class );
>>
>>     public static void main( String[] args ) {
>>
>>         InputStream inputStream =
>> Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
>> );
>>         Parser parser = Parser.getInstance();
>>
>>         try {
>>             Graph graph = parser.parse( inputStream,
>> SupportedFormat.TURTLE );
>>
>>             Iterator<Triple> iterator = graph.filter( null, null, null );
>>             Triple triple;
>>
>>             while ( iterator.hasNext() ) {
>>                 triple = iterator.next();
>>                 logger.info( String.format( "%s %s %s",
>>                         triple.getSubject().toString(),
>>                         triple.getPredicate().toString(),
>>                         triple.getObject().toString()
>>                 ) );
>>             }
>>         } catch ( UnsupportedFormatException ex ) {
>>             logger.warn( String.format( "%s is not supported by the
>> used parser", SupportedFormat.TURTLE ) );
>>         }
>>     }
>> }
>>
>> And i got the output as:
>>
>> SLF4J: Class path contains multiple SLF4J bindings.
>> SLF4J: Found binding in
>>
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: Found binding in
>>
>> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>> explanation.
>> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
>> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
>> constructing Parser
>> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> <http://clerezza.apache.org/2017/01/example#hasFirstName>
>> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
>> [main] INFO org.apache.clerezza.tutorial.Example02 -
>> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
>> <http://clerezza.apache.org/2017/01/example#isA>
>> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
>>
>> I hope i managed to tell what i meant. Just a bit confused why it
>> didn't work with *representation* module. Should i try with
>> *representation *or this is fine?
>>
>> Regards!
>>
>>
>>
>> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
>>
>> > Hi Yusuf
>> >
>> > I'd be glad if you could try to fix tutorial 2 as well
>> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>> >
>> > Best regards
>> >
>> > Hasan
>> >
>>
>>
>> --
>> Yusuf
>>
>

Re: Tutorial 2

Posted by Hasan Hasan <xu...@gmail.com>.
Hi Yusuf

Thx for the work. I'll have a look today or tomorrow.

Regarding the website, you don't yet have access to the repository. So,
I'll update it.

Regards
Hasan

On Tue, May 25, 2021 at 8:39 PM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Hello!
> So i've tried to run tutorial with *representation *module. But it kept
> giving *null. *I've kept track of it and it's giving in this line of
> *Parser.class:
> *
>
> ParsingProvider provider =
> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>
> It can't get the provider and throws
> *UnsupportedParsingFormatException.*
>
>
> *and the output was:
> [main] INFO org.apache.clerezza.representation.Parser - constructing Parser
> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> not supported by the used parser
>
> *
>
> Then I tried with the dependencies as written in Tutorial 2. I moved
> *example02.ttl *file under *resources *directory of module and made a
> change in the code as:
> package org.apache.clerezza.tutorial;
> import org.apache.clerezza.commons.rdf.Graph;import
> org.apache.clerezza.commons.rdf.Triple;import
> org.apache.clerezza.rdf.core.serializedform.Parser;import
> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> import java.io.InputStream;import java.util.Iterator;
> public class Example02 {
>
>     private static final Logger logger = LoggerFactory.getLogger(
> Example02.class );
>
>     public static void main( String[] args ) {
>
>         InputStream inputStream =
> Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
> );
>         Parser parser = Parser.getInstance();
>
>         try {
>             Graph graph = parser.parse( inputStream,
> SupportedFormat.TURTLE );
>
>             Iterator<Triple> iterator = graph.filter( null, null, null );
>             Triple triple;
>
>             while ( iterator.hasNext() ) {
>                 triple = iterator.next();
>                 logger.info( String.format( "%s %s %s",
>                         triple.getSubject().toString(),
>                         triple.getPredicate().toString(),
>                         triple.getObject().toString()
>                 ) );
>             }
>         } catch ( UnsupportedFormatException ex ) {
>             logger.warn( String.format( "%s is not supported by the
> used parser", SupportedFormat.TURTLE ) );
>         }
>     }
> }
>
> And i got the output as:
>
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> constructing Parser
> [main] INFO org.apache.clerezza.tutorial.Example02 -
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> [main] INFO org.apache.clerezza.tutorial.Example02 -
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> <http://clerezza.apache.org/2017/01/example#isA>
> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
>
> I hope i managed to tell what i meant. Just a bit confused why it
> didn't work with *representation* module. Should i try with
> *representation *or this is fine?
>
> Regards!
>
>
>
> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
>
> > Hi Yusuf
> >
> > I'd be glad if you could try to fix tutorial 2 as well
> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> >
> > Best regards
> >
> > Hasan
> >
>
>
> --
> Yusuf
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Hello,
Sure, but where and how will i change it? In website? Or in Github?
Regards!

Yusuf Karadag

On Tue, May 25, 2021, 21:47 Furkan KAMACI <fu...@gmail.com> wrote:

> Hi Hasan,
>
> What do you think about adding these tutorials into clerezza as an example
> module? You can check Tika as an example:
> https://github.com/apache/tika/tree/main/tika-example
>
> By the way, Yusuf, could you update the first tutorial if there is not any
> problem left?
>
> Kind Regards,
> Furkan KAMACI
>
> On Tue, May 25, 2021 at 9:39 PM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello!
> > So i've tried to run tutorial with *representation *module. But it kept
> > giving *null. *I've kept track of it and it's giving in this line of
> > *Parser.class:
> > *
> >
> > ParsingProvider provider =
> > (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> >
> > It can't get the provider and throws
> > *UnsupportedParsingFormatException.*
> >
> >
> > *and the output was:
> > [main] INFO org.apache.clerezza.representation.Parser - constructing
> Parser
> > [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> > not supported by the used parser
> >
> > *
> >
> > Then I tried with the dependencies as written in Tutorial 2. I moved
> > *example02.ttl *file under *resources *directory of module and made a
> > change in the code as:
> > package org.apache.clerezza.tutorial;
> > import org.apache.clerezza.commons.rdf.Graph;import
> > org.apache.clerezza.commons.rdf.Triple;import
> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> > org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > import java.io.InputStream;import java.util.Iterator;
> > public class Example02 {
> >
> >     private static final Logger logger = LoggerFactory.getLogger(
> > Example02.class );
> >
> >     public static void main( String[] args ) {
> >
> >         InputStream inputStream =
> > Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
> > );
> >         Parser parser = Parser.getInstance();
> >
> >         try {
> >             Graph graph = parser.parse( inputStream,
> > SupportedFormat.TURTLE );
> >
> >             Iterator<Triple> iterator = graph.filter( null, null, null );
> >             Triple triple;
> >
> >             while ( iterator.hasNext() ) {
> >                 triple = iterator.next();
> >                 logger.info( String.format( "%s %s %s",
> >                         triple.getSubject().toString(),
> >                         triple.getPredicate().toString(),
> >                         triple.getObject().toString()
> >                 ) );
> >             }
> >         } catch ( UnsupportedFormatException ex ) {
> >             logger.warn( String.format( "%s is not supported by the
> > used parser", SupportedFormat.TURTLE ) );
> >         }
> >     }
> > }
> >
> > And i got the output as:
> >
> > SLF4J: Class path contains multiple SLF4J bindings.
> > SLF4J: Found binding in
> >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > SLF4J: Found binding in
> >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> > explanation.
> > SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> > [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> > constructing Parser
> > [main] INFO org.apache.clerezza.tutorial.Example02 -
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > [main] INFO org.apache.clerezza.tutorial.Example02 -
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > <http://clerezza.apache.org/2017/01/example#isA>
> > <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> >
> > I hope i managed to tell what i meant. Just a bit confused why it
> > didn't work with *representation* module. Should i try with
> > *representation *or this is fine?
> >
> > Regards!
> >
> >
> >
> > On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> >
> > > Hi Yusuf
> > >
> > > I'd be glad if you could try to fix tutorial 2 as well
> > > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > >
> > > Best regards
> > >
> > > Hasan
> > >
> >
> >
> > --
> > Yusuf
> >
>

Re: Tutorial 2

Posted by Hasan Hasan <xu...@gmail.com>.
Hi Furkan

I think that is a good idea.
We can create a new module with
groupId: org.apache.clerezza
artifactId: tutorial

And each tutorial will reside in a specific folder, e.g.,
src/main/java/org/apache/clerezza/tutorial/tutorial-42
providing a specific method for the main class to run that tutorial.

@Reto Gmür <re...@apache.org> What do you think?

Cheers
Hasan

On Tue, May 25, 2021 at 9:47 PM Furkan KAMACI <fu...@gmail.com>
wrote:

> Hi Hasan,
>
> What do you think about adding these tutorials into clerezza as an example
> module? You can check Tika as an example:
> https://github.com/apache/tika/tree/main/tika-example
>
> By the way, Yusuf, could you update the first tutorial if there is not any
> problem left?
>
> Kind Regards,
> Furkan KAMACI
>
> On Tue, May 25, 2021 at 9:39 PM Yusuf Karadağ <yu...@gmail.com>
> wrote:
>
> > Hello!
> > So i've tried to run tutorial with *representation *module. But it kept
> > giving *null. *I've kept track of it and it's giving in this line of
> > *Parser.class:
> > *
> >
> > ParsingProvider provider =
> > (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
> >
> > It can't get the provider and throws
> > *UnsupportedParsingFormatException.*
> >
> >
> > *and the output was:
> > [main] INFO org.apache.clerezza.representation.Parser - constructing
> Parser
> > [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> > not supported by the used parser
> >
> > *
> >
> > Then I tried with the dependencies as written in Tutorial 2. I moved
> > *example02.ttl *file under *resources *directory of module and made a
> > change in the code as:
> > package org.apache.clerezza.tutorial;
> > import org.apache.clerezza.commons.rdf.Graph;import
> > org.apache.clerezza.commons.rdf.Triple;import
> > org.apache.clerezza.rdf.core.serializedform.Parser;import
> > org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
> >
> >
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> > org.slf4j.Logger;import org.slf4j.LoggerFactory;
> > import java.io.InputStream;import java.util.Iterator;
> > public class Example02 {
> >
> >     private static final Logger logger = LoggerFactory.getLogger(
> > Example02.class );
> >
> >     public static void main( String[] args ) {
> >
> >         InputStream inputStream =
> > Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
> > );
> >         Parser parser = Parser.getInstance();
> >
> >         try {
> >             Graph graph = parser.parse( inputStream,
> > SupportedFormat.TURTLE );
> >
> >             Iterator<Triple> iterator = graph.filter( null, null, null );
> >             Triple triple;
> >
> >             while ( iterator.hasNext() ) {
> >                 triple = iterator.next();
> >                 logger.info( String.format( "%s %s %s",
> >                         triple.getSubject().toString(),
> >                         triple.getPredicate().toString(),
> >                         triple.getObject().toString()
> >                 ) );
> >             }
> >         } catch ( UnsupportedFormatException ex ) {
> >             logger.warn( String.format( "%s is not supported by the
> > used parser", SupportedFormat.TURTLE ) );
> >         }
> >     }
> > }
> >
> > And i got the output as:
> >
> > SLF4J: Class path contains multiple SLF4J bindings.
> > SLF4J: Found binding in
> >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > SLF4J: Found binding in
> >
> >
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> > explanation.
> > SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> > [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> > constructing Parser
> > [main] INFO org.apache.clerezza.tutorial.Example02 -
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > <http://clerezza.apache.org/2017/01/example#hasFirstName>
> > "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> > [main] INFO org.apache.clerezza.tutorial.Example02 -
> > org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> > <http://clerezza.apache.org/2017/01/example#isA>
> > <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
> >
> > I hope i managed to tell what i meant. Just a bit confused why it
> > didn't work with *representation* module. Should i try with
> > *representation *or this is fine?
> >
> > Regards!
> >
> >
> >
> > On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
> >
> > > Hi Yusuf
> > >
> > > I'd be glad if you could try to fix tutorial 2 as well
> > > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> > >
> > > Best regards
> > >
> > > Hasan
> > >
> >
> >
> > --
> > Yusuf
> >
>

Re: Tutorial 2

Posted by Furkan KAMACI <fu...@gmail.com>.
Hi Hasan,

What do you think about adding these tutorials into clerezza as an example
module? You can check Tika as an example:
https://github.com/apache/tika/tree/main/tika-example

By the way, Yusuf, could you update the first tutorial if there is not any
problem left?

Kind Regards,
Furkan KAMACI

On Tue, May 25, 2021 at 9:39 PM Yusuf Karadağ <yu...@gmail.com>
wrote:

> Hello!
> So i've tried to run tutorial with *representation *module. But it kept
> giving *null. *I've kept track of it and it's giving in this line of
> *Parser.class:
> *
>
> ParsingProvider provider =
> (ParsingProvider)this.providerMap.get(deParameterizedIdentifier);
>
> It can't get the provider and throws
> *UnsupportedParsingFormatException.*
>
>
> *and the output was:
> [main] INFO org.apache.clerezza.representation.Parser - constructing Parser
> [main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
> not supported by the used parser
>
> *
>
> Then I tried with the dependencies as written in Tutorial 2. I moved
> *example02.ttl *file under *resources *directory of module and made a
> change in the code as:
> package org.apache.clerezza.tutorial;
> import org.apache.clerezza.commons.rdf.Graph;import
> org.apache.clerezza.commons.rdf.Triple;import
> org.apache.clerezza.rdf.core.serializedform.Parser;import
> org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
>
> org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
> org.slf4j.Logger;import org.slf4j.LoggerFactory;
> import java.io.InputStream;import java.util.Iterator;
> public class Example02 {
>
>     private static final Logger logger = LoggerFactory.getLogger(
> Example02.class );
>
>     public static void main( String[] args ) {
>
>         InputStream inputStream =
> Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
> );
>         Parser parser = Parser.getInstance();
>
>         try {
>             Graph graph = parser.parse( inputStream,
> SupportedFormat.TURTLE );
>
>             Iterator<Triple> iterator = graph.filter( null, null, null );
>             Triple triple;
>
>             while ( iterator.hasNext() ) {
>                 triple = iterator.next();
>                 logger.info( String.format( "%s %s %s",
>                         triple.getSubject().toString(),
>                         triple.getPredicate().toString(),
>                         triple.getObject().toString()
>                 ) );
>             }
>         } catch ( UnsupportedFormatException ex ) {
>             logger.warn( String.format( "%s is not supported by the
> used parser", SupportedFormat.TURTLE ) );
>         }
>     }
> }
>
> And i got the output as:
>
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
>
> [jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> [main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
> constructing Parser
> [main] INFO org.apache.clerezza.tutorial.Example02 -
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> <http://clerezza.apache.org/2017/01/example#hasFirstName>
> "Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
> [main] INFO org.apache.clerezza.tutorial.Example02 -
> org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
> <http://clerezza.apache.org/2017/01/example#isA>
> <http://clerezza.apache.org/2017/01/example#ClerezzaUser>
>
> I hope i managed to tell what i meant. Just a bit confused why it
> didn't work with *representation* module. Should i try with
> *representation *or this is fine?
>
> Regards!
>
>
>
> On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:
>
> > Hi Yusuf
> >
> > I'd be glad if you could try to fix tutorial 2 as well
> > http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
> >
> > Best regards
> >
> > Hasan
> >
>
>
> --
> Yusuf
>

Re: Tutorial 2

Posted by Yusuf Karadağ <yu...@gmail.com>.
Hello!
So i've tried to run tutorial with *representation *module. But it kept
giving *null. *I've kept track of it and it's giving in this line of
*Parser.class:
*

ParsingProvider provider =
(ParsingProvider)this.providerMap.get(deParameterizedIdentifier);

It can't get the provider and throws
*UnsupportedParsingFormatException.*


*and the output was:
[main] INFO org.apache.clerezza.representation.Parser - constructing Parser
[main] WARN org.apache.clerezza.tutorial.Example02 - text/turtle is
not supported by the used parser

*

Then I tried with the dependencies as written in Tutorial 2. I moved
*example02.ttl *file under *resources *directory of module and made a
change in the code as:
package org.apache.clerezza.tutorial;
import org.apache.clerezza.commons.rdf.Graph;import
org.apache.clerezza.commons.rdf.Triple;import
org.apache.clerezza.rdf.core.serializedform.Parser;import
org.apache.clerezza.rdf.core.serializedform.SupportedFormat;import
org.apache.clerezza.rdf.core.serializedform.UnsupportedFormatException;import
org.slf4j.Logger;import org.slf4j.LoggerFactory;
import java.io.InputStream;import java.util.Iterator;
public class Example02 {

    private static final Logger logger = LoggerFactory.getLogger(
Example02.class );

    public static void main( String[] args ) {

        InputStream inputStream =
Example02.class.getClassLoader().getResourceAsStream( "example02.ttl"
);
        Parser parser = Parser.getInstance();

        try {
            Graph graph = parser.parse( inputStream, SupportedFormat.TURTLE );

            Iterator<Triple> iterator = graph.filter( null, null, null );
            Triple triple;

            while ( iterator.hasNext() ) {
                triple = iterator.next();
                logger.info( String.format( "%s %s %s",
                        triple.getSubject().toString(),
                        triple.getPredicate().toString(),
                        triple.getObject().toString()
                ) );
            }
        } catch ( UnsupportedFormatException ex ) {
            logger.warn( String.format( "%s is not supported by the
used parser", SupportedFormat.TURTLE ) );
        }
    }
}

And i got the output as:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/C:/Users/yusufkaradag2/.m2/repository/org/slf4j/slf4j-log4j12/1.7.6/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[main] INFO org.apache.clerezza.rdf.core.serializedform.Parser -
constructing Parser
[main] INFO org.apache.clerezza.tutorial.Example02 -
org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
<http://clerezza.apache.org/2017/01/example#hasFirstName>
"Hasan"^^<http://www.w3.org/2001/XMLSchema#string>
[main] INFO org.apache.clerezza.tutorial.Example02 -
org.apache.clerezza.rdf.jena.commons.JenaBNodeWrapper@4e636c84
<http://clerezza.apache.org/2017/01/example#isA>
<http://clerezza.apache.org/2017/01/example#ClerezzaUser>

I hope i managed to tell what i meant. Just a bit confused why it
didn't work with *representation* module. Should i try with
*representation *or this is fine?

Regards!



On Tue, May 25, 2021 at 2:33 PM Hasan <ha...@apache.org> wrote:

> Hi Yusuf
>
> I'd be glad if you could try to fix tutorial 2 as well
> http://clerezza.apache.org/getting-started/tutorial/tutorial-02/
>
> Best regards
>
> Hasan
>


-- 
Yusuf