Using Semantic Reasoning to Help LLM with SPARQL Generation in Electrical CIM. Alexiev, V. Blog post, June, 2025.
Blog abstract bibtex Electrical CIM is a complex ontology that can represent the complete electrical enterprise, including generation, transmission, distribution, client operations, asset management, market info and operations. One of the basic ontology modules (profiles) is about Equipment. It models Equipments, Equipment Containers, Terminals, Connectivity Nodes. Thus a query like "List all substations that are connected via an AC-line to substation XYZ" becomes very complex, and unfeasible for an LLM to generate. We have used standard OWL2 RL rules to add inferred relations, which makes the query much simpler and allows the LLM to generate it confidently. It was also important to describe (document) the derived properties well, to allow the LLM to discover them and use them. This is a great case showcasing the benefits of using semantic reasoning to make a KG easier to use, therefore making the LLM's task easier.
@Misc{Alexiev-reasoning-LLM-2025,
author = {Vladimir Alexiev},
title = {Using Semantic Reasoning to Help LLM with SPARQL Generation in Electrical CIM},
howpublished = {Blog post},
month = jun,
year = 2025,
url_Blog = {https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Using-Semantic-Reasoning-to-Help-LLM-with-SPARQL-Generation-in-Electrical-CIM},
keywords = {LLM, GPT, chatbot, reasoning, derived relations, shortcut relations, Talk to Your Graph, TTYG, text2sparql, NLQ, natural language querying, SPARQL generation},
abstract = {Electrical CIM is a complex ontology that can represent the complete electrical enterprise, including generation, transmission, distribution, client operations, asset management, market info and operations. One of the basic ontology modules (profiles) is about Equipment. It models Equipments, Equipment Containers, Terminals, Connectivity Nodes. Thus a query like "List all substations that are connected via an AC-line to substation XYZ" becomes very complex, and unfeasible for an LLM to generate. We have used standard OWL2 RL rules to add inferred relations, which makes the query much simpler and allows the LLM to generate it confidently. It was also important to describe (document) the derived properties well, to allow the LLM to discover them and use them. This is a great case showcasing the benefits of using semantic reasoning to make a KG easier to use, therefore making the LLM's task easier.},
}
Downloads: 0
{"_id":"GQH4Q9DwM4SwWqkpq","bibbaseid":"alexiev-usingsemanticreasoningtohelpllmwithsparqlgenerationinelectricalcim-2025","author_short":["Alexiev, V."],"bibdata":{"bibtype":"misc","type":"misc","author":[{"firstnames":["Vladimir"],"propositions":[],"lastnames":["Alexiev"],"suffixes":[]}],"title":"Using Semantic Reasoning to Help LLM with SPARQL Generation in Electrical CIM","howpublished":"Blog post","month":"June","year":"2025","url_blog":"https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Using-Semantic-Reasoning-to-Help-LLM-with-SPARQL-Generation-in-Electrical-CIM","keywords":"LLM, GPT, chatbot, reasoning, derived relations, shortcut relations, Talk to Your Graph, TTYG, text2sparql, NLQ, natural language querying, SPARQL generation","abstract":"Electrical CIM is a complex ontology that can represent the complete electrical enterprise, including generation, transmission, distribution, client operations, asset management, market info and operations. One of the basic ontology modules (profiles) is about Equipment. It models Equipments, Equipment Containers, Terminals, Connectivity Nodes. Thus a query like \"List all substations that are connected via an AC-line to substation XYZ\" becomes very complex, and unfeasible for an LLM to generate. We have used standard OWL2 RL rules to add inferred relations, which makes the query much simpler and allows the LLM to generate it confidently. It was also important to describe (document) the derived properties well, to allow the LLM to discover them and use them. This is a great case showcasing the benefits of using semantic reasoning to make a KG easier to use, therefore making the LLM's task easier.","bibtex":"@Misc{Alexiev-reasoning-LLM-2025,\n author = {Vladimir Alexiev},\n title = {Using Semantic Reasoning to Help LLM with SPARQL Generation in Electrical CIM},\n howpublished = {Blog post},\n month = jun,\n year = 2025,\n url_Blog = {https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Using-Semantic-Reasoning-to-Help-LLM-with-SPARQL-Generation-in-Electrical-CIM},\n keywords = {LLM, GPT, chatbot, reasoning, derived relations, shortcut relations, Talk to Your Graph, TTYG, text2sparql, NLQ, natural language querying, SPARQL generation},\n abstract = {Electrical CIM is a complex ontology that can represent the complete electrical enterprise, including generation, transmission, distribution, client operations, asset management, market info and operations. One of the basic ontology modules (profiles) is about Equipment. It models Equipments, Equipment Containers, Terminals, Connectivity Nodes. Thus a query like \"List all substations that are connected via an AC-line to substation XYZ\" becomes very complex, and unfeasible for an LLM to generate. We have used standard OWL2 RL rules to add inferred relations, which makes the query much simpler and allows the LLM to generate it confidently. It was also important to describe (document) the derived properties well, to allow the LLM to discover them and use them. This is a great case showcasing the benefits of using semantic reasoning to make a KG easier to use, therefore making the LLM's task easier.},\n}\n\n","author_short":["Alexiev, V."],"key":"Alexiev-reasoning-LLM-2025","id":"Alexiev-reasoning-LLM-2025","bibbaseid":"alexiev-usingsemanticreasoningtohelpllmwithsparqlgenerationinelectricalcim-2025","role":"author","urls":{" blog":"https://github.com/statnett/Talk2PowerSystem/wiki/Blog-Using-Semantic-Reasoning-to-Help-LLM-with-SPARQL-Generation-in-Electrical-CIM"},"keyword":["LLM","GPT","chatbot","reasoning","derived relations","shortcut relations","Talk to Your Graph","TTYG","text2sparql","NLQ","natural language querying","SPARQL generation"],"metadata":{"authorlinks":{}}},"bibtype":"misc","biburl":"https://vladimiralexiev.github.io/my/Alexiev-bibliography.bib","dataSources":["qQ4QyF9WbfwAyRcSb"],"keywords":["llm","gpt","chatbot","reasoning","derived relations","shortcut relations","talk to your graph","ttyg","text2sparql","nlq","natural language querying","sparql generation"],"search_terms":["using","semantic","reasoning","help","llm","sparql","generation","electrical","cim","alexiev"],"title":"Using Semantic Reasoning to Help LLM with SPARQL Generation in Electrical CIM","year":2025}