thegetty / crom

Python library to make creation of CIDOC CRM easier by mapping classes/predicates to python objects
Apache License 2.0
49 stars 16 forks source link

Add inverse Relationship properties #95

Closed azaroth42 closed 4 years ago

azaroth42 commented 4 years ago

So that we can do:

top = Painting(art=1)
top._label = "Another Example Painting"
p2 = Painting(art=1)
p2._label = "Yet Another Example Painting"
r = model.Relationship(label="Relationship between Paintings")
top.related_from_by = r
r.relates_to = p2