The legal aspects of the SWAMI project