An apostrophe is a direct address to the dead, to the absent or to a personified object.
Examples-
1- O World ! O Life ! O Time !
2- Ah, love, let us be true.
3-Milton, thou should'st be living at this hour.
4- O Winds ! your song is very sweet.
5- Break, break, break on thy cold grey stones, O Sea !