arXiv:2608.28963cs.DBAug 2026

Manuscript Offprint

arXiv:2608.28963

RENSA: Rich Environment Metadata to Navigate Shared and Distributed Endpoints for Automated Federated SPARQL Query Generation

Victor Eiti Yamamoto, Takeda Hideaki, Yamamoto Yasunori

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Victor Eiti Yamamoto1,2^{1,2}; Yamamoto Yasunori3^{3}; Takeda Hideaki1,2^{1,2}

1^{1} Graduate University for Advanced Studies, SOKENDAI, Kanagawa, Japan

2^{2} National Institute of Informatics, Tokyo, Japan

3^{3} Database Center for Life Science, Chiba, Japan

Abstract. The number of knowledge graph databases has increased significantly with the proliferation of knowledge graph technologies. Knowledge graphs enable the dynamic integration of distributed data through federated SPARQL queries. However, constructing efficient queries in a federated environment is challenging due to the lack of detailed structural knowledge across decentralized datasets. While standards like VoID provide basic metadata, they often fail to capture the complex interlinks and authority distributions necessary for optimization. Consequently, current engines frequently rely on runtime ASK queries for source selection, increasing communication overhead. We propose RENSA, a federated SPARQL query generation framework that leverages an extension of SPARQL Builder Metadata (SBM). By integrating class and authority information, mapping subject and object usage to specific predicates, RENSA enables precise source selection and semantic constraint inference for query variables without runtime communication. The generated profiles represent less than 1% of the original dataset triples in most cases, ensuring storage efficiency. Evaluation on the LargeRDFBenchmark (13 datasets with >1B triples, 32 queries) shows that RENSA achieves source selection results comparable to state-of-the-art methods while eliminating ASK query overhead. Furthermore, we demonstrate that RENSA infers class and authority constraints for query variables, enabling the identification of data sources even across heterogeneous endpoints. These profiles additionally offer human-readable structural insights for semi-automated query generation.

Keywords: Federated SPARQL · Knowledge Graphs · Source Selection · Data Profiling · Query Generation

1 Introduction

Knowledge graphs (KGs) have gained significant traction as a paradigm for representing and managing large-scale, heterogeneous data [8]. This is evidenced by the over 5 million websites publishing RDF data [3] and the growth of massive KGs such as Bio2RDF, DBpedia, and Wikidata, which collectively contain

V.E. Yamamoto et al.

billions of triples. More recently, the rise of Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG) has further catalyzed interest in KGs, as they provide the structured, verifiable knowledge necessary to ground generative AI and reduce hallucinations. These distributed RDF databases form the Linked Open Data (LOD) cloud, representing domains from geography to life sciences [4]. The true value of this ecosystem lies in the interlinks between datasets, which enable dynamic information integration and discovery through federated SPARQL queries.

However, realizing this potential is challenging. Formulating efficient federated queries requires deep knowledge of underlying data structures—such as available classes, predicates, and specific interlinks—which are often opaque in decentralized environments. While structural metadata is essential to bridge this gap, data publishers frequently neglect to provide it due to the high manual effort and expertise required for maintenance [9]. Consequently, users are often forced into a time-consuming process of manual data exploration, which is frequently unfeasible for large and complex datasets.

This lack of fine-grained metadata becomes even more critical during query optimization. Current standards like VoID [6] provide only basic statistics that fail to capture the complex interlinks and authority distributions necessary for optimized federation. As a result, state-of-the-art federated engines, such as SPLENDID [7], frequently rely on runtime operations like ASK queries for source selection. This approach introduces significant communication overhead and degrades performance—a problem that becomes a critical bottleneck as the volume of queries directed at these services continues to grow.

In such a high-frequency query landscape, providing rich metadata allows federated systems to obtain comprehensive data descriptions prior to execution, enabling more efficient query plans and reducing reliance on runtime ASK queries. We hypothesize that the upfront cost of comprehensive metadata preparation is justified by cumulative performance gains during execution. By prioritizing optimization and minimizing remote interactions, total system efficiency can be significantly improved. Consequently, reducing the number of sub-queries sent to remote endpoints not only alleviates the processing load on endpoints but also mitigates the risk of query failures while directly addressing communication delays in distributed environments.

In this research, we propose RENSA, a comprehensive framework for generating federated SPARQL queries. RENSA builds upon the Triple Data Profiler [16], which generates metadata using the SPARQL Builder Metadata (SBM) ontology [15]. To support federated query optimization, we propose an extension of the SBM ontology that integrates URI authority analysis and cross-endpoint link detection. RENSA operates in three integrated stages: (1) RENSA Profiling (RP) to capture class-class relationships and URI authority distributions; (2) Semantic Constraint Inference to establish semantic boundaries for query variables by intersecting class and authority metadata; and (3) Heuristic-Based Endpoint Assignment, which employs a branch-and-prune strategy to identify optimal endpoint mappings and generate the final federated query by coalesc-ing related patterns into SERVICE blocks. This approach eliminates the need for runtime ASK queries by leveraging static profiles to group related patterns into cohesive execution units.

We evaluate RENSA using the LargeRDFBench benchmark, covering 13 datasets with over one billion triples. Our results demonstrate that our approach achieves a comparable source selection precision while entirely bypassing the runtime overhead of ASK queries. Furthermore, we show that RENSA accurately predicts class and authority constraints for query variables, facilitating efficient query generation and execution in distributed environments.

The contributions of this paper are: (1) an extension of SBM for RENSA Profiling (RP), a unified methodology for capturing structural and provenance metadata; (2) a static source selection and optimization algorithm that minimizes communication overhead; (3) an empirical evaluation demonstrating comparable selection quality to state-of-the-art engines without runtime overhead; and (4) an analysis of inference accuracy for variable constraints.