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

Refactor meta-programming for named tuples #52

Closed azaroth42 closed 5 years ago

azaroth42 commented 5 years ago

A massive set of changes due to refactoring to use named tuples everywhere for the metaprogramming aspects, rather than dictionaries.

Also changed to use id(what) rather than what.id for determining if serialization is needed, per discussion with @kasei regarding blank nodes

Added multiplicity for all properties, even if the profile says not to use them