Performance Evaluation of LLMs in Automated RDF Knowledge Graph Generation
Not on the map. Why?
Abstract (arXiv)
Cloud systems generate large, heterogeneous log data containing critical infrastructure, application, and security information. Transforming these logs into RDF triples enables their integration into knowledge graphs, improving interpretability, root-cause analysis, and cross-service reasoning beyond what raw logs allow. Large Language Models (LLMs) offer a promising approach to automate RDF knowledge graph generation; however, their effectiveness on complex cloud logs remains largely unexplored. In this paper, we evaluate multiple LLM architectures and prompting strategies for automated RDF extraction using a controlled framework with two pipelines for systematically processing semi-structured log data. The extraction pipeline integrates multiple LLMs to identify relevant entities and relationships, automatically generating subject-predicate-object triples. These outputs are evaluated using a dedicated validation pipeline with both syntactic and semantic metrics to assess accuracy, completeness, and quality. Due to the lack of public ground-truth datasets, we created a reference Log-to-KG dataset from OpenStack logs using manual annotation and ontology-driven methods, enabling objective baseline. Our analysis shows that Few-Shot learning is the most effective strategy, with Llama achieving a 99.35% F1 score and 100% valid RDF output while Qwen, NuExtract, and Gemma also perform well under Few-Shot prompting, with Chain-of-Thought approaches maintaining similar accuracy. One-Shot prompting offers a lighter but effective alternative, while Zero-Shot and advanced strategies such as Tree-of-Thought, Self-Critique, and Generate-Multiple perform substantially worse. These results highlight the importance of contextual examples and prompt design for accurate RDF extraction and reveal model-specific limitations across LLM architectures.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 52 references that are in the map. First posted on arXiv 6 Feb 2026.
Builds on
20 of 52 references.
References · 20
- 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 668
- 2024Retrieval-Augmented Generation with Graphs (GraphRAG)cited by 172
- 2024Generate-on-Graph: Treat LLM as both Agent and KG in Incomplete Knowledge Graph Question Answeringcited by 60
- 2023Exploring Large Language Models for Knowledge Graph Completioncited by 43
- 2024From human experts to machines: An LLM supported approach to ontology and knowledge graph constructioncited by 40
- 2024A Survey of Large Language Models on Generative Graph Analytics: Query, Learning, and Applicationscited by 17
- 2024UrbanKGent: A Unified Large Language Model Agent Framework for Urban Knowledge Graph Constructioncited by 15
- 2024Can LLMs be Good Graph Judge for Knowledge Graph Construction?cited by 11
- 2024NAT-NL2GQL: A Novel Multi-Agent Framework for Translating Natural Language to Graph Query Languagecited by 9
- 2023Zero- and Few-Shots Knowledge Graph Triplet Extraction with Large Language Modelscited by 7
- 2025GKG-LLM: A Unified Framework for Generalized Knowledge Graph Constructioncited by 6
- 2024Leveraging Large Language Models for Semantic Query Processing in a Scholarly Knowledge Graphcited by 5
8 more
- 2025FIRESPARQL: A LLM-based Framework for SPARQL Query Generation over Scholarly Knowledge Graphscited by 5
- 2024Traceable LLM-based validation of statements in knowledge graphscited by 4
- 2025OntoLogX: Ontology-Guided Knowledge Graph Extraction from Cybersecurity Logs with Large Language Modelscited by 4
- 2024Assessing LLMs Suitability for Knowledge Graph Completioncited by 3
- 2025Large Language Models for Knowledge Graph Embedding: A Surveycited by 3
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logscited by 2
- 2025Evaluating improvements on using Large Language Models (LLMs) for property extraction in the Open Research Knowledge Graph (ORKG)cited by 1
- 2025Adaptive and Efficient Log Parsing as a Cloud Servicecited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026LLM-Guided Ontology-Driven Knowledge Graph Construction from Unstructured Text
- 2026PIPE-RDF: An LLM-Assisted Pipeline for Enterprise RDF Benchmarking
- 2025LLM-empowered knowledge graph construction: A survey
- 2023Enhancing Knowledge Graph Construction Using Large Language Models
- 2026Benchmarking Large Language Models for Knowledge Graph Validation
- 2023LLMs for Knowledge Graph Construction and Reasoning: Recent Capabilities and Future Opportunities
- 2024Thinking with Knowledge Graphs: Enhancing LLM Reasoning Through Structured Data
- 2024Leveraging LLM for Automated Ontology Extraction and Knowledge Graph Generation