Efficient Method for Validating SPARQL Queries Using Semantic Web Ontologies

Collio; Juan (59380977800); Aguilera; Ana (57215214440); Dongo; Irvin (56007679300)

Keywords: OWL Ontology; Semantic Web; SHACL; Sintactic and Semantic Validation; SPARQL

Abstract

The Semantic Web has addressed the development of technologies for efficient data exchange through formats such as RDF and the use of SPARQL as a standard query language. However, users often face difficulties in obtaining unexpected or erroneous results without a clear understanding of the source of the problem, resulting in wasted time. In this context, a method for validating SPARQL queries, divided into five phases executed before processing in RDF engines, is proposed. This method is based on an ontology and considers both syntactic and semantic validations, generating detailed error reports to prevent problems during execution. Experimental results show the efficiency of the approach: when querying a dataset of 16,005 triples, syntactic validation did not exceed 0.4508 ms and semantic validation did not exceed 6.2343 ms. In contrast, queries without validation presented longer response times, with differences of up to 68.2492 ms in syntactic validation and 144.4288 ms in semantic validation. This approach not only improves query accuracy and efficiency, but also significantly reduces time and errors in information retrieval in semantic environments. © 2025 IEEE.

Más información

Título de la Revista: Proceedings - 2025 51st Latin American Computer Conference, CLEI 2025
Editorial: Institute of Electrical and Electronics Engineers Inc.
Fecha de publicación: 2025
Idioma: English
DOI:

10.1109/CLEI67442.2025.11420331