Extracted triple_to_dot into an own method