Arquisoft / viadeSpec

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

Groups #38

Open agmrezz opened 4 years ago

agmrezz commented 4 years ago

This is or proposal for group management in viade:

Since solid's address books lacks documentation and we really don't know how to use them we have decided to use or own approach.

Currently we follow the following structure, locating the groups inside /viade/groups

{
  "@context": {
    "@version": 1.1,
    "users": {
      "@container": "@list",
      "@id": "schema:Person"
    },
    "name": {
      "@id": "schema:name",
      "@type": "xs:string"
    },
"url": {
      "@id": "schema:url",
      "@type": "xs:string"
    },
    "schema": "http://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#"
  },
  "name": "Group name",
  "users": [
    {
      "name": "contactName",
      "url": "https://hellothere.inrupt.net/profile/card#me"
    },
    {
      "name": "contactName",
      "url": "https://generalkenobi.inrupt.net/profile/card#me"
    }
  ]
}
UO264345 commented 4 years ago

Is the name in the users list needed? What is the difference between that name and the profile's one, or what is its purpose?

InigoGutierrez commented 4 years ago

I agree, this looks good but we probably don't need the names stored there.

agmrezz commented 4 years ago

Yeah you are right

guillefun commented 4 years ago

Following that format, two or more groups could have the same name? If so, each archive in the pod whic contains information of a group should be named with a unique id?