Abstract
Researchers have constructed a variety of knowledge repositories/bases in different domains. These knowledge repositories generally use graph database (Neo4j) to manage heterogeneous and widely related domain data, which providing structured query (i.e., Cypher) interfaces. However, it is time-consuming and labor-intensive to construct a structured query especially when the query is very complex or the scale of the knowledge graph is large. This paper presents a natural language question interface for software knowledge graph. It extracts meta-model of software knowledge repository, constructs question related Inference Sub-Graph, then automatically transfers natural language question to structured Cypher query and returns the corresponding answer. We carry out our experiments on two famous open source software projects, build their knowledge graphs and verify our approach can accurately answer almost all the questions on the corresponding knowledge graph.
Supported by the Foundation item: National Key Research and Development Program (2016YFB1000801), National Science Fund for Distinguished Young Scholars (61525201).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Fuqing, Y., Hong, M., Keqin, L.: Software reuse and software component technology. Acta Electronica Sinica 27(2), 68–75 (1999)
Fuqing, Y.: Software reuse and its correlated techniques. Comput. Sci. 26(5), 1–4 (1999)
Lin, Z.Q., Xie, B., Zou, Y.Z., et al.: Intelligent development environment and software knowledge graph. J. Comput. Sci. Technology 32(2), 242–249 (2017)
McFetridge, P., Groeneboer, C.: Novel terms and cooperation in a natural language interface. In: Ramani, S., Chandrasekar, R., Anjaneyulu, K.S.R. (eds.) KBCS 1989. LNCS, vol. 444, pp. 331–340. Springer, Heidelberg (1990). https://doi.org/10.1007/BFb0018391
Lin, J., Liu, Y., Guo, J., et al.: TiQi: a natural language interface for querying software project data. In: Proceedings of the 32nd IEEE/ACM International Conference on Automated Software Engineering, pp. 973–977. IEEE Press (2017)
Mike, L., Mark, S.: A* CCG parsing with a supertag-factored model. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 990–1000, 25–29 October 2014
Li, F., Jagadish, H.V.: Understanding natural language queries over relational databases. ACM SIGMOD Rec. 45(1), 6–13 (2016)
Tunstall-Pedoe, W.: True knowledge: open-domain question answering using structured knowledge and inference. AI Mag. 31(3), 80–92 (2010)
Unger, C., Bühmann, L., Lehmann, J., et al.: Template-based question answering over RDF data. In: Proceedings of the 21st International Conference on World Wide Web, pp. 639–648. ACM (2012)
Zheng, W., Zou, L., Lian, X., et al.: How to build templates for RDF question/answering: an uncertain graph similarity join approach. In: Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, pp. 1809–1824. ACM (2015)
Freitas, A., de Faria F.F., O’Riain, S., et al.: Answering natural language queries over linked data graphs: a distributional semantics approach. In: Proceedings of the 36th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 1107–1108. ACM (2013)
Krishna, S.: Introduction to Database and Knowledge-Base Systems, p. 18. World Scientific, Singapore (1992)
Siva, R., Mirella, L., Mark, S.: Large-scale semantic parsing without question answer pairs. Trans. Assoc. Comput. Linguist. 2, 377–392 (2014)
Siva, R., Oscar, T., Michael, C., et al.: Transforming dependency structures to logical forms for semantic parsing. Trans. Assoc. Comput. Linguist. 4, 127–140 (2016)
Zettlemoyer, L.S., Collins, M.: Online learning of relaxed CCG grammars for parsing to logical form. In: Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP/CoNLL), pp. 678–687 (2007)
Berant, J., Chou, A., Frostig, R., et al.: Semantic parsing on freebase from question-answer pairs. In: Proceedings of the Conference on Empirical Methods in Natural Language Processing, pp. 1533–1544 (2013)
Yao, X., Van Durme, B.: Information extraction over structured data: question answering with freebase. In: Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), vol. 1, pp. 956–966 (2014)
Zhang, Y., Liu, K., He, S., et al.: Question Answering over Knowledge Base with Neural Attention Combining Global Knowledge Information. arXiv preprint arXiv:1606.00979 (2016)
Chen, J., Siva, R., Vijay, S., et al.: Learning structured natural language representations for semantic parsing. In: Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, 30 July–4 August, Vancouver, Canada, pp. 44–55 (2017)
Shen, Y., He, X., Gao, J., Deng, L., Mesnil, G.: Learning semantic representations using convolutional neural networks for web search. In: Proceedings of the Companion Publication of the 23rd International Conference on World Wide Web Companion, pp. 373–374 (2014)
Xiao, C., Marc D., Claire, G.: Symbolic priors for RNN-based semantic parsing. In: Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI 2017) (2017)
Yih, W.-T., Chang, M.-W., He, X., Gao, J.: Semantic parsing via staged query graph generation: question answering with knowledge base. In: Proceedings of the Joint Conference of the 53rd Annual Meeting of the ACL and the 7th International Joint Conference on Natural Language Processing of the AFNLP, vol. 1 (2015)
Chang, Z., Zou, L., Li, F.: Privacy preserving subgraph matching on large graphs in cloud. In: SIGMOD 2016, 26 June-01 July, San Francisco, CA, USA (2016)
Sun, Z., Wang, H., Wang, H., et al.: Efficient subgraph matching on billion node graphs. Proc. VLDB Endowment 5(9), 788–799 (2012)
Zou, L., Huang, R., Wang, H., et al.: Answering, natural language question, over RDF a graph data driven approach. In: SIGMOD 2014, 22–27 June 2014, Snowbird, UT, USA (2014)
Li, W., Wang, J., Lin, Z., et al.: Software knowledge graph building method for open source project. J. Front. Comput. Sci. Technol. 11(6), 851–862 (2017)
Li, H., et al.: Improving API caveats accessibility by mining API caveats knowledge graph. In: 2018 IEEE International Conference on Software Maintenance and Evolution ICSME (2018)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this paper
Cite this paper
Wang, M., Zou, Y., Cao, Y., Xie, B. (2019). Searching Software Knowledge Graph with Question. In: Peng, X., Ampatzoglou, A., Bhowmik, T. (eds) Reuse in the Big Data Era. ICSR 2019. Lecture Notes in Computer Science(), vol 11602. Springer, Cham. https://doi.org/10.1007/978-3-030-22888-0_9
Download citation
DOI: https://doi.org/10.1007/978-3-030-22888-0_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-22887-3
Online ISBN: 978-3-030-22888-0
eBook Packages: Computer ScienceComputer Science (R0)