From the course: Hands-On AI: Knowledge Graphs for Generative AI Use Cases

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Adding instances and annotations

Adding instances and annotations

- [Instructor] So, we already covered how an instance should be the lowest common denominator you need to answer questions from your graph and LLM use case. But modeling instances versus classes can take a few different modeling directions. In our TTOO or Two Trees Olive Oil case, we are modeling the following tables. We will keep these small for now. That is customer database, product catalog, purchase orders, and our vendor list. To start, let's add the names of customers and states as instances. So, customer and state. And remember, we're getting all of the data throughout this course through the tables that we just reviewed. So, for Florida, you could take the individual state names as classes if you wanted each state to relate to other nodes, like state flag, short name, other information like that. In our TTOO case, we don't need that level of detail. We just need to know which state a customer is from. So, the individual states will be instances in our model. It's another way…

Contents