We present an architecture for the efficient storing and querying of large RDF datasets. Our proposal aims at storing RDF datasets in very reduced space while providing full SPARQL support. To do this, our solution builds on top of HDT, an RDF serialization framework, and its integration with the Jena query engine. We propose a set of extensions to this framework, in order to integrate a variety of space-efficient compact data structures as the underlying data representation, while taking advantage of the high-level capabilities to answer SPARQL queries. Our proposal provides a common mechanism to apply low-level data structures in complex query scenarios involving SPARQL queries, usually not supported by these solutions.