Knowledge Graph Construction for SOFL Formal Specifications
- 1 April 2022
- journal article
- research article
- Published by World Scientific Pub Co Pte Ltd in International Journal of Software Engineering and Knowledge Engineering
- Vol. 32 (04) , 605-644
Abstract
Formal specifications can provide a solid foundation for software development and support for techniques of software quality assurance, such as specification-based inspection and testing. To ensure that these techniques can be applied effectively in practice, efficiently and accurately understanding specifications becomes extremely important. While this may be relatively easy for well-trained developers in formal methods, it can be rather difficult for computer since computer does not easily understand specifications. This difficulty poses a challenge for realizing automatic specification-based verification techniques that are in high demand for reducing development cost and improving software reliability. In this paper, we address this problem by discussing how the formal specification can be transformed into a knowledge graph to provide comprehensible, well-organized details of the specification for developers and computers. The transformation is done by extracting and storing information about attributes of each component and by establishing relationships between components in a formal specification. We elaborate on a top-down approach of constructing a knowledge graph from a specification, including creating an ontology, designing the Entity–Relationship (ER) diagram of the relational database based on the created ontology, extracting and storing attribute and relationship information in the relational database, mapping ontology to its instances and relational data to RDF triples, and displaying knowledge graph. Further, we present a case study to show how our approach works on the formal specification of an ATM system. Finally, we describe three experiments to evaluate its performance in improving specification readability, effectively guiding inspectors to establish traceability links between specifications and programs, and detecting defects through program inspection, respectively.Keywords
Funding Information
- ROIS NII Open Collaborative Research 2021 (21FS02)
- Chinese Government Scholarship (CSC No. 202108050145)
This publication has 25 references indexed in Scilit:
- Linked data quality of DBpedia, Freebase, OpenCyc, Wikidata, and YAGOSemantic Web: – Interoperability, Usability, Applicability, 2017
- Intelligent Development Environment and Software Knowledge GraphJournal of Computer Science and Technology, 2017
- Exploiting Linked Data and Knowledge Graphs in Large Organisations2017
- A Tool Supported Testing Method for Reducing Cost and Improving Quality2016
- Formal Specification-Based Inspection for Verification of ProgramsIEEE Transactions on Software Engineering, 2011
- An approach to specifying and verifying safety-critical systems with practical formal method SOFL2002
- SOFL: a formal engineering methodology for industrial applicationsIEEE Transactions on Software Engineering, 1998
- The B-Book1996
- Precise documentation of well-structured programsIEEE Transactions on Software Engineering, 1994
- A translation approach to portable ontology specificationsKnowledge Acquisition, 1993