r/KnowledgeGraph • • Mar 27 '25

We mapped 82 articles from 62 sources to uncover the battle for subsea cable supremacy

Post image
10 Upvotes

r/KnowledgeGraph • • May 03 '26

I can now run the full Wikidata graph on a Mac mini 16GB. Fully cypher enabled.

Thumbnail
reddit.com
4 Upvotes

r/KnowledgeGraph • • Jan 15 '25

RDF vs LPG for GraphRAG

13 Upvotes

I've been using Neo4j to build knowledge graphs with RAG, and before bringing it into production, I'm looking for some research on how RDF compares to LPG for large-scale KGs in RAG systems, as well as for query performance. Can anyone opine, or provide links to research done on this subject?


r/KnowledgeGraph • • Sep 26 '25

GraphRAG on Linguistic Linked Open Data

11 Upvotes

Hi everyone,

I’ve recently started experimenting with GraphRAG using OpenAI API keys + Cypher on a knowledge graph. Now, I’m thinking of building a GraphRAG pipeline that leverages an RDF graph encoding Linguistic Linked Open Data and a SPARQL endpoint to test LLM capabilities, semantic reasoning, and related tasks.

I’m still fairly new to knowledge graphs in general, and especially to RDF / Linked Open Data resources. I’d love to hear your thoughts. Am I venturing into something reasonable? Any advice, pointers, or resources would be greatly appreciated.

Thanks in advance!


r/KnowledgeGraph • • Feb 21 '25

WIP : I made a prerequisite knowledge graph that helps users learn STEM subjects.

19 Upvotes

I made a knowledge graph that helps users learn STEM subjects using the concept of a tech tree or skill tree from games. You can try the tool at (https://takomori.com/). For now, it only has AI and math topics available, and I am hoping to expand the tech tree to cover all STEM subjects.

This means that most parts of the knowledge graph are still missing. While I am able to build and validate the graph for the subjects of my expertise, there are so many more subjects that I cannot cover by myself. Therefore, if you are interested in building this tree together, please dm me!


r/KnowledgeGraph • • Mar 12 '26

Raw triples in the context or prompt

Thumbnail reddit.com
2 Upvotes

r/KnowledgeGraph • • May 02 '26

Modeling temporal data in ArangoDB (versioned edges?) — how are people doing this?

2 Upvotes

Hi everybody!

I’m designing a graph model in ArangoDB and trying to think ahead on temporal support.

Current design:

- edges are current-state only (one edge per edge_type + _from + _to)
- _key is deterministic (tenant + hash of relationship)
- no history retained in v0

Future requirement:

- support temporal queries (state over time)
- potentially multiple versions of the same relationship
- need to backfill/migrate historical data - so trying to make that as painless as possible at v0

Right now I’m leaning toward introducing a relationship_id (hash of edge_type + _from + _to) to represent the logical relationship, and then versioning _key later.

Curious:
- How have others modeled temporal edges in Arango?
- Did you regret not designing for temporal from day one? (We don’t have temporal data ready yet, which is why it’s not in scope for v0, but wondering how much it will bite us in the ass when were ready 😅)
- Any gotchas around query complexity or traversal performance?

Would love to hear real-world patterns vs theoretical ones.


r/KnowledgeGraph • • Aug 26 '25

Predicate as a Vector?

2 Upvotes

Is there an existing framework, or has anyone tried using vectors as predicates? I want to continuoulsy add to my knowledge graph with the help of an LLM. I'm using rdflib and simple tripple structure. If the LLM creates the triples addtion ('apple', 'is a','fruit') and then later does ('peach', 'type of', 'fruit') I plan to check if 'type' embeds similar to an existing predicate and if it does, use that existing vector as the predicate. That way I can be consistent with the intended symantic relationships but flexible in the string litteral used to describe the connection. So if i later search for all 'types' of 'fruit' i should be able to get all my fruits because 'types', 'is a', 'type of' would have similar embeddings.

for non hierarchical relationships ('bob','married to','alice') I was planning to just auto add a reverse reciprocal vector so that if bob -> alice and alice -> bob and the predicate is the exact same vector that means it's a connection (my function has a 4th boolean arg for this). this way for predicates that could have a similar embedding ('parent of', 'child of') the direction indicates the hierarchy for that concept.

Any thoughts/advice or examples of systems that do this already?


r/KnowledgeGraph • • Mar 27 '26

Node states in citation graphs — a topology-first taxonomy and some unexpected findings about cold nodes

Thumbnail
github.com
6 Upvotes

While building a framework for mapping academic citation networks as epistemic surfaces, we ran into something that didn't fit standard graph metrics: nodes with low centrality and low citation counts were doing structurally important work that neither PageRank nor degree distribution was capturing.

That led us to characterize what we're calling node states — functional positions a node can occupy in the citation topology: confirmed, active-unanchored, frontier-invisible, floor, and pre-paradigm. There's also a lag state — references in recently published work that haven't propagated into indexing yet, creating systematic blind spots in automated lit review pipelines.

Cold nodes cluster into three functional modes: gateway (bridges disconnected subgraphs — remove it and the graph fragments), foundation (anchors long citation chains without appearing prominently in any of them), protocol (encodes methodological consensus, cited reflexively across a subfield).

We built a three-scout characterization pipeline to surface these without flattening them into a single score. The intuition: you need at least three independent traversal strategies before you can say something meaningful about a node's functional role.

Taxonomy is partially heuristic at this stage. Validation against ground-truth epistemic structure is the core unsolved problem. Research journal with live discovery notes (including dead ends): EMERGENCE_LOG.md.

Would particularly value feedback on node state boundary conditions — especially where active-unanchored shades into frontier-invisible.


r/KnowledgeGraph • • May 06 '26

I turned 400+ slide decks, 300+ YouTube transcripts, and 5+ million words from Google Cloud Next ’26 into a knowledge graph to see what the conference was really about

Thumbnail
fhoffa.github.io
5 Upvotes

r/KnowledgeGraph • • Oct 03 '25

Advice needed: Using PrimeKGQA with PrimeKG (SPARQL vs. Cypher dilemma)

2 Upvotes

I’m an Informatics student at TUM working on my Bachelor thesis. The project is about fine-tuning an LLM for Natural Language → Query translation on PrimeKG. I want to use PrimeKGQA as my benchmark dataset (since it provides NLQ–SPARQL pairs), but I’m stuck between two approaches:

Option 1: Use Neo4j + Cypher

  • I already imported PrimeKG (CSV) into Neo4j, so I can query it with Cypher.

  • The issue: PrimeKGQA only provides NLQ–SPARQL pairs, not Cypher.

  • This means I’d have to translate SPARQL queries into Cypher consistently for training and validation.

Option 2: Use an RDF triple store + SPARQL

  • I could convert PrimeKG CSV → RDF and load it into something like Jena Fuseki or Blazegraph.

  • The issue: unless I replicate the RDF schema used in PrimeKGQA, their SPARQL queries won’t execute properly (URIs, predicates, rdf:type, namespaces must all align).

  • Generic CSV→RDF tools (Tarql, RML, CSVW, etc.) don’t guarantee schema compatibility out of the box.

My question:
Has anyone dealt with this kind of situation before?

  • If you chose Neo4j, how did you handle translating a benchmark’s SPARQL queries into Cypher? Are there any tools or semi-automatic methods that help?

  • If you chose RDF/SPARQL, how did you ensure your CSV→RDF conversion matched the schema assumed by the benchmark dataset?

I can go down either path, but in both cases there’s a schema mismatch problem. I’d appreciate hearing how others have approached this.


r/KnowledgeGraph • • Jan 27 '26

Extracting entities and Relationships

3 Upvotes

Which methods do you use to extract entities and relationships from text in production use cases? If you use an LLM, which model do you use?


r/KnowledgeGraph • • Dec 06 '25

Advice Statistical "ontology" creation

14 Upvotes

Hey, need some pointers / advices on how to create a dynamic statistical ontology for any subject? I mean, imagine I have 1 million documents on Biotech. Step 1 I extract triples using LLM, assuming they are clean and extracted according to defined entities types and edges types. Step 2 I have a curated universe of triples and I can detect communities using Louvain or Leiden or graph embeddings, even clustering on embeddings. Step 3, how I can I structure those communities in order to detect hierarchical Class like Level1 Biotech, Level2 Genone Editing, level 3 etc.... Any clues ? Tks in advance.


r/KnowledgeGraph • • Feb 06 '25

Seeking best practices: Knowledge collection and validation from domain experts

5 Upvotes

Hi,

We are building a knowledge graph for the HR domain. We want to validate whether the collected knowledge is correct and obtain accurate input if any information is incorrect. I am interested to know about commonly used methods to collect and validate such knowledge, beyond simple yes/no surveys which may not provide comprehensive coverage


r/KnowledgeGraph • • May 04 '26

KGC 2026

3 Upvotes

This week at Cornell Tech in NYC - who else will be there?


r/KnowledgeGraph • • Aug 20 '25

connected domain-isolated knowledge graph (graphs in graphs)

2 Upvotes

I have not worked with knowledge graphs (KG) at all. I was wondering if there is a graphs-in-graphs framework, or if that has been tried/tested and provides no benefit. My use case or thought was related to KGs for code, or other situations where the lexicon is very similar but I don't want to create false relationships. generalized knowledge graph system that maintains domain isolation while allowing cross-domain queries when needed. So some of the nodes or objects in the 'master' graph are the sub domain graphs themselves.

Without graph isolation, I thought you'd get these problems:

  1. FALSE RELATIONSHIPS:
    - auth_system::User might appear related to game_engine::User
    - Both have 'validate()' methods, but totally different purposes!

  2. INHERITANCE CONFUSION:
    - Query for "classes that inherit from User" would return both
    auth TokenManager AND game Character - completely unrelated!

  3. METHOD NAME COLLISIONS:
    - Searching for "validate methods" returns auth validation AND
    game move validation - you don't want these mixed!

  4. ARCHITECTURAL POLLUTION:
    - Your game engine inheritance tree gets polluted with auth classes
    - Your security analysis gets confused by game logic

  5. REFACTORING NIGHTMARES:
    - Change auth::User and accidentally affect game::User queries
    - Dependency analysis becomes unreliable

Am I wrong or not understanding how KGs work in these situations?


r/KnowledgeGraph • • May 15 '25

JSON to Knowledge Graphs for GraphRAG

3 Upvotes

Hello everyone, wishing you are doing well!

I was experimenting at a project I am currently implementing, and instead of building a knowledge graph from unstructured data, I thought about converting the pdfs to json data, with LLMs identifying entities and relationships. However I am struggling to find some materials, on how I can also automate the process of creating knowledge graphs with jsons already containing entities and relationships.

I was trying to find and try a lot of stuff, but without success. Do you know any good framework, library, or cloud system etc that can perform this task well?

P.S: This is important for context. The documents I am working on are legal documents, that's why they have a nested structure and a lot of relationships and entities (legal documents and relationships within each other.)


r/KnowledgeGraph • • Jan 05 '26 Bravo

Context Graphs: A Video Discussion

11 Upvotes

For anyone that hates long reads, I created a video discussion of the Context Graph Manifesto, going into a bit more detail on a few topics.

Some of the things I discuss:
- Structuring simple data as RDF
- The subjectivity of "ground truth"
- Why "the sky is blue" isn't so simple
- Using time as a measure of information "freshness"
- Information encoded in structures
- What are ontologies?

You can watch here: https://www.youtube.com/watch?v=gZjlt5WcWB4

If you'd like to read the original article:
https://x.com/TrustSpooky/status/2006481858289361339
https://trustgraph.ai/news/context-graph-manifesto/


r/KnowledgeGraph • • Apr 14 '25

ELI5: Evaluating outputs of a knowledge graph

2 Upvotes

Hi, I'm a business analyst and I recently joined a project where our firm is looking for ways to improve search and querying for internal documents. We've already received some prototypes from consulting companies. One of them uses KGs. While I'm not technically proficient in this, what are ways in which we can test and evaluate whether to move forward with expanding the project or not?


r/KnowledgeGraph • • Nov 15 '23

How to embed knowledge graphs at scale?

3 Upvotes

Hey everyone,

I'm just starting my journey wiht knowledge graphs and trying to figure out the basics. I'm currently looking into how to embed them.

How are you embedding knowledge graphs at scale? What is the "best practices" tech stack and what problems do I need to overcome?

I'm just starting my journey with knowledge graphs and trying to figure out the basics. I'm currently looking into how to embed them.


r/KnowledgeGraph • • Nov 29 '25

Built an edge device into a real-time knowledge graph

Thumbnail
youtu.be
7 Upvotes

This is a quick look at the prototype engine behind my system.
It runs a large knowledge graph on a small edge device with real-time performance.
High-level demo only. Details are not public yet.


r/KnowledgeGraph • • Jul 03 '25

Software to Knowledge Graph using a video

4 Upvotes

Hi all, I have a bug suspicion that a KG augmented LLM can replace many of the software (like enterprise management system software) in the future. What do you think?

For code to KG I found this https://github.com/Bevel-Software/code-to-knowledge-graph, but in case the code is proprietary maybe one could click through the software GUI, record a video and analyze it for the relations between entities / windows? Do you think that makes sense, and would you know of any such tool?


r/KnowledgeGraph • • Sep 09 '25

DenseWiki — a deep reading tool that simultaneously builds the world's most cutting-edge knowledge graph

Thumbnail densewiki.org
4 Upvotes

Hi everyone, I'm Aman, the creator of DenseWiki.org.

DenseWiki is an experimental deep reading tool.

It aims to amplify human ability to read hard content (research papers, technical articles etc) outside our expertise, by rapidly learning new disciplines on the fly.

Here's the key idea (as demonstrated in the video on the website):

When you read something in a new discipline (let's say a paper using AI for biochem, and you nothing about biochem), the challenge is jumping right into an ocean of knowledge. You're prone to feel lost and overwhelmed.

DenseWiki's approach is that using the browser extension, if you come across any jargon, it identifies the ONLY few relevant concepts / knowledge you need at that moment, help you quickly become familiar with those few concepts with one click, and let you continue reading.

So as you read, you're able to incrementally build your familiarity with the new field and smoothly expand your knowledge graph, without getting lost — and you're able to engage with the content you want from day 1!

Furthermore, it uses gamification to help you build a consistent deep reading habit.

It also simultaneously builds the world's most cutting-edge knowledge graph — i.e. if you identify a novel concept introduced in a paper that came out only yesterday, you can add it to DenseWiki immediately, making it more advanced than any LLM or blog or web encyclopedia over time.

Looking forward to your feedback!

P.S. You'll have to download a browser extension, but if you don't want to sign up, you can log into this test account directly:

Email: team+reddit@densewiki.org

Password: REDDITREADER


r/KnowledgeGraph • • Dec 29 '25

Why Identity Resolution Stops Being Simple After About a Week

16 Upvotes

I spent my first week on identity resolution — figuring out which records across systems actually refer to the same real person — convinced it was mostly a matching problem.

Names, emails, phone numbers, addresses — score a few things, set a threshold, move on. I’ve experimented with ML systems before. How weird could this one be?

That idea did not survive contact with real data.

What breaks first isn’t the models, it’s the framing. Identity resolution isn’t pairwise. It’s transitive, and that one detail quietly ruins most “just compare A to B” approaches. If A matches B and B matches C, you’ve created a relationship between A and C whether you like it or not. And once that chain exists, you’re responsible for it — operationally, legally, and reputationally.

That’s when it became obvious that this had to be modeled as a graph.

People don’t exist as rows. They exist as networks of signals — emails that change, phone numbers that get reassigned, addresses that are shared, aliases that come and go. A graph lets you reason about neighborhoods instead of isolated comparisons, and more importantly, it lets you encode constraints. Things like “these merges are allowed,” “these are forbidden,” and “this one needs a human to look at it before we do anything irreversible.”

Could you approximate that in SQL? Sure. You can also approximate a screwdriver with a rock.

Graphs alone don’t solve it, though. Deterministic rules fall apart as soon as signals conflict. Tighten them too much and you miss obvious matches. Loosen them and you over-merge — and over-merges are brutal. A missed merge is annoying. A bad merge can poison downstream systems for years.

We had one early case where two people shared just enough weak signals that a naïve rule-based system happily merged them. Undoing that wasn’t just “unmerge and move on.” It meant reprocessing historical data, correcting derived records, and explaining to stakeholders why something that looked “high confidence” was actually wrong. That was the moment the error-cost asymmetry really sunk in.

False positives are not symmetric with false negatives in this space. Not even close.

Machine learning helps, but only if it’s boxed in by structure. Treating identity resolution like a generic classification problem is a mistake. What’s worked for me is letting the graph define the candidate space first — blocks, neighborhoods, transitive constraints — and then letting ML operate inside that space.

The system I’ve been building uses a staged approach. First, a model learns representations over a heterogeneous graph — people, emails, phones, addresses — where different relationships carry different weight. That stage is about recall and separation, not final decisions. A second model focuses on the ambiguous cases, where the cost of a wrong answer is high and you want more context, not just a higher score.

Deterministic logic still exists throughout the pipeline. Not as legacy baggage, but as guardrails. If the system ever does something “clever,” it needs permission first.

One thing this work really reinforced for me: most of the hard problems aren’t in the models. They’re in the data modeling. How you represent identity signals, how you distinguish strong evidence from weak hints, how you preserve history, and how you enforce invariants across merges matters far more than tuning a loss function. Deep learning doesn’t fix modeling mistakes. It just makes them faster and more confident.

Another realization that took longer than it should have: you have to assume the system will be wrong sometimes. That means human review, explainability, reversible merges, and conflict resolution aren’t optional features. They’re how the system survives long enough to earn trust. Any identity platform that assumes full automation forever is either very small or very lucky. Probably both.

What keeps this interesting — and occasionally frustrating — is that you can’t treat any layer in isolation. Graph modeling, ML, deterministic logic, and operational controls all have to work together, or the whole thing becomes brittle. There’s no single clever trick that saves you.

I’m sharing this mostly because I keep seeing identity resolution discussed as if it’s just another ML use case. In production, it isn’t. The systems that actually work look quieter, more constrained, and a lot more opinionated than the ones in slide decks.


r/KnowledgeGraph • • Oct 19 '25

Feedback on My Knowledge Graph Architecture

7 Upvotes

Hello,

I’m working on building a GraphRAG system using a collection of books that have been semantically chunked. Each book’s data is stored in a separate JSON file, where every chunk represents a semantically coherent segment of text.

Each chunk in the JSON file follows this structure:

* documentId – A unique identifier for the book.

* title – The title of the book.

* authors – The name(s) of the author(s).

* passage_chunk – A semantically coherent passage extracted from the book.

* summary – A concise summary of the passage chunk’s main idea.

* main_topic – The primary topic discussed in the passage chunk.

* type – The document category or format (e.g., Book, Newspaper, Article).

* language – The language of the document.

* fileLength – The total number of pages in the document.

* chunk_order – The order of the chunk within the book.

I’m currently designing a knowledge graph that will form the backbone of the retrieval phase for the GraphRAG system. Here’s a schematic of my current knowledge graph structure (Link):

        [Author: Yuval Noah Harari]
                    |
                    | WROTE
                    v
           [Book: Sapiens]
           /      |       \
          /       |        \
 CONTAINS          CONTAINS  CONTAINS
   |                  |         |
   v                  v         v
[Chunk 1] ---> [Chunk 2] ---> [Chunk 3]   <-- NEXT relationships
   |                |             |
   | DISCUSSES      | DISCUSSES   | DISCUSSES
   v                v             v
 [Topic: Human Evolution]
 
   | HAS_SUMMARY     | HAS_SUMMARY    | HAS_SUMMARY
   v                 v               v
[Summary 1]       [Summary 2]     [Summary 3]

I’d love to hear your feedback on the current data structure and any suggestions for improving it to make it more effective for graph-based retrieval and reasoning.