In this paper we address several issues of rule modeling on the basis of UML. We discuss the relationship between UML class models and OWL vocabularies. We show how certain rules can be specified in a class diagram with the help of OCL. We also show how rule concepts can be described, and abstract syntax of RDF, OWL, SWRL and RuleML can be defined, by means of UML class diagrams in a concise way.