Updating document graph to incorporate namespacing