Usually, apostrophe S ('s) is not used with non-living things. In this case, the of-construction is either maintained (the leg of the chair) or a compound noun is formed (the chair leg).