Ontology-based quantification of textual similarity