Dear: I think the new data class mechanism in Python 3.7 would be a great fit for manipulating RDF data in Python: https://realpython.com/python-data-classes/ Martin