A Graph RAG (Retrieval-Augmented Generation) chat application that combines OpenAI GPT with knowledge graphs stored in GraphDB
AfterĀ seeing yet anotherĀ Graph RAG demo using Neo4j with no ontology, IĀ decided to show whatĀ real semantic Graph RAGĀ looks like.
TheĀ Problem with MostĀ Graph RAG Demos:
Everyone's buildingĀ Graph RAG withĀ LPG databasesĀ (Neo4j, TigerGraph, Arrango etc.) and callingĀ it "knowledge graphs." But here's the thing:
WithoutĀ formalĀ ontologies, you don't haveĀ aĀ knowledgeĀ graphāyou justĀ have aĀ graphĀ database.
TheĀ difference?
āĀ LPG: NodesĀ and edges are just strings. No semantics. No reasoning. No standards.
ā Ā RDF/SPARQL: Formal ontologiesĀ (RDFS/OWL) thatĀ define domain knowledge. Machine-readable semantics. W3C standards. Built-in reasoning.
SoĀ IĀ Built a RealĀ Semantic Graph RAG
Using:
- Microsoft Agent FrameworkĀ - AIĀ orchestration
- Formal ontologiesĀ - RDFS/OWL knowledge representation
- Ontotext GraphDBĀ - RDF triple store
- SPARQLĀ - semanticĀ querying
- GPT-5Ā - ontology-aware extraction
It's all on github, a simple template as boilerplate for you project:
The "Jaguar problem":
What does "Yesterday I was hit by a Jaguar" really mean? It is impossible to know without concept awareness. ToĀ demonstrateĀ why ontologies matter, I created a corpusĀ withĀ mixed content:
š WildlifeĀ jaguarsĀ (Panthera onca)
šĀ Jaguar cars (E-Type, XK-E)
šø FenderĀ Jaguar guitars
IĀ fed thisĀ to GPT-5 alongĀ with aĀ jaguar conservation ontology.
The result?Ā TheĀ LLM automaticallyĀ extracted ONLY wildlife-related entitiesāfilteringĀ out cars and guitarsābecauseĀ it understood theĀ semantic domainĀ fromĀ the ontology.
NoĀ post-processing. No manual cleanup. JustĀ intelligent, concept-aware extraction.
ThisĀ is impossibleĀ with LPG databasesĀ because theyĀ lack formalĀ semanticĀ structure. LabelsĀ likeĀ (:Jaguar)Ā are just stringsāthe LLM hasĀ no way to know if youĀ meanĀ the animal, car, or guitar.
KnowledgeĀ Graphs = "Data for AI"
LLMs don't need moreĀ dataāthey needĀ structured, semantic dataĀ theyĀ can reason over.
That's whatĀ formalĀ ontologies provide:
ā DomainĀ context
ā ClassĀ hierarchies
ā Property definitions
ā Relationship semantics
ā ReasoningĀ rules
This transforms Graph RAG from keyword matchingĀ into trueĀ semantic retrieval.
CheckĀ OutĀ the FullĀ Implementation, the repo includes:
Complete Graph RAG implementation withĀ Microsoft Agent Framework
Working jaguar conservationĀ knowledge graph
Jupyter notebook: ontology-aware extraction fromĀ mixed-content text
https://lnkd.in/dmf5HDRm
And if you have gotten this far, you realize that most of this post is written by Cursor ... That goes for the code too. š
Your Turn:
IĀ knowĀ this is a contentious topic. Many teamsĀ are heavilyĀ invested in LPG-based Graph RAG. What areĀ your thoughts on RDF vs. LPG for Graph RAG?Ā Drop a comment below!
#GraphRAG #KnowledgeGraphs #SemanticWebĀ #RDF #SPARQL #AIĀ #MachineLearning #LLMĀ #Ontology #KnowledgeRepresentation #OpenSource #neo4j #graphdb #agentic-framework #ontotext #agenticai | 148 comments on LinkedIn
Beyond RDF vs LPG: Operational Ontologies, Hybrid Semantics, and Why We Still Chose a Property Graph | LinkedIn
How to stay sane about āsemantic Graph RAGā when your job is shipping reliable systems, not winning ontology theology wars. You donāt wake up in the morning thinking about OWL profiles or SPARQL entailment regimes.
Connected Data London 2024: Semantics, a Disco Ball Jacket and an Escalator Metaphor in Hindsight | Teodora Petkova
This text is about my impressions from Connected Data London 2024. And about working towards a shared space of present and possible collaborative actions based on connected data and content. Intro: Shiny Happy Data People 20 years after the article in which Sir Tim Berners Lee imagined a paper on which you can click withContinue Weaving
The idea that chips and ontology is what you want to short is batsh*t crazy
āThe idea that chips and ontology is what you want to short is batsh*t crazy.ā
Whilst I couldn't agree more about how good chips (both the silicon & potato varieties) & ontologies are the context & semantics, as always, are important.....
The Context:
Michael Burry of Big Short fame is shorting AI as a trend with puts on Nvidia & Palantir being disclosed in the latest regulatory filings for his fund Scion Asset Management - $187 million against Nvidia and $912 million against Palantir as of Sept. 30.
The circularity of the latest AI boom and limitations of Large Language Models being amongst many reasons being cited for the apparent AI bubble which Burry believes will burst.
Whether you consider it a formal Ontology or not Palantir & Alex Karp are some of the few to use the 'O word' openly in product marketing - something long considered a brave move by many a frontier technology company!
https://lnkd.in/eh7SAS8P
Ontologies are also a key component of research & development to overcome many of the limitations of contemporary 'AI' systems and the factors contributing to the AI bubble Burry references.
Plug:
Interested in learning about what industry leaders are doing to overcome these limitations and develop AI systems with true reasoning capabilities? Come to this year's Connected Data London conference and engage in the debate, discussions and learning.
This year its at the Leonardo Royal Hotel Tower Bridge on 20th & 21st November and tickets are selling fast!
https://lnkd.in/entfkddD
CNBC article below with video interview:
https://lnkd.in/eHDpnWAW
The idea that chips and ontology is what you want to short is batsh*t crazy.
Unifying Data Structures and Knowledge Graphs | by Mark Burgess | Oct, 2025 | Medium
Unifying Data Structures and Knowledge Graphs Why we get confused about the difference between data and knowledge This article is about a technical issue around the use of Knowledge Graphs to ā¦
Industry Knowledge Graph Case Study - Semantic Arts
gistBFO is an open-source alignment mapping Semantic Artsā gist to BFO via subclass linksādelivering BFO compliance and cross-domain interoperability.
āShorting Ontologyā ā Why Michael Burry Might Not Be Wrong | LinkedIn
āThe idea that chips and ontology is what you want to short is batsh*t crazy.ā ā Alex Karp, CNBC, November 2025 When Palantirās CEO, Alex Karp, lashed out at Michael Burry ā āBig Shortā investor who bet against Palantir and Nvidia ā he wasnāt just defending his balance sheet.
How topology and ontology can build the future network without apology - The Mobile Network
Full network automation is still a way off ā but telco execs say it's a must-have, and they know what they need to get there. Can they build a re-imagined OSS to unlock innovation?
The Schema Paradox: Why LPGs Are Both Structured and Free
The Schema Paradox: Why LPGs Are Both Structured and Free
In the world of data and AI, we are often forced to choose between rigid structure and complete flexibility. But labelled property graphs (LPGs) quietly break that rule. They evolve structure through use, building ontology through action.
In this new piece, I explore how LPGs balance order and chaos to form living schemas that grow alongside the data and its context. Integrated with GraphRAG and Applied Knowledge Graphs (AKGs), they become engines of adaptive intelligence, not just models of data.
This isnāt theory, it's how modern systems are learning to reason contextually, adapt dynamically and evolve continuously.
Full article: https://lnkd.in/eUdmQjyH
#GraphData #KnowledgeGraph #KG #GraphRAG #AppliedKnowledgeGraph #AKG #LPG #DataArchitecture #AI #KnowledgeEngineering
The Schema Paradox: Why LPGs Are Both Structured and Free
One question keeps coming up about UDA: why don't we call them ontologies?
One question keeps coming up about UDA: why don't we call them ontologies?
We actually tried that. People said 'ontology' was too abstract, too academic, that they felt dumb. So we were asked to step back: what were we really asking for? Conceptual models of business domains. Turns out people already had the right intuitions: domain-driven design, domain graph services, database modeling, etc.
We literally did a search-replace: 'ontology' became 'domainĀ model'. They understood overnight š
But there's more to it. Most ontology frameworks are just RDF, OWL, and SHACL. Upper does use those as building blocks and adds what's missing: information architecture, federation for collaborative modeling, and bootstrap properties. Domain models that are self-describing, self-referencing, self-governing. 'Ontology' just doesn't capture that precision.
So 'domain model' it is, not 'ontology'.
One question keeps coming up about UDA: why don't we call them ontologies?
Ontology Bill of Material? Do we really need it?
In software engineering, we have SBOMs, Maven, Gradle, pip, and npm. We have decades of best practices for dependency management, version pinning, and granular control. We can exclude transitive dependencies we don't want.
In ontology engineering and semantic modeling... we have owl:imports.
We're trying to build mission-critical, enterprise-scale knowledge graphs, but our core dependency mechanism often feels like a step back in time. We talk about logical rigor, but we're living in "dependency hell."
So:
"How do you manage different versions of an ontology? How do you go through the complexity of imports? How do you propagate changes?"
And the answer right now is: With great difficulty! and a lot of custom workarounds.
The owl:imports axiom is a logical "all-or-nothing" merge. It's defined as a transitive closure. This is the direct cause of our most common and painful problems:
- The "Diamond Problem": Your ontology imports Model-A (which needs Common-v1) and Model-B (which needs Common-v2). Your tool just pulls in both, creating a logical mess of conflicting axioms. A software build would fail and force you to resolve this.
- Model Bloat: You want to use one class from a massive upper ontology (e.g schema .org)? Congratulations, you just imported the entire thing, plus everything it imports. And good luck with that RAM spikes, lags, ...
- No Granular Control: This is the big one. In Maven or Gradle, you can exclude a problematic transitive dependency. In OWL, this is simply not possible at the specification level. You get everything.
So, yes, we need the concept of an "Ontology Bill of Materials" (OBOM).
We need a manifest file that lives with our ontology (and helps us to build it) and provides a reproducible "build." We need our tools (Protege, OWL API, ...) to treat this as a first-class citizen.
This manifest would:
-List all direct dependencies.
-Pin their exact versions (via VersionIRI or even a content hash).
-Resolve and list the full transitive dependency graph, so we know exactly what we are loading.
-Detects problematic imports, cyclic dependencies, ...
The "duct tape" we use today like custom build scripts, manually copy paste of element and so on are just admissions that owl:imports is not enough.
It's time to adopt the mature engineering practices that software teams have relied on for decades.
So how do you deal with complex ontology/model dependencies? How do you and your teams manage this chaos today?
#Ontology #KnowledgeGraph #SemanticWeb #RDF #OWL | 39 comments on LinkedIn
The O-word, āontologyā is here! Traditionally, you couldnāt say the word āontologyā in tech circles without getting a side-eye. Now? Everyoneās suddenly an ontology expert. And honestly⦠Iām here for it.
As someone whoās been deep in this space, this moment is exciting. Weāre finally having the right conversations about semantic interoperability and the relationship with Agentic AI.
But hereās the thing: before we reinvent the wheel, we need to understand the road already paved.
š§ Homework if youāre diving into this space (link in comments):
1ļøā£ Read the original Semantic Web vision article by Tim BernersāLee, James Hendler & Ora Lassila It laid out a future weāre finally ready for. Before you complain that āitās complicatedā or āthat never worked and failedā, recall that this was a vision that laid out a roadmap of what was needed. Learn about the W3C standards that have emerged from this vision. Honored that I got to write a book with Ora!
2ļøā£ Explore ISWC (International Semantic Web Conference) This scientific community was created to research what would it take to fulfill the Semantic Web vision. Itās the top scientific conference in this space, running for over 20 years. Iām proud to call it my academic home (been attending since 2008). ISWC will take place next week in Nara, Japan and Iām excited to be keynoting the Knowledge Base Construction from Pre-Trained Language Models Workshop and be part of the Panel: Reimagining Knowledge: The Future and Relevance of Symbolic Representation in the Age of LLMs. Take a look at the program and accepted papers if you want to know where the puck is heading!
3ļøā£ Learn the history of knowledge graphs. It didnāt start with Google. Itās not just about graph databases. The Semantic Web has been a huge influence, in addition to so many events over 50+ years that have worked to connect data and knowledge at scale. Prof Claudio Gutierrez and I wrote a paper that goes into this history.
Why this matters? Because weāre in a moment where many talk about āsemanticā and āknowledgeā, but often without acknowledging the deep foundations.Ā AI agents, interoperability, and scalable intelligence depend on these foundations. The tech, standards and tools exist. If you rebuild from scratch, you waste time. But if you stand on these shoulders, you build faster and smarter.
Learn about the W3C standards: RDF, OWL, SPARQL, SHACL, SKOS, etc. Take a look at open source projects like Apache Jena, RDFLib, QLever, Protege. If somethingās broken, or if you donāt like how itās done, donāt start from scratch. Improve it. Contribute. Build on whatās already there.
So if youāre posting about ontologies or knowledge graphs, please ask yourself:
- Did I look at the classical semantic web work (yes, that 2001 article) and the history of knowledge graphs?
- Am I building on the shoulders of giants, rather than reāstarting?
- If I disagree with a standard/open source project, am I choosing to contribute instead of ignoring it? | 65 comments on LinkedIn
UB to offer a fully online graduate degree in ontology
The applied ontology degree will prepare students from around the world for work in this rapidly growing interdisciplinary branch of information science.
Two Meanings of āSemantic Layerā and Why Both Matter in the Age of AI
"Semantic layerā means different things depending on who you ask.
In my latest newsletter, published on Medium first this time, I look at the two definitions and how they can work together.
Are you using a semantic layer? if so, which type?
#SemanticLayer #DataGovernance #AnalyticsEngineering #DataandAI | 25 comments on LinkedIn
AIOTI WG Standardisation Focus Group on Semantic Interoperability has prepared a report on Data to Ontology Mapping. A key challenge people face when using ontologies is [ā¦]
Time and space in the Unified Knowledge Graph environment
PDF | On Oct 2, 2025, Lyubo Blagoev published Time and space in the Unified Knowledge Graph environment | Find, read and cite all the research you need on ResearchGate
Transforming SHACL Shape Graphs into HTML Applications for Populating Knowledge Graphs
Creating applications to manually populate and modify knowledge graphs is a complex task. In this paper, we propose a novel approach for designing user interfaces for this purpose, based on existing SHACL constraint files. Our method consists of taking SHACL constraints and creating multi-form web applications. The novelty of the approach is to treat the editing of knowledge graphs via multi-form application interaction as a business process. This enables user interface modeling, such as modeling of application control flows by integrating ontology-based business process management components. Additionally, because our application models are themselves knowledge graphs, we demonstrate how they can leverage OWL reasoning to verify logical consistency and improve the user experience.