Skip to main navigation Skip to search Skip to main content

Ontology-Driven Software Development: Generating Java Code from OntoUML

Research output: Chapter in Book/Report/Conference proceedingConference contributionAcademicpeer-review

9 Downloads (Pure)

Abstract

OntoUML is an ontology specification language for structural conceptual modelling based on the Unified Foundational Ontology (UFO). It extends UML to capture precise semantics about a domain. For OntoUML to add value in software development, its semantics should align with the actual code. To achieve this, in this research we developed an automated, semantics-preserving transformation from OntoUML to Java code that can be used in conjunction with existing OntoUML tools. The transformation is based on the Eclipse Modelling Framework (EMF) and includes parsing of the OntoUML JSON schema, an UML-based object-oriented implementation metamodel, and Java code generation. It has been validated by executing it on publicly available models from the OntoUML model catalogue, of which 82 models were transformed and checked for superficial errors and compatibility of the generated code. For five of these models, the code was manually inspected in more detail. The main contributions of this research are: transformation rules for 12 OntoUML stereotypes; an EMF Ecore metamodel for OntoUML that can be reused in other model transformation projects; and a complete implementation of the OntoUML-to-Java transformation.

Original languageEnglish
Title of host publicationFormal Ontology in Information Systems - Proceedings of the 15th International Conference, FOIS 2025
EditorsTiago Prince Sales, Claudio Masolo, C. Maria Keet
Place of PublicationAmsterdam
PublisherIOS
Pages166-180
Number of pages15
ISBN (Electronic)978-1-64368-617-2
DOIs
Publication statusPublished - 28 Aug 2025
Event15th Formal Ontology in Information Systems Conference, FOIS 2025 - Catania, Italy
Duration: 4 Sept 202512 Sept 2025

Publication series

NameFrontiers in Artificial Intelligence and Applications
Volume409
ISSN (Print)0922-6389
ISSN (Electronic)1879-8314

Conference

Conference15th Formal Ontology in Information Systems Conference, FOIS 2025
Country/TerritoryItaly
CityCatania
Period4/09/2512/09/25

Keywords

  • Code generation
  • Model transformations
  • Model-driven engineering
  • Ontology-driven software development
  • OntoUML

Fingerprint

Dive into the research topics of 'Ontology-Driven Software Development: Generating Java Code from OntoUML'. Together they form a unique fingerprint.

Cite this