Extendible graph processing in knowledge acquisition, planning and reasoning