What is the difference between "vocabulary" and "taxonomy term"?

Created on 14 June 2022, over 2 years ago
Updated 10 March 2023, almost 2 years ago

How to add taxonomy in drupal; not a vocabulary?

I am following drupal documentation. In chapter 6.5 , they explain how taxonomy is different from vocabulary. In this page it is suggested that on a website, which lists farmers and recipes listed by them, we should have a taxonomy for the ingredients of recipes:

the farmers market website could use an ingredients taxonomy to classify recipes.

So lets say I have a taxonomy ingredients with its terms as red tomato, green tomato, small tomato, cumin, carrot, eggplant, salt, pepper. Also the documentation mentions:

...a set of terms is known as a vocabulary ...  

So in my case red tomato, green tomato and small tomato represent one vocabulary.

In the next documentation page chapter 6.6 , it says:

Create an Ingredients vocabulary

No no no, so my question is how do I create an Ingredients taxonomy; not an Ingredients vocabulary? Even in drupal admin panel I see only the option to create vocabulary under structure>taxonomy.

💬 Support request
Status

Fixed

Component

Correction/Clarification

Created by

🇦🇺Australia anupamkhosla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇷Costa Rica Jstevenla

    Hi @apoderno, it's normal to be confuse, that's because a vocabulary and taxonomy are similar but not the same, I will explain with similar case!

    • Drupal Restaurant Site:
    • You are a developer of a Restaurant site, in this restaurant you can order any kind of food Chinese, Japanese, Indian, Italian, Spanish, Greek, French and you need to classify that food in this kind of food, so you go the Drupal Restaurant Site,you create a vocabulary in structure>taxonomy with the list of types of foods. we could name it likeDish Type, that's the Vocabulary and the terms inside the vocabulary are the Taxonomy Terms (the items like Chinese, Japanese, Greek etc...), then when you create a Dish content type (in structure>content types) you can add a field to reference to a taxonomy and when you add the content in Content>Add content and you can select the kind of food of the dish that you are adding. The taxonomy is the entity that you reference inside the node, as a content type, a block a media or anything else that you can make a reference in a drupal site.


    Resume: Dish type is the Vocabulary, the items inside Dish type are the taxonomy terms, and the taxonomy is the entity like other entities inside drupal!

    Remember The Taxonomy term are entities, so you can do a lot of things with that, like add fields inside the terms in /admin/structure/taxonomy/manage/taxonomy_machine_name/overview/fields and use for other proposes, but remember they are created to classify other entities inside drupal!

    I hope I've helped!

  • Issue was unassigned.
  • Status changed to Fixed almost 2 years ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    A vocabulary is a set of taxonomy terms; taxonomy terms are items of that set. You first create a vocabulary and then add items in that vocabulary.

    There is not having that needs to be corrected in the documentation about that. It is just a matter of understanding that one is the name of the whole, and one is the name of the single items.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024