arXiv:1508.01447

Using Linguistic Analysis to Translate Arabic Natural Language Queries to SPARQL

Iyad AlAgha

제출 2015-08-06

원문 초록

The logic-based machine-understandable framework of the Semantic Web often challenges naive users when they try to query ontology-based knowledge bases. Existing research efforts have approached this problem by introducing Natural Language (NL) interfaces to ontologies. These NL interfaces have the ability to construct SPARQL queries based on NL user queries. However, most efforts were restricted to queries expressed in English, and they often benefited from the advancement of English NLP tools. However, little research has been done to support querying the Arabic content on the Semantic Web by using NL queries. This paper presents a domain-independent approach to translate Arabic NL queries to SPARQL by leveraging linguistic analysis. Based on a special consideration on Noun Phrases (NPs), our approach uses a language parser to extract NPs and the relations from Arabic parse trees and match them to the underlying ontology. It then utilizes knowledge in the ontology to group NPs into triple-based representations. A SPARQL query is finally generated by extracting targets and modifiers, and interpreting them into SPARQL. The interpretation of advanced semantic features including negation, conjunctive and disjunctive modifiers is also supported. The approach was evaluated by using two datasets consisting of OWL test data and queries, and the obtained results have confirmed its feasibility to translate Arabic NL queries to SPARQL.

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

arXiv:2502.11741v4cs.DB공통 태그 Natural Language Queries공식 코드 · Papers with Code

SQL-o1: 자기 보상 휴리스틱 탐색을 통한 자동 Text-to-SQL 프로그램 합성

SQL-o1: Automatic Text-to-SQL Program Synthesis via Self-Reward Heuristic Search

효율적인 사람과 데이터베이스 간 상호작용은 소프트웨어 공학의 핵심 문제이다. Text-to-SQL(Text2SQL)은 자연어 질문을 실행 가능한 SQL 질의로 매핑하여 자동 SQL 합성과 신뢰할 수 있는 상호작용을 가능하게 함으로써 이 문제를 다룬다. 대규모 언어 모델(LLM)이 크게 발전했음에도, 현재의 접근법은 오픈소스 LLM으로의 낮은 전이성, 복잡한 질의의 논리 및 함수 오류에 대한 제한된 강건성, 구조적 탐색의 비효율성 문제를 겪는다. 우리는 모델의 추론 능력을 향상시키기 위해 에이전트 기반 아키텍처 위에 구축된 자기 보상 기반 휴리스틱 탐색 프레임워크 SQL-o1을 소개한다. SQL-o1은 구조적인 다단계 탐색에 몬테카를로 트리 탐색(MCTS)을 활용하고, 정확도를 희생하지 않고 추론을 가속하는 동적 가지치기 전략을 도입한다. Spider와 BIRD 벤치마크에서 SQL-o1은 복잡한 BIRD 데이터셋에서 실행 정확도를 10.8포인트 향상시켜 GPT-4 기반 모델까지 능가한다. 또한 강한 퓨샷 일반화 성능과 오픈소스 LLM 간의 견고한 모델 간 전이성을 보인다. 코드는 https://github.com/ShuaiLyu0110/SQL-o1 에서 공개되어 있다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.