A method and guidelines for the cooperation of ontologies and relational databases in Semantic Web applications