Industry 5.0 requires intelligent self-organi- zed, self-managed, and self-monitoring applications with ability to analyze and predict the human as well as machine behaviors across interconnected devices. Tackling dynamic network behavior is a unique challenge for Internet of Things applications in Industry 5.0. Knowledge-defined networks (KDN) bridge this gap by extending software-defined networking architecture with knowledge plane, which learns the network dynamics to avoid suboptimal decisions. Cognitive routing leverages the sixth-generation (6G) self-organized networks with self-learning feature. This article presents a self-organized cognitive routing framework for a KDN which uses link-reliability as a routing metric. It reduces end-to-end latency by choosing the most reliable path with minimal probability of route-flapping. The proposed framework precalculates all possible paths between every pair of nodes and ensures self-healing with a constant-time convergence. An experimental test-bed has been developed to benchmark the proposed framework against the industry-stranded link-state and distance-vector routing algorithms SPF and DUAL, respectively.