Ontology Simplification for LLM. Alexiev, V. Blog post, June, 2025.
Blog abstract bibtex 1 download LLM's short term memory (token space) is limited, so a problem that often needs to be tackled is how to simplify an ontology to present it to an LLM. Even if it all fits in memory, long and badly presented ontologies run a high risk of the LLM getting confused or forgetting things in the middle. The shorter and "prettier" a schema is, the better its chance to be understood and used correctly in query answering. In this blog we share our experience with: An ERAbot for ERA KG of the European Agency for Railways; it uses the standard GraphDB Talk to Your Graph functionality (TTYG). The Talk2PowerSystem project for Statnett, involving CIM/CGMES electrical data; it uses a custom chatbot with custom tools; periodically we take learnings from this project and add them to the GraphDB product
@Misc{Alexiev-Ontology-Simplification-2025,
author = {Vladimir Alexiev},
title = {Ontology Simplification for LLM},
howpublished = {Blog post},
month = jun,
year = 2025,
url_Blog = {https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Ontology-Simplification-for-LLM},
keywords = {LLM, GPT, chatbot, ontology, ontology simplification, Talk to Your Graph, TTYG, text2sparql, NLQ, natural language querying, SPARQL generation},
abstract = {LLM's short term memory (token space) is limited, so a problem that often needs to be tackled is how to simplify an ontology to present it to an LLM. Even if it all fits in memory, long and badly presented ontologies run a high risk of the LLM getting confused or forgetting things in the middle. The shorter and "prettier" a schema is, the better its chance to be understood and used correctly in query answering. In this blog we share our experience with: An ERAbot for ERA KG of the European Agency for Railways; it uses the standard GraphDB Talk to Your Graph functionality (TTYG). The Talk2PowerSystem project for Statnett, involving CIM/CGMES electrical data; it uses a custom chatbot with custom tools; periodically we take learnings from this project and add them to the GraphDB product},
}
Downloads: 1
{"_id":"3tEBZYiuXuQG8XEfP","bibbaseid":"alexiev-ontologysimplificationforllm-2025","author_short":["Alexiev, V."],"bibdata":{"bibtype":"misc","type":"misc","author":[{"firstnames":["Vladimir"],"propositions":[],"lastnames":["Alexiev"],"suffixes":[]}],"title":"Ontology Simplification for LLM","howpublished":"Blog post","month":"June","year":"2025","url_blog":"https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Ontology-Simplification-for-LLM","keywords":"LLM, GPT, chatbot, ontology, ontology simplification, Talk to Your Graph, TTYG, text2sparql, NLQ, natural language querying, SPARQL generation","abstract":"LLM's short term memory (token space) is limited, so a problem that often needs to be tackled is how to simplify an ontology to present it to an LLM. Even if it all fits in memory, long and badly presented ontologies run a high risk of the LLM getting confused or forgetting things in the middle. The shorter and \"prettier\" a schema is, the better its chance to be understood and used correctly in query answering. In this blog we share our experience with: An ERAbot for ERA KG of the European Agency for Railways; it uses the standard GraphDB Talk to Your Graph functionality (TTYG). The Talk2PowerSystem project for Statnett, involving CIM/CGMES electrical data; it uses a custom chatbot with custom tools; periodically we take learnings from this project and add them to the GraphDB product","bibtex":"@Misc{Alexiev-Ontology-Simplification-2025,\n author = {Vladimir Alexiev},\n title = {Ontology Simplification for LLM},\n howpublished = {Blog post},\n month = jun,\n year = 2025,\n url_Blog = {https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Ontology-Simplification-for-LLM},\n keywords = {LLM, GPT, chatbot, ontology, ontology simplification, Talk to Your Graph, TTYG, text2sparql, NLQ, natural language querying, SPARQL generation},\n abstract = {LLM's short term memory (token space) is limited, so a problem that often needs to be tackled is how to simplify an ontology to present it to an LLM. Even if it all fits in memory, long and badly presented ontologies run a high risk of the LLM getting confused or forgetting things in the middle. The shorter and \"prettier\" a schema is, the better its chance to be understood and used correctly in query answering. In this blog we share our experience with: An ERAbot for ERA KG of the European Agency for Railways; it uses the standard GraphDB Talk to Your Graph functionality (TTYG). The Talk2PowerSystem project for Statnett, involving CIM/CGMES electrical data; it uses a custom chatbot with custom tools; periodically we take learnings from this project and add them to the GraphDB product},\n}\n\n","author_short":["Alexiev, V."],"key":"Alexiev-Ontology-Simplification-2025","id":"Alexiev-Ontology-Simplification-2025","bibbaseid":"alexiev-ontologysimplificationforllm-2025","role":"author","urls":{" blog":"https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Ontology-Simplification-for-LLM"},"keyword":["LLM","GPT","chatbot","ontology","ontology simplification","Talk to Your Graph","TTYG","text2sparql","NLQ","natural language querying","SPARQL generation"],"metadata":{"authorlinks":{}},"downloads":1},"bibtype":"misc","biburl":"https://vladimiralexiev.github.io/my/Alexiev-bibliography.bib","dataSources":["qQ4QyF9WbfwAyRcSb"],"keywords":["llm","gpt","chatbot","ontology","ontology simplification","talk to your graph","ttyg","text2sparql","nlq","natural language querying","sparql generation"],"search_terms":["ontology","simplification","llm","alexiev"],"title":"Ontology Simplification for LLM","year":2025,"downloads":1}