Semantic services enable natural language queries for agricultural data
This document details the design and implementation of an AI-driven module that translates user questions into database queries using ontologies and linked data.
or
Detail description
This document presents the Semantic Service Module developed for the AGRICORE project to enhance the Agricultural Research Data Index Tool (ARDIT). Its primary purpose is to allow users, including policymakers and researchers, to query complex agricultural datasets using natural language questions instead of needing technical knowledge of data structures. The system achieves this by integrating Semantic Technology and Linked Data to create a knowledge graph based on an ontology covering concepts like land, soil, crops, and pollution. The report explains key technical foundations such as ontologies (organizational systems defining concepts and relationships), the Resource Description Framework (RDF) which structures data as subject-predicate-object triples, and SPARQL, the query language used to retrieve information. It details the adoption of an Agile Scrum methodology for development and explores Natural Language Processing (NLP) techniques, including tokenization and word embedding algorithms like BERT and BART, which convert text into numerical vectors. The architecture utilizes a Sequence-to-Sequence model to translate user questions into SPARQL queries executed on an RDF-compliant graph database (Ontotext GraphDB). Key results demonstrate the successful fine-tuning of transformer models to handle complex queries regarding variables, time spans, and geographical coverage, deployed via Docker on the Google Cloud Platform. This resource is valuable for data architects, software developers, and agricultural analysts seeking to implement semantic search capabilities or understand how artificial intelligence can bridge the gap between human language and structured statistical data.
1/1
or
Contribution detail info
- Project
- Location
- Italy, France
- Authors
- Mattia Repossi, Alessandro Fermi
- Purpose
- Other
- File type
- document
- Created on
- May 31, 2022
- Origin language
- English
- Official project website
- AGRICORE
- License
- CC BY
- Keywords
- Themes