arrow
返回

MR2-KG: A Multi-Relation Multi-Rationale Knowledge Graph for Modeling Software Engineering Knowledge on Stack Overflow

delete2024-07-01
delete0
PRE
AI
L
Lina Gong
H
Haoxiang Zhang *
DOI:10.1109/TSE.2024.3403108delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Stack Overflow is a knowledge sharing platform where its users create and share informative content from both inside and outside the site. Prior studies have leveraged the relation across Stack Overflow posts through internal links to build services and applications to enhance the accessibility of knowledge. However, they focused on studying a knowledge unit that consists of a question post and all the associated answer posts to represent the relation. It is unknown whether such representation of knowledge on Stack Overflow could comprehensively model various complex relations among webpages, such as questions, answers, internal and external links. In addition, the rationales behind sharing knowledge on Stack Overflow have yet to be explored among distinct user groups, such as askers, answerers, readers who wish to learn. Thus, in this study, we first investigate the real-world characteristics of Stack Overflow knowledge by abstracting the complex knowledge representation into relations among its building blocks. We observe that a question thread includes three basic knowledge relations to reassemble into complex knowledge, that is, the hierarchy relation within the associated answers in a question, the coupling relation between knowledge artifacts (i.e., question or answer posts) through internal links, and the complimentary relation between Stack Overflow posts and external websites. All these three basic knowledge relations are informative and could be caused by different rationales when the crowdsourced knowledge is shared on Stack Overflow. Our findings highlight that it is necessary to propose a comprehensive knowledge graph to represent the real-world knowledge on Stack Overflow. Therefore, we further propose a Multi-Relation Multi-Rationale Knowledge Graph (MR2-KG), whose nodes represent questions, answers, and external webpages. Edges in the MR2-KG represent the rationales included in the three structures (i.e., question answering, duplicate, priori, posterior, parallelism, containment, and working examples knowledge). In addition, we develop an automated approach to model the nodes and edges to represent Stack Overflow knowledge associated with a question thread. Our case study shows that the automated knowledge representation generation can achieve an ROC AUC of 96% and MCC of 89% to identify edges in the MR2-KG. To further evaluate the applicability of MR2-KG, we develop an answer generator to help developers efficiently identify the answers that meet their intent. Our user study of 100 real-world Java questions indicates the usefulness of MR2-KG. Finally, we discuss the implications of our findings for developers, researchers, and Stack Overflow moderators.
Keyword:
Knowledge graphs
Message systems
Java
Couplings
Question answering (information retrieval)
Software engineering
Parallel processing
Empirical software engineering
stack overflow
crowdsourced knowledge sharing
knowledge graph

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

Q
queens university - canada
学者数:
1.8W
论文数: 1.7W
被引数: 29
引用论文

引用论文

err分享
err收藏
Design and Fabrication of Integrated Fabry-Perot Type Color Reflector for Reflective Displays
err2016-05-01
err0
PREAI
errSeong M Cho; Sang Hoon Cheon; Tae-Youb Kim; Chil Seong Ah; Juhee Song; Hojun Ryu; Hye Yong Chu
err分享
err收藏
err分享
err收藏
Enriching API Documentation with Code Samples and Usage Scenarios from Crowd Knowledge
err2021-06-01
err20
PREAI
errZhang, Jingxuan; Jiang, He; Ren, Zhilei; Zhang, Tao; Huang, Zhiqiu
err分享
err收藏
学者 查看更多内容