So I've cleaned up a bit, there's only one prison object here. 
The issue now is that this object (https://www.openstreetmap.org/relation/2584487) is named  	Daugavgrīvas cietums, which consists of this prison and prison in Grīva, while wikidata and wikipedia links refer only to this prison. So does relation only for Daugavgrīvas cietums containing both territories make sense?
In case of two objects with the same name (simpler approach as for me) being better variant, this note can be closed.