Efficient Query Processing in RDF Databases