 Complete the following phrase:  In the Middle Ages, it was first part of the Duchy of Friuli and in the 13th century it was included in the County of Gorizia. Komen was first mentioned in a document from 1247. In 1500, the whole region fell under Habsburg dominion and it was included in the County of Gorizia and Gradisca until 1918. During World War I, the western parts of the municipality were devastated by the 