[Paper Review] A role-free approach to indexing large RDF data sets in secondary memory for efficient SPARQL evaluation
This paper proposes TripleT, a role-free indexing technique for large RDF datasets that indexes atoms (subjects, predicates, objects) directly rather than triples or role-pairs, using a single B+tree. It achieves up to eight orders of magnitude reduction in index size and up to two orders of magnitude improvement in query I/O costs compared to state-of-the-art methods like MAP and HexTree.
Massive RDF data sets are becoming commonplace. RDF data is typically generated in social semantic domains (such as personal information management) wherein a fixed schema is often not available a priori. We propose a simple Three-way Triple Tree (TripleT) secondary-memory indexing technique to facilitate efficient SPARQL query evaluation on such data sets. The novelty of TripleT is that (1) the index is built over the atoms occurring in the data set, rather than at a coarser granularity, such as whole triples occurring in the data set; and (2) the atoms are indexed regardless of the roles (i.e., subjects, predicates, or objects) they play in the triples of the data set. We show through extensive empirical evaluation that TripleT exhibits multiple orders of magnitude improvement over the state of the art on RDF indexing, in terms of both storage and query processing costs.
Motivation & Objective
- Address the inefficiency of existing native RDF indexing techniques in terms of storage and query performance for large-scale RDF data.
- Overcome the limitations of role-based indexing (e.g., MAP, HexTree) that require multiple indexes and suffer from high storage overhead.
- Design a lightweight, scalable indexing structure that supports all native BGP join types without relying on role-specific indexing.
- Demonstrate that atom-level, role-free indexing can achieve superior performance and space efficiency in secondary memory environments.
Proposed method
- Index all atoms (subjects, predicates, objects) from RDF triples directly in a single B+tree, without distinguishing their roles in triples.
- Use three separate B+tree structures—SP, SO, and OP—where each stores pairs of atoms in a specific order, with payloads containing the third atom.
- Materialize only the SP, SO, and OP B+trees for TripleT, avoiding redundant symmetric orderings to reduce index size.
- Support all six BGP join types (e.g., subject-object, predicate-object) by leveraging the three B+tree structures for efficient join processing.
- Use a standard I/O cost model (block reads) to evaluate performance, ensuring technology-agnostic comparison with MAP and HexTree.
- Implement all systems using 8KB disk blocks and 32-bit pointers in virtual memory, using Python 2.5.2 for reproducibility and consistency.
Experimental results
Research questions
- RQ1Can a role-free indexing approach that indexes atoms directly achieve better storage efficiency than role-based indexing techniques like MAP and HexTree?
- RQ2Does indexing atoms without role distinction lead to faster SPARQL query evaluation, especially for complex BGP joins?
- RQ3To what extent does a single B+tree structure for atom pairs outperform multiple B+tree structures used in MAP and HexTree?
- RQ4How does the proposed TripleT method scale across synthetic and real-world RDF datasets like DBPedia and UniProt?
- RQ5Can the performance gains of TripleT be achieved without sacrificing support for all native BGP join patterns?
Key findings
- TripleT reduces index size by up to eight orders of magnitude compared to MAP and HexTree, primarily due to using only one B+tree and smaller key sizes.
- For single triple lookups (k=0), TripleT consistently outperforms or matches the performance of MAP and HexTree, with significantly lower I/O costs.
- For basic graph pattern (BGP) joins (k=1), TripleT achieves up to two orders of magnitude improvement in I/O cost over both MAP and HexTree across all datasets.
- The average payload size in TripleT fits within a single disk block, enabling efficient in-memory processing for merge joins without additional I/O overhead.
- The performance advantages of TripleT are consistent across synthetic data, DBPedia, and UniProt, indicating robustness across diverse RDF data characteristics.
- Optimizations like key compression used in MAP and HexTree can be directly applied to TripleT, preserving its performance benefits while enabling further space reduction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.