Arquisoft / viadeSpec

Viade Data Model Specification
https://arquisoft.github.io/viadeSpec/
MIT License
7 stars 1 forks source link

How to share routes? #34

Open christianpe98 opened 4 years ago

christianpe98 commented 4 years ago

Perhaps this issue really should not be in this specification but I think it is an important point so that we are all as interoperable as possible. Our group proposes the approach followed by Inrupt (sharing routes through the use of notifications). Explanation of the Inrupt approach: A user A shares a resource with a user B, so user A gives permissions to user B about the resource he is going to share and user B must save in his POD the URI of the resource to be able to access it. How can user A inform user B about the URI of the resource if user A doesn't have write permissions about the POD of user B? To solve this Inrupt uses notifications.

User A sends a notification to the inbox folder of user B's POD with the share route information. When user B login the application will show him the notifications and if he accepts (this is really not necessary) the application with the login of user B will save the URI of the path in the POD of B.

We will have to decide: 1- Should we all follow Inrupt's approach and share routes by using notifications? 2- If we do it as Inrupt, what form should the notifications have and in which inbox will we save them? 3- When a user accepts the shared route notification, where will we store the URIs of the routes that they share with us?

I hope you have explained it to me fairly well. @labra is there any error in what I explain?

uo258865 commented 4 years ago

Yes i saw the format proposed but i thought that ShareAction would be better than Offer, but it was only an idea

uo258865 commented 4 years ago

And do you have a proposal for your idea? @Raulpemol

@InigoGutierrez I think that your proposal is good but type Offer is not a good one because we are not offering, so i think it would be better what i said, ShareAction.. I don't put it in the proposal because i want to know your opinion about that because it's your proposal.

I know we have to agree but if we don't decide it early, my group will start with one of those propose because it's getting late.

Raulpemol commented 4 years ago

Of course I have, I've already told you that it is in the pull request and I have also explained how it is supposed to work. Or what do you mean?

uo258865 commented 4 years ago

I'm sorry i didn't see it because i was looking in the comments. You mean this, right? [https://github.com/Arquisoft/viadeSpec/blob/POD_Data_Management_Proposal/main/jsonldProposal/sharedRoutesExample.json]

Raulpemol commented 4 years ago

Exactly, that one.

uo258865 commented 4 years ago

Okey, i saw it was proposed 7 days ago so i'm gonna try to follow yours specification. So, to sumup, the files are in the folder viade/shared and the name of the files is the corresponding part of the webID of the friend.