Arcana Coelestia #4401
4401. 'And he set up an altar there' means interior worship. This is clear from the meaning of 'setting up an altar' as worship, for the altar was the chief representative of the Lord, 921, 2777, 2811, and therefore the chief feature of worship. By worship here is meant interior worship originating in the Divine Spiritual, dealt with in the paragraph following this.
Arcana Coelestia #1141
1141. Those who are here named 'sons of Japheth' were all such people as possessed external worship corresponding to internal, that is, people who lived in simplicity, friendship, and mutual charity, and knew no other doctrinal teachings than those which existed as external forms of ritual. Those who are named 'sons of Ham' were people who possessed corrupted internal worship. Those who are called 'sons of Canaan' were people who possessed external worship separated from internal. Those who are referred to as 'sons of Shem' were internal men, who worshipped the Lord and loved the neighbour. Their Church closely resembled the true Christian Church with us.