Rule Based Learning with Dynamic (Graph) Neural Networks