Skip to content
Conference

A Domain Specific Language for Pattern Specification and Automated Validation for Metamodel-Based Languages

Aug 2026 · 2026 IEEE 34th International Requirements Engineering Conference Workshops (REW) · pp. 341-350 · 0 citations · 24 references

Abstract

Large collections of software artifacts often contain recurring structural patterns that can provide useful evidence for language understanding or empirical analysis, and provide requirements for language improvement of self-adaptable languages. OCL-based queries may specify such patterns but become more complex when patterns involve nested relations, repeated structures, or sequence-sensitive constraints. This paper presents the Pattern Definition Language (PDL), a domainspecific language for specifying structural patterns over EMF-based metamodels. PDL directly supports both unordered and ordered structural constraints, allowing sequence-sensitive patterns to be expressed declaratively without manually encoding positional logic. To operationalize these specifications, a model-to-text transformation automatically generates executable validators from PDL models that enable the detection of the specified pattern in artifacts. The approach is evaluated on a dataset of 29,069 DevOps pipeline YAML files using two complementary pattern discovery settings: statistical pattern mining and LLM prompting. The identified pipeline patterns are reconstructed in PDL, transformed into validators, and compared with mining-based occurrence results and independent Python-based matchers, respectively. The results show exact agreement for most evaluated patterns. All mismatch cases are explainable through differences between raw YAML-level structural matching / Python-based parsing and metamodel-level interpretation, demonstrating that the proposed workflow can validate structural pattern occurrences. The results indicate that PDL and its model-to-text transformation workflow provide a systematic basis for structural pattern specification and automated validation in metamodel-based languages.

View source

Similar papers

Book Open access Oct 2026

From Natural Language to Formal Specifications: A Metamodel-Driven LLM Pipeline

Formal verification relies on machine-processable specifications, whereas requirements are commonly documented in natural language, whose contextual and implicit interpretation complicates automated formalization. Existing approaches either impose a controlled or structured language on the user, or rely on large langua...

Sally Ismail, Patrick Tessier · 0 citations
Book Open access Oct 2026

Automatic Generation of Local-First, Collaborative Modeling Languages

This article presents an approach for automatically generating metamodel-specific replicated model runtimes directly from Ecore metamodels through a translation from a practically relevant subset of EMF/Ecore to compositions of Conflict-free Replicated Data Types (CRDTs), each encapsulating a well-defined conflict-reso...

Léo Olivier, Marcos Didonet Del Fabro, S. Gérard et al. · 0 citations
#large language models Book Open access Oct 2026

OntoSTL: Canonical Knowledge Graph Representation of Signal Temporal Logic Requirements

OntoSTL defines a bidirectional transformation between STL and OWL and applies equivalence-preserving canonicalization rules, including implication elimination, supported Negation Normal Form (NNF) conversion, Boolean simplification, associative flattening, and deterministic operand ordering.

Haitham Al-Shami, Riku Ala-Laurinaho, Xin-Yi Tu et al. · 0 citations
#large language models Book Open access Oct 2026

Modular Meta-Languages for Structured Instructions: A Novel Approach for LLM Integration into Evolving Engineering Toolchains

Large Language Models are increasingly used to generate structured engineering artifacts, yet the instruction artifacts that govern this generation are rarely treated as modeling artifacts in their own right. They typically appear as monolithic prompt blocks, schemas, or informal examples. When tools, metamodels, APIs,...

Louis Burk, Alexander Fischer, Christoph Scharnagl et al. · 0 citations
Book Open access Oct 2026

B-OCL: An Object Constraint Language Parser and Interpreter

The Object Constraint Language (OCL) has been widely used in the modeling community to complement software models with precisely defining constraints and business rules for the modeled systems. However, there is a limited number of tools supporting the definition and interpretation of OCL constraints. In this paper, we...

Fitash Ul Haq, Armen Sulejmani, Jordi Cabot · 0 citations
Book Open access Oct 2026

KatalIA: Can a Declarative Metamodel Make LLM-Based Smell Characterization Traceable?

Software engineers need to identify and assess maintainability concerns in source code to support inspection and refactoring decisions. However, code-smell characterization is context-dependent: static-analysis tools such as SonarQube provide systematic rule-based findings, whereas LLMs offer contextual interpretation...

Diego Gatica, René Noël · 0 citations

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