PurposeStock prices are subject to the influence of news and social media, and a discernible co-movement pattern exists among multiple stocks. Using a knowledge graph to represent news semantics and establish connections between stocks is deemed essential and viable.Design/methodology/approachThis study presents a knowledge-driven framework for predicting stock prices. The framework integrates relevant stocks with the semantic and emotional characteristics of textual data. The authors construct a stock knowledge graph (SKG) to extract pertinent stock information and use a knowledge graph representation model to capture both the relevant stock features and the semantic features of news articles. Additionally, the authors consider the emotional characteristics of news and investor comments, drawing insights from behavioral finance theory. The authors examined the effectiveness of these features using the combined deep learning model CNN+LSTM+Attention.FindingsExperimental results demonstrate that the knowledge-driven combined feature model exhibits significantly improved predictive accuracy compared to single-feature models.Originality/valueThe study highlights the value of the SKG in uncovering potential correlations among stocks. Moreover, the knowledge-driven multi-feature fusion stock forecasting model enhances the prediction of stock trends for well-known enterprises, providing valuable guidance for investor decision-making.