All technologies

Data & Architecture

Graph databases for connected data

Some questions are tedious to answer with tables: Who holds shares in a company across three levels? Which accounts share devices and addresses? Graph databases store relationships directly and traverse them quickly. We use Neo4j with Cypher, and for smaller graphs also Apache AGE directly in PostgreSQL.

Graph databases store relationships as records of their own and traverse them directly instead of reassembling them via joins on every query.

Data flow

How Graph databases fits into your processes

  1. Source systems
  2. Sync
  3. Graph
  4. Cypher
  5. Application
Data from existing systems is reconciled, stored as a graph and used in the application through Cypher queries.

Use cases

What we build with Graph databases

  • Ownership structures

    Calculate ownership chains across multiple levels and identify beneficial owners.

  • Fraud detection

    Surface suspicious patterns in accounts, devices and addresses.

  • Knowledge graphs for AI

    Facts and relationships as a foundation for language models, known as GraphRAG.

  • Supply chains

    Trace dependencies between suppliers, parts and locations.

Typical projects

Why companies bring us in

  1. 01

    Identify beneficial owners

    Starting point
    Shareholdings are nested across several companies, and checks have so far been done by hand in spreadsheets.
    Solution
    We model people, companies and shares as a graph and calculate holdings across all levels.
    Result
    The chain up to the natural person is visible with a single query and documented in a traceable way.
  2. 02

    Detect suspicious accounts

    Starting point
    Individual accounts look unremarkable, while shared devices, addresses or bank details only stand out in context.
    Solution
    We link accounts via shared attributes and look for groups and rings in the graph.
    Result
    Auditors see connections that stay hidden in separate lists.
  3. 03

    Knowledge graph for a language model

    Starting point
    An AI assistant needs to answer questions about products, standards and responsibilities spread across many documents.
    Solution
    We extract terms and relationships into a graph and combine it with vector search into GraphRAG.
    Result
    Answers rely on traceable relationships and cite their sources.

Approach

How we introduce Graph databases

  1. 1

    Collect questions

    Which questions should the graph answer? The model follows from that.

  2. 2

    Graph model

    Define nodes, relationships and properties, with constraints and indexes.

  3. 3

    Import and reconciliation

    Load data from existing systems and merge duplicates.

  4. 4

    Queries and operations

    Test Cypher queries, build APIs, set up backups.

Result

What you get from us

  • Graph model with nodes, relationships and constraints
  • Import pipeline from existing systems with duplicate matching
  • Cypher queries for the core business questions
  • Interface for an application or AI assistant
  • Graph algorithms for paths, communities and centrality
  • Backups, monitoring and documentation
// Personen mit durchgerechnetem Anteil über 25 % an einer Firma
MATCH path = (p:Person)-[:HAELT_ANTEIL*1..6]->(f:Firma {id: $firmaId})
WITH p, reduce(a = 1.0, r IN relationships(path) | a * r.anteil) AS anteilPfad
WITH p, sum(anteilPfad) AS anteilGesamt
WHERE anteilGesamt > 0.25
RETURN p.name AS person, anteilGesamt
ORDER BY anteilGesamt DESC;
Shares are multiplied along each ownership chain and summed per person across all paths.

Quality

What we watch for with Graph databases

  1. 1

    Model by question

    We model the graph around the questions it should answer, not as a copy of the tables.

  2. 2

    Limit depth

    Path queries without an upper bound can explode, so we limit depth and direction.

  3. 3

    Resolve duplicates

    One company under three spellings breaks the graph, so matching belongs at the start.

  4. 4

    System of record

    We define which system holds the source of truth and how the graph stays current.

  5. 5

    Permissions in the graph

    Who may see which parts of the network is enforced in queries and interfaces.

Comparison

Neo4j or PostgreSQL with recursion?

Neo4j

Query language
Cypher with patterns for paths
Deep paths
Built for variable depth
Graph algorithms
Available as a library
Operations
Additional service
Transactions with business data
Separate from the main system

PostgreSQL with recursion

Query language
SQL with recursive CTEs
Deep paths
Possible, but gets complex with many levels
Graph algorithms
Build it yourself or use an extension
Operations
Runs in your existing database
Transactions with business data
In the same transaction

For a few flat relationships, PostgreSQL is enough. With deep, changing paths and graph algorithms, Neo4j plays to its strengths.

Graph databases

Common questions

Tap a question.