Comparison of Approaches for Querying Formal Ontologies via Natural Language
DOI:
https://doi.org/10.13053/cys-28-4-5309Keywords:
Ontology, SPARQL language, Natural language processing, Query patterns, decision treesAbstract
The Semantic Web relies on the use of ontologies to ensure data sharing, reuse, and interoperability, thereby representing knowledge comprehensible to comput ers.However, querying ontologies, often performed using the SPARQL language, becomes a challenge, especially for non-expert users. Barriers include linguistic challenges due to syntactic complexity, the need to understand the underlying ontology structure, potential errors in query formulation, and difficulty express ing complex queries. To make knowledge access more user-friendly, this article explores ontology querying in natural language. We propose a reflection aimed at guiding future domain designers in the interrogation of ontologies in natural language, orienting them in their choice of approach according to the applica tions they will develop. The study relies on the application of Natural Language Processing (NLP) techniques, integrating tools such as Owlready2, RDFLIB, Prot´ eg´ e2000, and the Python programming language to achieve its goals. Three distinct approaches were evaluated for this purpose. The first approach, scenario based, was tested on two separate ontologies: one related to university concepts and the other to estate settlement. This approach demonstrates remarkable adaptability across various ontologies. However, its effectiveness is closely linked to the types of scenarios and the specific jargon of the evaluated domain. The other two approaches, one based on SPARQL query patterns and the other on decision tree structure, were evaluated on a specific ontology, estate settlement. They show robust performance in terms of result accuracy. Nevertheless, their effectiveness depends on model training for named entity detection, node list 1 management, and enrichment of SPARQL query patterns, operating exclusively within this particular ontology.Downloads
Published
2024-12-03
Issue
Section
Articles of the Thematic Section
License
Hereby I transfer exclusively to the Journal "Computación y Sistemas", published by the Computing Research Center (CIC-IPN),the Copyright of the aforementioned paper. I also accept that these
rights will not be transferred to any other publication, in any other format, language or other existing means of developing.I certify that the paper has not been previously disclosed or simultaneously submitted to any other publication, and that it does not contain material whose publication would violate the Copyright or other proprietary rights of any person, company or institution. I certify that I have the permission from the institution or company where I work or study to publish this work.The representative author accepts the responsibility for the publicationof this paper on behalf of each and every one of the authors.
This transfer is subject to the following conditions:- The authors retain all ownership rights (such as patent rights) of this work, except for the publishing rights transferred to the CIC, through this document.
- Authors retain the right to publish the work in whole or in part in any book they are the authors or publishers. They can also make use of this work in conferences, courses, personal web pages, and so on.
- Authors may include working as part of his thesis, for non-profit distribution only.