1. A method comprising: receiving, with a database system, a query for a Resource Description Framework (RDF) database that stores a plurality of data chunks to one or more storage drives, wherein each of the plurality of data chunks includes a plurality of triples of the RDF database; accessing an index that indexes one or more of the data chunks to identify a subset of the data chunks relevant to the query; loading the subset of the data chunks to a main memory associated with the database system; and executing the query only against triples included within the subset of the data chunks loaded to the main memory to obtain a query result.