The oath is effectively a loyalty oath to the government or the governmental institutions, including clauses about upholding the constitution (USA) or loyalty to the Queen Britain/New Zealand.