Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] How is it going

Hi Heshan,

Great that you are working hard, and good to know that there are no bugs in the AST :)

When it comes to the plan and the ShaclSailConnection. The ShaclSailConnection should generate the plan when commit() is called and validate that the data is according to the plan. The way this happens is that ShaclSailConnection calls the generatePlan methods in each shape’s property, and then calls validate() (or something like that) on the return value of generatePlan. The ShaclSailConnection just calls the appropriate methods in the shape properties and the plan, it doesn’t do much else with regards to validation. 

Your plan is going to be quite simple for implementing support for minCount. At the end of your chain (plan) you will have a node of type MinCountValidator. This node needs some method on it (eg. validate()) that the ShaclSailConnection can call. For the time being this method should probably just return true/false. In the future we will expand this, especially when looking at maxCount.

The the condition for GroupBy (e.g., the variable to group by, ?a in the diagram) should be set in the generatePlan (or getPlan as I wrote in the code) method in MinCountPropertyShape. This is where GroupBy should be instantiated.

Would probably be a good idea to write some tests for OuterLeftJoin, GroupBy and Count.

Håvard


On 14 Jul 2017, at 07:10, Heshan Jayasinghe <shanujse@xxxxxxxxx> wrote:

Hi Håvard,

I checked our AST with multiple minCount and multiple Shapes it working fine.I go though research papers and tutorials last days lambda expressions and Iterator little bit new to me.
I go though with plan and some places i couldn't understand properly. Now i am writing iterator implementations to OuterLeftJoin, GroupBy, Count. Can you please tell me what is the validation plan in  ShaclSailConnection and what is the difference between ShaclSailConnection and mincount validation.
I think Groupby section logic (condition) we right in main class and we retrieve that condition  to out GroupBy class. is that correct? 

I will commit my code to Github after implement this OuterLeftJoin,GroupBy,Count classes.

Thank you,
regards,
Heshan



On Thu, Jul 13, 2017 at 7:53 PM, "Håvard M. Ottestad" <hmottestad@xxxxxxxxx> wrote:
Hi Heshan,

It’s almost been a week. How is it going? 

Håvard

On 7 Jul 2017, at 13:47, Heshan Jayasinghe <shanujse@xxxxxxxxx> wrote:

Hi Håvard,

Yes,I started to implement new plan.It is little bit challenging and i am still working on it.i'll give you a feedback after tomorrow.

Thank you!
reagrds,
Heshan

On Thu, Jul 6, 2017 at 10:03 PM, "Håvard M. Ottestad" <hmottestad@xxxxxxxxx> wrote:
Hi Heshan,

After I showed you how to build the plan and execute it yesterday, have you started looking at it? Do you think you will manage?

########################
Maybe someone else here on rdf4j develop knows of a good resource for understanding the volcano model and iterators as well as how to generate a plan from an AST???

Håvard



--
Heshan Jayasinghe
UndergraduateUniversity of Moratuwa
(+94) 777 627 663



--
Heshan Jayasinghe
UndergraduateUniversity of Moratuwa
(+94) 777 627 663


Back to the top