An Approach for Knowledge Extraction from Source Code (KNESC) of Typed Programming Languages

  • Azanzi Jiomekong
  • Gaoussou Camara
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 745)


Knowledge extraction is the discovery of knowledge from structured and/or unstructured sources. This knowledge can be used to build or enrich a domain ontology. Source code is rarely used. But implementation platforms evolve faster than business logic and these evolutions are usually integrated directly into source code without updating the conceptual model. In this paper, we present a generic approach for knowledge extraction from source code of typed programming languages using Hidden Markov Models. This approach consist of the definition of the HMM so that it can be used to extract any type of knowledge from the source code. The method is experimented on EPICAM and GeoServer developed in Java and on MapServer developed in C/C++. Structural evaluation shows that source code contains a structure that permit to build a domain ontology and functional evaluation shows that source code contains more knowledge than those contained in both databases and meta-models.


Knowledge extraction Ontology learning Hidden Markov Models Source code JAVA C++ 


  1. 1.
    Azanzi, J., Gaoussou, C.: Knowledge extraction from source code based on Hidden Markov Model: application to EPICAM. In: Proceedings of the 14th ACS/IEEE International Conference on Computer Systems and Applications (2017)Google Scholar
  2. 2.
    Bontcheva, K., Sabou, M.: Learning ontologies from software artifacts: exploring and combining multiple choices. Seman. Web Enabled Softw. Eng. 17, 235 (2014)Google Scholar
  3. 3.
    Dellschaft, K., Staab, S.: Strategies for the evaluation of ontology learning. In: Buitelaar, P., Cimiano, P. (eds.) Bridging the Gap between Text and Knowledge Selected Contributions to Ontology Learning and Population from Text. IOS Press (2008)Google Scholar
  4. 4.
    Djuric, D., Gasevic, D., Devedzic, V.: Ontology modeling and MDA. J. Object Technol. 4, 109–128 (2005)CrossRefGoogle Scholar
  5. 5.
    Foundation OSG: Geoserver (2014).
  6. 6.
    Gómez-Pérez, A., Fernández-López, M., Corcho, O.: Ontological Engineering: with examples from the areas of Knowledge Management, e-Commerce and the Semantic Web. Springer, New York (2007)Google Scholar
  7. 7.
    Maedche, A., Staab, S.: Semi-automatic engineering of ontologies from text. In: Proceedings of the 12th Internal Conference on Software and Knowledge Engineering Chicago, USA (2000)Google Scholar
  8. 8.
    Russell, S.J., Norvig, P.: Artificial Intelligence: A Modern Approach, 2nd edn. Pearson Education, Upper Saddle River (2003)zbMATHGoogle Scholar
  9. 9.
    Seymore, K., Mccallum, A., Rosenfeld, R.: Learning Hidden Markov Model structure for information extraction. In: AAAI 1999 Workshop on Machine Learning for Information Extraction, pp. 37–42 (1999)Google Scholar
  10. 10.
    Shamsfard, M., Abdollahzadeh Barforoush, A.: The state of the art in ontology learning: a framework for comparison. Knowl. Eng. Rev. 18(4), 293–316 (2003)CrossRefGoogle Scholar
  11. 11.
    UMMISCO, MEDES, PNLT, CPC: Plate-forme de surveillance de la tuberculose (2016).
  12. 12.
    Unbehauen, J., Hellmann, S., Auer, S., Stadler, C.: Knowledge extraction from structured sources. In: Search computing, pp 34–52. Springer, Heidelberg (2012)CrossRefGoogle Scholar
  13. 13.
    University of Minnesota: MapServer (2017).
  14. 14.
    Zhao, S., Chang, E., Dillon, T.S.: Knowledge extraction from web-based application source code: an approach to database reverse engineering for ontology development. In: IRI, IEEE Systems, Man, and Cybernetics Society, pp. 153–159 (2008)Google Scholar
  15. 15.
    Zhou, L.: Ontology learning: state of the art and open issues. Inf. Technol. Manage. 8, 241–252 (2007)CrossRefGoogle Scholar

Copyright information

© Springer International Publishing AG, part of Springer Nature 2018

Authors and Affiliations

  1. 1.UMMISCO, Faculty of ScienceUniversity of Yaoundé IYaoundéCameroon
  2. 2.EIR-IMTICEUniversité Alioune Diop de BambeyBambeySenegal

Personalised recommendations