The German parliament voted on Thursday to pass a resolution recognizing the 1915-1916 massacre of Armenians by the Ottoman Empire as “genocide.”

The resolution, proposed by lawmakers from the ruling coalition of Conservatives and Socialists together with the Green party, was voted through the Bundestag after an hour-long debate, with one lawmaker opposing the resolution and one abstaining.

Turkey’s newly installed Prime Minister Binali Yildirim labeled the vote “absurd and wanton” in comments made Wednesday, warning that a vote on the resolution would mar German-Turkish relations.

Turkish President Recep Tayyip Erdogan’s spokesman called the impending vote “political abuse” last month.

Some 1.2 million Armenians were slaughtered or starved to death by the Ottomans during and after the first World War. The Turkish empire’s policy of ethnic violence was recognized by many European countries and by the European Parliament as the Armenian genocide.

Ankara dismisses any accusations of massacre and rejects the term “genocide,” saying that Turkish nationals were also victimized.

The Armenian genocide has been officially recognized by 27 countries, including Russia.