Understanding Semantic Web and Ontologies: Theory and Applications