We study the Dirichlet problem for semilinear equations on general open sets with measure data on the right-hand side and irregular boundary data. For this purpose we develop the classical method of orthogonal projection. We treat in a unified form equations with operators belonging to the broad class of integro-differential operators associated with symmetric regular Dirichlet forms.