atomicdata-dev / atomic-data-docs

Atomic Data is a specification to make it easier to exchange data.
https://docs.atomicdata.dev
MIT License
17 stars 7 forks source link

How to make pivot models / rich relationships / edges in Atomic Data #132

Open joepio opened 2 years ago

joepio commented 2 years ago

We often want to provide more information about the relationships between resources:

In labeled property graph databases, you'd probably model these in an edge. In Atomic Data (and RDF), relationships can't have their own properties.

This means we need a pivot model.

Some questions about this:

jonassmedegaard commented 2 years ago

To me, a friendship is a a social concept.

In one RDF ontology that model is expressed only indirectly as the existence of two agents mutually "knowing" each other (this is how e.g. FOAF models it), whereas another ontology can choose to express it as an explicit Friendship requires ties to exactly two agents.

Through reasoning, data of the former model can be resolved as matching the latter model.

I don't really understand

How do we deal with relationsships where the from and to are really no different?

Your question makes no sense to me: Assuming you a talking about FOAF-like modelling, as I see it a friendship only exist when it is mutual - i.e. if I know you but you don't know me then it is a case of a fan of a hero.

joepio commented 2 years ago

Maybe friendship isn't that great of an example, as you could indeed argue that friendship only exists if two individuals agree on its existence.

I'll add some more examples in the issue to illustrate the more abstract problem I'm trying to solve.