It depends on which one you refer to because both had some relation to Alsace-Lorraine.
However, the first one broke out after a complicated system of alliances together with a non compromising attitude towards nationalism (assasination ultimatum). I file that under ideology and honor.
The second one broke out due to a really insane ideology, that although talked about resources, time and time again took resources from the war itself for its death apparatus