beakerbrowser / unwalled.garden

Schemas for a p2p social-media network built on the Dat Web.
MIT License
131 stars 10 forks source link

Relationships #27

Open pfrazee opened 5 years ago

pfrazee commented 5 years ago

Adds "relationships". Example relationship:

{
  "type": "unwalled.garden/relationship",
  "a": "dat://alice.com",
  "rel": "spouse",
  "b": "dat://bob.com",
  "createdAt": "2018-12-07T02:52:11.947Z"
}

Relationships are declarations of a linkage between two resources on the Web. They can be used to declare things such as "Alice is the spouse of Bob" and "Carla is an employee of Foo Inc."

The records take the shape of {a, rel, b}. The way to read relationships is as follows:

{a} is a/an/the {rel} of/to/about/with {b}

For instance, the example above reads as:

dat://alice.com is the spouse of dat://bob.com

I don't have a very specific use-case in mind for relationships, other than fulfilling a natural part of social networking (declaring your relationships with each other and things in the world).