The Thomas-Fermi approach to galaxy structure determines self-consistently and non-linearly the gravitational potential of the fermionic warm dark matter (WDM) particles given their quantum distribution function f (E). This semiclassical framework accounts for the quantum nature and high number of DM particles, properly describing gravitational bounded and quantum macroscopic systems as neutron stars, white dwarfs and WDM galaxies. We express the main galaxy magnitudes as the halo radius r h , mass M h , velocity dispersion and phase space density in terms of the surface density which is important to confront to observations. From these expressions we derive the general equation of state for galaxies, i.e., the relation between pressure and density, and provide its analytic expression. Two regimes clearly show up: (1) Large diluted galaxies for M h 2.3 × 10 6 M and effective temperatures T 0 > 0.017 K described by the classical self-gravitating WDM Boltzman gas with a space-dependent perfect gas equation of state, and (2) Compact dwarf galaxies for 1.6 × 10 6 M M h M h,min 3.10 × 10 4 (2 keV/m) 16 5 M , T 0 < 0.011 K described by the quantum fermionic WDM regime with a steeper equation of state close to the degenerate state. In particular, the T 0 = 0 degenerate or extreme quantum limit yields the most compact and smallest galaxy. In the diluted regime, the halo radius r h , the squared velocity v 2 (r h ) and the temperature T 0 turn to exhibit square-root of M h scaling laws. The normalized density profiles ρ(r )/ρ(0) and the normalized velocity profiles v 2 (r )/v 2 (0) are universal functions of r/r h reflecting the WDM perfect gas behavior in this regime. These theoretical results contrasted to robust and independent sets of galaxy data remarkably reproduce the observations. For the small galaxies, 10 6 M h ≥ M h,min , the equation of state is galaxy mass dependent and the density a e-mail: Norma.Sanchez@obspm.fr and velocity profiles are not anymore universal, accounting to the quantum physics of the self-gravitating WDM fermions in the compact regime (near, but not at, the degenerate state). It would be extremely interesting to dispose of dwarf galaxy observations which could check these quantum effects.