Ontology-driven and weakly supervised rare disease identification from clinical notes