Smale–Barden manifolds [Formula: see text] are classified by their second homology [Formula: see text] and the Barden invariant [Formula: see text]. It is an important and difficult question to decide when [Formula: see text] admits a Sasakian structure in terms of these data. In this work, we show methods of doing this. In particular, we realize all [Formula: see text] with [Formula: see text] and [Formula: see text] provided that [Formula: see text], [Formula: see text], [Formula: see text] are pairwise coprime. We give a complete solution to the problem of the existence of Sasakian structures on rational homology spheres in the class of semi-regular Sasakian structures. Our method allows us to completely solve the following problem of Boyer and Galicki in the class of semi-regular Sasakian structures: determine which simply connected rational homology 5-spheres admit negative Sasakian structures.