[Paper Review] Compressed Vertical Partitioning for Full-In-Memory RDF Management
This paper proposes k²-triples, a compressed vertical partitioning technique for full-in-memory RDF management that represents subject-object pairs per predicate as sparse binary matrices, efficiently compressed using k²-trees. The method achieves up to 10× space reduction and 5–7 orders of magnitude faster SPARQL resolution than state-of-the-art baselines, with optimized join algorithms outperforming existing systems on key query patterns.
The Web of Data has been gaining momentum and this leads to increasingly publish more semi-structured datasets following the RDF model, based on atomic triple units of subject, predicate, and object. Although it is a simple model, compression methods become necessary because datasets are increasingly larger and various scalability issues arise around their organization and storage. This requirement is more restrictive in RDF stores because efficient SPARQL resolution on the compressed RDF datasets is also required. This article introduces a novel RDF indexing technique (called k2-triples) supporting efficient SPARQL resolution in compressed space. k2-triples, uses the predicate to vertically partition the dataset into disjoint subsets of pairs (subject, object), one per predicate. These subsets are represented as binary matrices in which 1-bits mean that the corresponding triple exists in the dataset. This model results in very sparse matrices, which are efficiently compressed using k2-trees. We enhance this model with two compact indexes listing the predicates related to each different subject and object, in order to address the specific weaknesses of vertically partitioned representations. The resulting technique not only achieves by far the most compressed representations, but also the best overall performance for RDF retrieval in our experiments. Our approach uses up to 10 times less space than a state of the art baseline, and outperforms its performance by several order of magnitude on the most basic query patterns. In addition, we optimize traditional join algorithms on k2-triples and define a novel one leveraging its specific features. Our experimental results show that our technique overcomes traditional vertical partitioning for join resolution, reporting the best numbers for joins in which the non-joined nodes are provided, and being competitive in the majority of the cases.
Motivation & Objective
- Address the scalability challenges of large-scale RDF datasets in main memory by minimizing space usage.
- Overcome the limitations of traditional vertical partitioning and in-memory SPARQL performance bottlenecks through advanced compression and indexing.
- Design a compact, efficient, and scalable RDF storage model that supports fast triple pattern and join queries.
- Enable full SPARQL resolution in main memory by combining k²-tree compression with auxiliary compact indexes for subjects and objects.
- Develop optimized join algorithms tailored to the k²-triples data structure for improved performance on real-world RDF workloads.
Proposed method
- Vertically partition the RDF dataset by predicate, creating disjoint subject×object binary matrices for each predicate.
- Represent each matrix as a sparse binary structure, where 1-bits indicate the presence of a triple (subject, predicate, object).
- Compress each sparse matrix using k²-trees, which provide efficient compression and indexed access for sparse binary data.
- Enhance the model with two additional compact indexes: one listing predicates per subject and another per object, to address unbounded predicate queries.
- Optimize traditional join algorithms and introduce a novel chain-based evaluation strategy leveraging the structure of k²-triples.
- Implement and evaluate the system on real-world RDF datasets, comparing performance and space usage against state-of-the-art systems like RDF3X and MonetDB.
Experimental results
Research questions
- RQ1Can vertical partitioning combined with k²-tree compression achieve significantly better space efficiency and query performance than existing in-memory RDF systems?
- RQ2How does the inclusion of auxiliary compact indexes for subjects and objects affect the performance of SPARQL queries with unbound predicates?
- RQ3To what extent does the k²-triples model outperform existing systems in terms of query execution time and memory footprint for triple pattern and join queries?
- RQ4Can a novel join evaluation strategy be designed that exploits the structural properties of k²-triples to improve join resolution performance?
- RQ5How does the system scale across different RDF dataset sizes and join patterns, particularly when intermediate result sets vary in size?
Key findings
- k²-triples achieves up to 10× reduction in space usage compared to the best state-of-the-art baseline, significantly improving memory efficiency.
- The system delivers up to 5–7 orders of magnitude faster SPARQL resolution for basic triple pattern queries than the baseline, especially when the predicate is fixed.
- For join queries where non-joined nodes are provided (e.g., joins A, D, G), k²-triples + consistently outperforms RDF3X and MonetDB, with chain evaluation being optimal for OO joins.
- In cases with unbound predicates, the auxiliary indexes ensure that k²-triples remains competitive, though performance degrades slightly compared to fixed-predicate scenarios.
- The novel chain-based join evaluation strategy in k²-triples + achieves the best performance for OO joins, outperforming both RDF3X and interactive evaluation in most cases.
- k²-triples + is the fastest system for joins involving small intermediate result sets, and remains competitive even for large intermediate results, especially when predicates are bound.
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.