Rule-Guided Compositional Representation Learning on Knowledge Graphs