John Wilson was the Anglicized name of Captain Frederick Walgren, a Swedish sailor and o-yatoi gaikokujin (foreign professional) who was active in the development of British-Japanese ties in the late 19th century. Walgren was born in Genarp, Skåne, Sweden on 8 July 1851. He entered into British service, changing his name to Wilson. Wilson initially resided in Nagasaki, Kyūshū, living next-door to Thomas Blake Glover. The Wilson family subsequently resided in Nagasaki and Kobe. He married a Japanese national on 11 January 1883 at Christ Church, Yokohama, the Anglican church located in Yamate, overlooking the Port of Yokohama, Japan. His wife (b. 5 July 1860) upon baptism Anglicised her name from Naka Yamazaki to Sophia Wilson, and adopted her son, Nils Wilson. Their children were August, Frederick, Maria, Christina, Hilda, Hannah and John.
Sofia Wilson was a confidant and neighbor of Tsuru Glover, the Japanese wife of Thomas Glover, and together with Tsuru's friendship with the Japanese Ambassador to Italy, the stories of Naka and Tsuru may have been incorporated in Giacomo Puccini`s Madam Butterfly.
Captain Wilson was appointed Master of the First Grade to the Meiji Emperor. He was instrumental in the service of Japan during the First Sino-Japanese War. He was captain of the Sei-Kyo Maru, a transport ship and was involved in the Battle of Yalu (Battle of the Yellow Sea on 17 September 1894, carrying Vice-Admiral Kabayama Sukenori, chief of the Naval General Staff of Japan. The Sei-Kyo Maru was hit by four 12-inch shells, lost the protection of the main body of the fleet during the engagement, and was attacked by torpedo boats. She was saved from sinking and escaped from battle due to the naval expertise of Captain Wilson. This escape from battle made history, and became famous in Japanese Naval Military lore.