An ontology-oriented model for semantic annotation of microservice application containers
Keywords
- Ontology-driven software engineering
- semantic annotation
- microservice architecture
- container orchestration
- Kubernetes
- K3s
- AWS ECS/Fargate
- OWL
- SPARQL
- ontology reasoning
- JWT
- access control
- configuration driftб knowledge base
- intellectual model
Abstract
Cloud-native microservice systems often represent deployment descriptors, runtime service contracts and identity/access policies in separate artifacts, such as Kubernetes manifests, AWS ECS task definitions, environment variables, JWT claims and application-level authorization rules. This fragmentation complicates maintainability, portability, validation and reproducibility, and may cause configuration drift between deployment-time and runtime configurations. This article proposes an ontology-oriented model for semantic annotation of microservice application containers in which a single OWL/TTL ontology acts as an authoritative semantic layer for container configuration, service topology, endpoints, roles, permissions and JWTtoken semantics. The model defines platform-independent annotations for containers and services, SPARQL-based extraction of deployment parameters, and description-logic restrictions for reasoning over token classes, service placement and configuration consistency. An authentication and authorization scenario illustrates how JWT tokens can be materialized as ontology individuals and automatically classified as AdminToken, UserToken or ProcessToken according to role assertions. A prototype-oriented deployment scenario targets Kubernetes/K3s and AWS ECS/Fargate descriptor generation from shared ontology annotations. The current version is evaluated through a limited authentication-service scenario and therefore does not claim quantitative evidence for configuration-drift reduction, scalability, or reasoning overhead. The proposed model contributes a formal foundation for integrating infrastructure configuration, runtime service contracts and identity/access semantics within a common ontology-driven representation.
References
Kumara I., Garriga M., Romeu A. U. et al. The do’s and don’ts of infrastructure code: a systematic gray literature review. // Information and Software Technology. - Vol. 137, 2021. P. 106593. DOI:10.1016/j.infsof.2021.106593.
Černý T., Chy M. S. H., Abdelfattah A. S. et al. On maintainability and microservice dependencies: how do changes propagate? // Proceedings of the 14th International Conference on Cloud Computing and Services Science. - SCITEPRESS, 2024. DOI:10.5220/0012725200003711. P. 277–286.
Hassan M. M., Salvador J., Santu S. K. K. et al. State reconciliation defects in infrastructure as code. // Proceedings of the ACM on Software Engineering. - Vol. 1, Issue FSE. P. 1865–1888. DOI:10.1145/3660790.
Waseem M., Liang P., Ahmad A. et al. Understanding the issues, their causes and solutions in microservices systems: an empirical study. // Journal of Systems and Software. - Vol. 237, 2026. P. 112828. DOI:10.1016/j.jss.2026.112828.
Rahman A., Mahdavi-Hezaveh R., Williams L. A systematic mapping study of infrastructure as code research. // Information and Software Technology. - Vol. 108, 2019. P. 65–77. DOI:10.1016/j.infsof.2018.12.004.
Vakhula O., Opirskyy I., Vorobets P. et al. Research on policy-as-code for implementation of role-based and attribute-based access control. // Cybersecurity Providing in Information and Telecommunication Systems (CPITS 2025) - . P. 139–157.
Guerriero M., Garriga M., Tamburri D. A. et al. Adoption, support, and challenges of infrastructure-as-code: insights from industry. // 2019 IEEE International Conference on Software Maintenance and Evolution (ICSME). - IEEE, 2019. DOI:10.1109/ICSME.2019.00092. P. 580–589.
Di Martino B., D’Angelo S., Pezzullo G. J. et al. Review of policy-as-code approaches to manage security and privacy conditions in edge and cloud computing ecosystems. // Advanced Information Networking and Applications: Proceedings of the 39th International Conference on Advanced Information Networking and Applications (AINA-2025) - Cham : Springer, 2025. DOI:10.1007/978-3-031-87778-0_32. P. 326–336.
Kosińska J., Brotoń G., Tobiasz M. Knowledge representation of the state of a cloud-native application. // International Journal on Software Tools for Technology Transfer. - Vol. 26, 2024. P. 21–32. DOI:10.1007/s10009-023-00705-2.
Boukadi K., Rekik M., Bernal Bernabe J. et al. Container description ontology for CaaS. // International Journal of Web and Grid Services. - Vol. 16, Issue 4. P. 341–363. DOI:10.1504/IJWGS.2020.110944.
HashiCorp Terraform documentation. 2026. URL: https://developer.hashicorp.com/terraform/docs (accessed 20.05.2026).
Bibichkov I., Shevchenko O., Sokol V. Ontological knowledge bases productivity optimization through the use of reasoner combination. // Eastern-European Journal of Enterprise Technologies. - Vol. 5, Issue 2. P. 49–54. DOI:10.15587/1729-4061.2017.112347.
Fully Managed Container Registry – Amazon Elastic Container Registry – Amazon Web Services. URL: https://aws.amazon.com/ecr/ (accessed 23.05.2026).