بَنَى الْأَمِيرُ الْمَدْرَسَةَ.
The ruler built the school.
If workers did the physical building while the ruler commissioned or financed it, attributing the building to the ruler may be rational metaphor. The verb retains its usual meaning; the transferred aspect is the predication.
If the ruler literally constructed it, the attribution need not be figurative. Identifying rational metaphor requires evidence about who performed the action in the relevant situation.