Have a look at the topics of Ontologies and Reasoning. People are doing this for years. There has only been a partial success in smaller sectors like medicine.

But never fear! Try it but you should consider to use languages like OWL and RDF(S).