〜というのは〜ことだ
… means… (defining, explaining a term)machine translation
FormationWord/phrase being explained + というのは + explanation + (という)ことだ/という意味だ
〜というのは〜ことだ is the DEFINITION sentence frame: name a word, then explain what it means. 「花見」というのは、桜を見ながら楽しむことです ("hanami" means having a good time while viewing cherry blossoms). This is a pattern you will use constantly when asking about and explaining new words.
Choose the sentence ending to match the explanation: end with ことだ when the explanation is an action or event (〜することです); end with という意味だ when you want to say outright "it means" — especially when explaining signs or abbreviations: 「立入禁止」というのは、入ってはいけないという意味です.
In casual conversation, というのは gets shortened to って — the contraction you met at N4. As for つまり: つまり slips into the middle of a sentence to restate an idea another way, with no fixed frame; というのは〜ことだ is a complete definition sentence, the standard way to answer the question 「〜って何ですか」.
Examples
「花見」というのは、桜を見ながら楽しむことです。
"Hanami" means having fun while viewing cherry blossoms.
「立入禁止」というのは、入ってはいけないという意味です。
"Tachiiri kinshi" means no entry.
留学というのは、外国に行って勉強することです。
Studying abroad means going to a foreign country to study.