Quadtree-based index for RDF database