In this paper, we introduce our efforts on an application of semantic web technologies to phenotyping algorithms in Electronic Health Records (EHR) data for the purpose of facilitating the reasoning and inferring processes of some patients groups in an intelligent manner.