Yesterday I got some work done with Django AP Toolkit, finally solved one of the things that was bothering me in the mismatch between graph-oriented and object/relational-oriented programming: https://activitypub.mushroomlabs.com/topics/reference_context_architecture/#reference-based-relationships