An ontology-based system for representation and diagnosis of electrocardiogram (ECG) data