Profiles are the basic means to extend the usability of UML.
Figure A.28. Profiles
The UML specification does not describe a uniform way to apply a stereotype to a model elements. Figure A.29 describes the way Gaphor handles this.
Figure A.29. Stereotypes