Products and web pages are the main components of the e-commerce data knowledge and the relationship among them is an important issue to be highly considered in recommender systems. This study aims to focus on the similarity and complementarity relationships among the products that have wide applications in the recommender systems. In the previously proposed methods, products and their relationships were revealed using taxonomy and “IS-A” relationship. In addition, the similarity and complementarity calculations were conducted based on edge computation by assigning a similar degree to any edge. More specifically, the children of a concept in the taxonomy was supported by a similar father’s “IS-A” degree. In contrast, this study provides a new approach based on ontology, data mining, and automatic discovering algorithms for the relationships with different degrees for the edges among the concepts. Accordingly, these relationships are initialised according to the “IS-A” degree. With regard to this weighted taxonomy, the semantic similarity and complementarity are measured based on concept distance. In addition, the proposed recommender system is item-based, which uses semantic similarity and complementarity. The required data for the present study were collected from construction materials supplier. The results illustrated that our proposed method is effective for construction materials recommendation.