Answer:
These so called word analogies or verbal analogies are available in lot of different types. In the examples given below the first one Shakespeare/plays, it is classified as performer and action analogy. The second one screen/computer corresponds to the type of an object and part of the whole Analogy.
Both are concrete analogies. Concrete analogies tend to be used to illustrate abstract concepts.