Hierarchical and Contrastive Representation Learning for Knowledge-aware Recommendation