Mutation-based testing of knowledge graphs
- Tobias John,
- Einar Broch Johnsen,
- University of Oslo,
- ,
Research Output:
Journal Article or Conference Article in Journal
Journal article
Research
Peer-reviewOpen access
Abstract
With the advent of AI-driven applications, testing faces new challenges when it comes to the integration of software with AI components. We present a novel testing approach to tackle the integration of software with symbolic AI in the form of knowledge graphs (KG). As the KG is expected to change during the run- and lifetime of the software, we must ensure the robustness of the system w.r.t. changes in the KG. Starting with a single KG, we mutate its content and test the unchanged software with the original test oracle. To address the specific challenges of KGs, we introduce two additional concepts. First, as generic mutations on single triples are too fine-grained to reliably generate a KG describing a different, consistent KG, we introduce domain-specific mutation operators that manipulate subgraphs in a domain-adherent way. Second, we need to specify those parts of the knowledge graph that the software relies on for correctness. We introduce the notion of a robustness mask to describe shapes in the graph to which the mutant must conform. We evaluate our approach on two software applications from the robotic and simulation domain that tightly integrate with their respective KG, as well as three OWL reasoners, where we found several previously unknown bugs.
Publication Information
Output type
Research Output:
Journal Article or Conference Article in Journal
Journal article
Research
Peer-reviewOriginal language
EnglishArticle number
99Pages from-to (Number of pages)
Pages 1-54 (54 pages)Journal (Volume, Issue Number)
Empirical Software Engineering (Volume 31, Issue 4)Publication milestones
- Published - 24/03/2026
Publication status
Published - 24/03/2026
ISSN
1573-7616Publication IDs
- Scopus: 105034373395
Publication metrics
PlumX, opens in new tab
Citation count
2
Mentions
1
Captures
9
Access to documents
License:Unspecified
