Knowledge-aware data generation