Sinar / popit_relationship

This is a POC to feed our popit database to graph software, Currently on networkx and neo4j
9 stars 5 forks source link

Match relationship categories in Politikus (business partner, associate, romantic) #33

Closed kaerumy closed 4 years ago

kaerumy commented 4 years ago

image

Instead of collaboratesWith, the relationship needs to be more specific as defined in relationship category

There are editorial and legal implications of not differentiating associate vs business partner.

Jeffrey04 commented 4 years ago

Currently the type of a relationship between Person is deduced here https://github.com/Sinar/popit_relationship/blob/master/src/popit_relationship/sync.py#L192 based on the token assigned

So if there are other new token that I can map to the relationship schema, I will add new entries to the mapping. As of now, even if the relationship is not handled, you can still query them as the original relationship token is stored as property

match (a:Person)-[rel {name: "romantic"}]->(b:Person) return a, b