Ontology-based code snippets management in a cloud environment

被引:1
|
作者
Shi, Jianjun [1 ]
Ji, Weixing [1 ]
Gao, Zhiwei [1 ]
Gao, Yujin [1 ]
Wang, Yizhuo [1 ]
Liao, Xinyi [1 ]
Shi, Feng [1 ]
机构
[1] Beijing Inst Technol, Sch Comp Sci & Technol, 5 South Zhongguancun St, Beijing 100081, Peoples R China
关键词
Ontology; Code snippet; Programming language; Cloud computing; Deep learning; INFORMATION; ENCRYPTION;
D O I
10.1007/s12652-018-0701-y
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A code snippet is a small region of reusable source code that is common to many functions. Skilled management and reuse of snippets can improve programming efficiency in practice. However, we find that most snippets are posted to online blogs or snippet management systems with little description and tagging, which leads to an embarrassing situation in which existing snippets are difficult to reuse. This occurs because snippets are usually hastilypushed to online services or saved in text files by programmers and also because existing management systems do not provide efficient labeling and reusing frameworks. In this paper, we propose to annotate snippets with a well-formed domain-specific ontology-programming ontology. With a thorough investigation of real world snippets, we designed a programming ontology to annotate and recommend snippets. We show how to annotate a snippet with ontology terms based on text classification models. In addition, we built a snippet management system that stores user snippets in the cloud and automatically recommends snippets, so that the retrieval of snippets becomes trivial in popular integrated developing environments, such as Eclipse and Visual Studio. Our evaluation results demonstrate that theontology annotation algorithm is able to automatically annotate a snippet with a high degree of accuracy. The shared domain knowledge also makes it possible to share snippets among programmers and systems. As the number of labeled snippets increases, deep learning models can be trained and used to annotate code snippets with high accuracy.
引用
收藏
页码:2971 / 2985
页数:15
相关论文
共 50 条
  • [1] Ontology-based code snippets management in a cloud environment
    Jianjun Shi
    Weixing Ji
    Zhiwei Gao
    Yujin Gao
    Yizhuo Wang
    Xinyi Liao
    Feng Shi
    [J]. Journal of Ambient Intelligence and Humanized Computing, 2019, 10 : 2971 - 2985
  • [2] QoS and Ontology-based Resource Management in Cloud Computing Environment
    Ma, Yong Beom
    Jang, Sung Ho
    Lee, Jong Sik
    [J]. INFORMATION-AN INTERNATIONAL INTERDISCIPLINARY JOURNAL, 2011, 14 (11): : 3707 - 3715
  • [3] Ontology-Based Resource Management for Cloud Computing
    Ma, Yong Beom
    Jang, Sung Ho
    Lee, Jong Sik
    [J]. INTELLIGENT INFORMATION AND DATABASE SYSTEMS, ACIIDS 2011, PT II, 2011, 6592 : 343 - 352
  • [4] Research on ontology-based environment quality monitoring and knowledge management
    Zhang, H.
    Wang, X. D.
    Wang, H. T.
    Li, C. L.
    [J]. 2008 PROCEEDINGS OF INFORMATION TECHNOLOGY AND ENVIRONMENTAL SYSTEM SCIENCES: ITESS 2008, VOL 2, 2008, : 756 - 760
  • [5] Ontology-Based Context-Aware SLA Management for Cloud Computing
    Labidi, Taher
    Mtibaa, Achraf
    Gargouri, Faiez
    [J]. MODEL AND DATA ENGINEERING, MEDI 2014, 2014, 8748 : 193 - 208
  • [6] Ontology-based context-aware SLA management for cloud computing
    Labidi, Taher
    Mtibaa, Achraf
    Gargouri, Faiez
    [J]. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2014, 8748 : 193 - 208
  • [7] An Ontology-based Guidance for Privacy Enforcement in a Multi-Authority Cloud Environment
    Belaazi, Maherzia
    Rahmouni, Hanen Boussi
    Bouhoula, Adel
    [J]. 2015 INTERNATIONAL CONFERENCE ON CLOUD TECHNOLOGIES AND APPLICATIONS (CLOUDTECH 15), 2015, : 373 - 379
  • [8] Ontology-based skills management
    Dittmann, L
    Zelewski, S
    [J]. 8TH WORLD MULTI-CONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL IV, PROCEEDINGS: INFORMATION SYSTEMS, TECHNOLOGIES AND APPLICATIONS: I, 2004, : 190 - 195
  • [9] Ontology-based knowledge management
    Fensel, D
    [J]. COMPUTER, 2002, 35 (11) : 56 - +
  • [10] Ontology-Based Resource Management
    Kantola, Jussi I.
    [J]. HUMAN FACTORS AND ERGONOMICS IN MANUFACTURING, 2009, 19 (06): : 515 - 527