Skip to content
Open access

Ontology driven cross language design smell detection through semantic reasoning

Sep 2026 · Discover Computing · Vol 29 · 0 citations · 57 references

TL;DR

OD3 reverse-engineers source code from Java, C++, C#, Ruby, and Python into a unified semantic ontology and applies rule-based reasoning to identify violations of Object-Oriented (OO) design principles, supporting scalable, early-stage detection of design flaws across heterogeneous software systems while maintaining high semantic accuracy.

Abstract

Design smells are structural flaws that, if not detected early, can impair software quality and increase maintenance costs. Traditional detection approaches are language-specific and rely on low-level metrics, making them ineffective for heterogeneous, multilingual systems. This paper presents Ontology-Driven Design Detector (OD3), a language-agnostic framework for detecting design smells at the design stage. OD3 reverse-engineers source code from Java, C++, C#, Ruby, and Python into a unified semantic ontology and applies rule-based reasoning to identify violations of Object-Oriented (OO) design principles. Its key contributions are: (i) detecting design smells in multilingual software projects, (ii) defining semantic representations of smells to improve interpretability, (iii) reducing incorrect detections through context-aware reasoning, (iv) introducing a catalog of cross-language design smells, and (v) validating the approach on 10 multilingual systems, achieving a precision and recall of 0.91 and 0.92, respectively. These results support scalable, early-stage detection of design flaws across heterogeneous software systems while maintaining high semantic accuracy. The proposed framework is designed to operate efficiently within High-Performance Computing (HPC) environments, where parallel ontology reasoning and distributed semantic processing facilitate the analysis of large multilingual software repositories. Consequently, the framework contributes to Sustainable Development Goal (SDG) 9 by supporting intelligent, scalable software engineering infrastructure.

Read PDF

Similar papers

Context-aware code smell detection in industrial software systems: an empirical study using semantic and structural features

Evaluation findings indicate that the context-aware multi-modal approach achieves stronger transferability across diverse software environments, and cross-project results indicate that contextual enrichment can reduce dependence on project-specific patterns.

Noha H. Taha, Saad M. Darwish, Nevine M. Labib · 0 citations

Enhancing Construction Requirements Documents Analytics through Integrating Ontology and Large Language Model

The results demonstrate the feasibility of the proposed framework for producing consistent sentence-level semantic extraction from quality-related construction requirement text and demonstrate how ontology-guided fine-tuning can provide explicit semantic grounding for LLM-based information extraction.

Lian-Nian Wang, Jeongbin Hwang, Kevin Han et al. · 0 citations
Open access Oct 2026

Leveraging Large Language Model for Ambiguity Detection and Resolution in Software Requirement Specifications

A framework that leverages fine‐tuned large language models (LLMs) to systematically detect and resolve ambiguities in software requirements and improves the clarity and usability of requirements and can support more effective communication among software development stakeholders is introduced.

Ankit Raj, M. A. B. Ur Rahim, Mayur Jain et al. · 0 citations
Open access Oct 2026

Ontology-Grounded RAG with SPARQL and Local Language Models for Technical Documentation

This paper presents LIDI-AI, a Retrieval-Augmented Generation (RAG) system whose knowledge base consists of technical documentation for the LIDI-AI Research Assistant, a web-based data analysis application developed at Universidad del Azuay. The runtime architecture integrates two complementary knowledge sources: an OW...

Julián Rafael Coronel Andrade, Edwin Alexander Siguenza Siguenza, Andrew Sebastian Cantos Vasquez et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.