1. A method comprising: receiving, with a database system, a first query and a second 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 that represent an RDF subgraph of the RDF database; accessing a first index that indexes one or more of the data chunks to identify a first subset of the data chunks relevant to the first query, wherein the first index comprises keys defined by a first characteristic of the first subset of the data chunks; loading the first subset of the data chunks to a main memory associated with the database system; executing the first query only against triples included within the subset of the data chunks loaded to the main memory to obtain a query result for the first query; based on the query result for the first query, accessing a second index to identify a second subset of the data chunks relevant to the second query, wherein the second index comprises keys defined by a second characteristic of the second subset of the data chunks; loading the second subset of the data chunks to the main memory; and executing the second query only against triples included within the first subset of the data chunks and the second subset of the data chunks loaded to the main memory to obtain a query result for the second query.
2. The method of claim 1 , wherein a first one of the first plurality of data chunks includes a first plurality of triples of the RDF database, wherein a second one of the first plurality of data chunks includes a second plurality of triples of the RDF database, wherein the first plurality of triples comprises a first RDF graph, wherein the second plurality of triples comprises a second RDF graph, wherein loading the first subset of the data chunks to a main memory comprises merging the first RDF graph and the second RDF graph to generate a combined RDF graph in the main memory, and wherein executing the first query comprises executing the first query only against the combined RDF graph.