Requirements engineering plays a central role in mechanical design, yet technical requirements remain predominantly expressed in natural language, limiting traceability, validation, and computational reasoning. This work presents an ontology-constrained pipeline for transforming natural-language engineering requirements into industrial ontologies foundry (IOF)-grounded knowledge graphs enriched with QUDT-based quantitative semantics. The pipeline decomposes text blocks into individual prescriptive clauses, extracts structural slots and constraint atoms through a typed intermediate representation, normalizes quantitative expressions via QUDT unit and quantity-kind grounding, and instantiates IOF-compliant Web Ontology Language (OWL) instance graphs, referred to as assertional boxes (ABoxes). The transformation is implemented as a hybrid neuro-symbolic workflow that combines large language models (LLMs) with typed intermediate representations, rule-based post-processing, and description-logic reasoning. Evaluation on a formula SAE rules corpus, intentionally selected to stress quantitative constraint handling, shows good structural reliability in the evaluated setting, and also highlights important end-to-end limitations. Decomposition accuracy was 63.74%, indicating that clause segmentation remains a major source of propagated error. Conditional on correctly decomposed requirements, slot-level extraction achieved a macro accuracy of 94.50%; however, the stricter row-level criterion requiring all structure and quantity slots to be correct was 69.38%. Quantitative constraint identification reached 97.64% precision and 96.88% recall. Normalization coverage was 98.78%, with residual errors primarily attributable to quantity-kind disambiguation. At the graph level, 93.33% of grounded artifacts passed all ontology-conformance checks. These results indicate that ontology-constrained LLM pipelines can support requirements formalization, while still requiring human oversight for decomposition-sensitive, logically complex, or compliance-critical use cases. The code and data used in this study are openly available in the ontology-req-pipeline GitHub repository.

Large Language Model-Based Formalization of Engineering Requirements Into Ontology-Constrained Knowledge Graphs

Stefanone, Alessandro;Rossoni, Marco;Colombo, Giorgio
2026-01-01

Abstract

Requirements engineering plays a central role in mechanical design, yet technical requirements remain predominantly expressed in natural language, limiting traceability, validation, and computational reasoning. This work presents an ontology-constrained pipeline for transforming natural-language engineering requirements into industrial ontologies foundry (IOF)-grounded knowledge graphs enriched with QUDT-based quantitative semantics. The pipeline decomposes text blocks into individual prescriptive clauses, extracts structural slots and constraint atoms through a typed intermediate representation, normalizes quantitative expressions via QUDT unit and quantity-kind grounding, and instantiates IOF-compliant Web Ontology Language (OWL) instance graphs, referred to as assertional boxes (ABoxes). The transformation is implemented as a hybrid neuro-symbolic workflow that combines large language models (LLMs) with typed intermediate representations, rule-based post-processing, and description-logic reasoning. Evaluation on a formula SAE rules corpus, intentionally selected to stress quantitative constraint handling, shows good structural reliability in the evaluated setting, and also highlights important end-to-end limitations. Decomposition accuracy was 63.74%, indicating that clause segmentation remains a major source of propagated error. Conditional on correctly decomposed requirements, slot-level extraction achieved a macro accuracy of 94.50%; however, the stricter row-level criterion requiring all structure and quantity slots to be correct was 69.38%. Quantitative constraint identification reached 97.64% precision and 96.88% recall. Normalization coverage was 98.78%, with residual errors primarily attributable to quantity-kind disambiguation. At the graph level, 93.33% of grounded artifacts passed all ontology-conformance checks. These results indicate that ontology-constrained LLM pipelines can support requirements formalization, while still requiring human oversight for decomposition-sensitive, logically complex, or compliance-critical use cases. The code and data used in this study are openly available in the ontology-req-pipeline GitHub repository.
2026
engineering design; knowledge graphs; large language models; ontology; requirements engineering;
artificial intelligence, computer-aided design, Data-driven design, design methodology, product development
File in questo prodotto:
File Dimensione Formato  
JMD_Special_Issue___GenAI_in_Design_FINAL-3.pdf

accesso aperto

: Post-Print (DRAFT o Author’s Accepted Manuscript-AAM)
Dimensione 3.9 MB
Formato Adobe PDF
3.9 MB Adobe PDF Visualizza/Apri
md-26-1150.pdf

Accesso riservato

: Publisher’s version
Dimensione 6.1 MB
Formato Adobe PDF
6.1 MB Adobe PDF   Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11311/1320488
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex 0
social impact