The Kojiki or `` Record of Ancient Things '' is the oldest known book of myths , legends , and history of Japan . The Kojiki or `` Record of Ancient Matters '' is the oldest recognized book of myths , legends and history of Japan .