A Scalable and Extensible Framework for query answering over RDF