Semantic-driven analysis and classification in architectural heritage