During a trial in February 2017, Guliyev pleaded guilty to all charges, publicly repented and, given the mitigating circumstances, was given a five-year prison term.
I don't think the above article has reported that correctly.
According to Forum 18, Guliyev was not given a prison term.
Asaf Guliyev was given a five-year restricted freedom sentence on 24 February.
A "restricted freedom" sentence is served in the community - it is not a prison term. The offender is under restrictions regarding movements and activity.
*I had said "7" years before...but I had that wrong. It was a 5 year sentence of restricted freedom, not 7.