Magnetic properties of periodically organized cobalt frameworks