Skip to content

Dataset

Neo4j graph database datasets for AI training

A Neo4j dataset is an export of a property graph a business built in Neo4j for its own purposes: nodes for customers, accounts, devices, products or parts, the typed, directed relationships between them, the properties on both, and the labels, constraints, indexes and Cypher queries that go with them. SourceX sources it to a buyer's spec from established businesses that run Neo4j. Each dataset is de-identified and licensed for an agreed permitted use. Check that the de-identification holds up against the graph's structure, since relationships alone can single out a person.

Dataset manifest

Sourced to your spec
What it is
One Neo4j database exported as nodes and relationships, with labels, relationship types, properties, constraints, indexes and Cypher queries
Typical systems
Neo4j Community or Enterprise Edition, or Neo4j AuraDB, with the APOC library, Graph Data Science results and the query log where the business kept them
Typical history
The current graph only; properties are overwritten and deleted relationships are gone. Ask which date properties the owner maintained
Modality
Property graph: typed records for nodes and relationships, text properties and Cypher source
Delivery formats
Agreed per order; node and relationship CSV or JSONL keyed by a business key, GraphML or a Cypher script, with a schema summary; a dump suits only buyers who run Neo4j
Preparation
Identifying properties removed or pseudonymized; business keys re-keyed consistently; query literals screened; ask how re-identification through structure was assessed
Licensing
Scoped per database, label and relationship type; permitted use agreed per license; Neo4j, Inc.'s terms for the edition or Aura checked by owner and buyer
Availability
Sourced to your spec; labels, relationship types and size depend on what the business modeled, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
node_keystringA business key for the node, from the property under a uniqueness or node key constraint, re-keyed, never Neo4j's internal ID.
labelsarrayThe node's labels, such as Customer or Device; a node can carry several or none.
node_propertiesobjectThe node's property map: strings, numbers, booleans, temporal and point values, and lists of one type.
relationship_typestringThe relationship's single type, such as PAID or PART_OF, as type() returns it.
start_node_keystringThe business key of the node the relationship leaves, its startNode().
end_node_keystringThe business key of the node the relationship points to, its endNode().
relationship_propertiesobjectThe relationship's own property map, for example amount, since, quantity or source.
property_typesobjectThe Cypher type of each property value on this record, since one key can hold different types across nodes.
constraints_and_indexesarraySHOW CONSTRAINTS and SHOW INDEXES output: uniqueness, existence, node key and property type constraints, and range, text, full-text and vector indexes.
schema_summaryobjectNode counts per label and relationship counts per type, as APOC's meta procedures report, with the labels each type connects, as db.schema.visualization shows.
cypher_querystringA Cypher statement from application code, saved queries or the query log, with parameters as placeholders.
derived_propertiesarrayProperty keys written by algorithms, such as a Graph Data Science community ID or centrality score, marked as computed.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "nodes": [
    {
      "node_key": "part_7f3a91",
      "labels": [
        "Part",
        "Purchased"
      ],
      "node_properties": {
        "partNumber": "BRG-6204-ZZ",
        "unitCost": 3.85,
        "createdAt": "2019-06-11T08:14:02Z"
      }
    },
    {
      "node_key": "asm_22c0d4",
      "labels": [
        "Assembly"
      ],
      "node_properties": {
        "assemblyNumber": "GBX-140-B",
        "revision": "D",
        "communityId": 17
      }
    }
  ],
  "relationship": {
    "relationship_type": "PART_OF",
    "start_node_key": "part_7f3a91",
    "end_node_key": "asm_22c0d4",
    "relationship_properties": {
      "quantity": 2,
      "position": "output shaft",
      "validFrom": "2021-02-01"
    },
    "property_types": {
      "quantity": "INTEGER",
      "position": "STRING",
      "validFrom": "DATE"
    }
  },
  "derived_properties": [
    "communityId"
  ],
  "cypher_query": "MATCH (p:Part)-[r:PART_OF]->(a:Assembly {assemblyNumber: $assemblyNumber}) RETURN p.partNumber, r.quantity"
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train and grade text-to-Cypher

Queries paired with the graph they ran on teach variable-length patterns, direction and label choice on a schema nobody tidied.

Multi-hop reasoning

Chains such as part to assembly to product supply questions that need several stored relationships.

Link prediction

A graph a business maintained, with typed relationships and their properties, is ground truth for predicting missing links.

Graph retrieval for agents

A graph with its queries shows which neighborhood a team pulled for a question.

Graph schema inference

Label combinations and node-by-node property variation are an exercise in describing a graph with no declared schema.

Use-case guides: Coding agents, Enterprise and computer-use agents, Document AI, enterprise search and RAG, Private evaluation sets

What makes this data valuable

Business key on every node

Each node carries a constrained unique property, so relationship rows resolve without internal IDs.

Relationship properties kept

Amounts, dates and quantities on relationships are delivered, not dropped in flattening.

Schema summary included

Counts per label combination and relationship type let you size the graph before loading.

Computed properties marked

Scores and community IDs written by algorithms are flagged, not passed off as source facts.

Derived relationships named

The owner states which relationship types came from a source system and which its jobs inferred.

Degree distribution reported

The highest-degree nodes are listed, a warning of hubs and placeholder nodes.

System export

Neo4j dataset

This page covers neo4j graph databases.Illustrative

A relationship is a stored record, and a label is not a schema

In Neo4j a relationship is written to disk as its own record. It has exactly one type, a start node and an end node, so a direction is always stored even when queries ignore it, and it has its own property map. That one account paid another, with an amount and a date, is a single record and not the result of a join. Two nodes can share many relationships of one type, so each payment can be its own relationship. A relationship connects two nodes only and nothing can point at it, so when a payment had to link to a third thing, such as a device, the modeler made it a node. The same fact is a relationship in one graph and an intermediate node in another. Direction was the modeler's choice too, PART_OF from the part or HAS_PART from the assembly.

Labels look like classes and are not. A node carries zero or more labels, and nothing requires two nodes with the same label to have the same properties. One property key can hold an integer on one node and a string on another. Neo4j does not store null: setting a property to null removes it, so unknown and not applicable are both a missing key. A property holds a single value or a list of one type, never a nested map, so structured values become prefixed keys or JSON text in a string. Constraints are the only declared rules, and property existence, property type and key constraints exist only in Enterprise Edition, so a Community Edition graph can declare nothing but uniqueness.

Neo4j keeps the current graph. SET overwrites a property, DELETE removes a relationship, and no earlier version remains. Time exists only where it was modeled, as a createdAt property or validFrom on a relationship. Many business graphs are also loaded from other systems by jobs that MERGE nodes and relationships, so some relationship types were observed in a source and others were inferred by the business's own code, such as a link between two accounts that used one device. Scores and community IDs written back by Graph Data Science algorithms look no different from source properties.

A dump loads only into Neo4j, and an export flattens the graph

There are two ways out. The neo4j-admin dump command writes one archive of a whole database, which loads back into a compatible Neo4j version and into nothing else. It is exact and cannot be filtered, so de-identification has to happen in a copy of the database first. The portable way is an export, usually with the APOC library's procedures for CSV, JSON, GraphML or Cypher statements. Every one of them flattens the graph into node rows and relationship rows that name their two end nodes. The all-in-one CSV has a column for every property key in the graph and is mostly empty. The JSON form writes one line per node or relationship. The Cypher form is a script that recreates the graph, and for nodes with no unique constraint it adds a temporary import label and ID property. Dates, points and lists can arrive as plain strings.

The flattening needs a key, and Neo4j's own identifiers are the wrong one. An internal ID is assigned by the store, can be reused after a node is deleted, and means nothing once nodes have been filtered or loaded elsewhere. APOC's CSV and JSON exports tie relationships to nodes by these IDs, so a delivery keyed any other way was built on purpose. A usable delivery gives every node a business key, a property kept unique by a constraint, and writes relationship rows against it. Nodes that never had one, such as address or event nodes, need a key assigned before export. Relationships rarely have any key, so duplicates left by a load job that ran twice show only as rows with the same end nodes, type and properties.

Test a sample by loading it and counting nodes per label combination and relationships per type against the owner's schema summary. Check that every start and end key resolves. Neo4j never stores a relationship without both nodes, so a dangling row came from filtering. Look at the highest-degree nodes for hubs such as an Unknown placeholder, and run a few delivered Cypher queries to compare counts with the owner's.

What to check before licensing

  • Have the data owner and your counsel read Neo4j, Inc.'s terms for the edition in use, or for Aura, and any export plugin's license, on exported data and API use.
  • Ask how the graph was de-identified beyond property values, and test whether a person, account or device can be singled out by its degree or a rare pattern of relationships.
  • Confirm every node has a business key under a uniqueness constraint and that relationship rows reference that key, not an internal ID or element ID.
  • Ask which relationship types and properties came from source systems and which were derived by the business's jobs or by graph algorithms.
  • Ask for SHOW CONSTRAINTS and SHOW INDEXES output and the edition, since not every constraint kind is available in every edition.
  • Ask which export procedure and configuration were used, and check temporal, point and list properties arrived with their types.
  • If Cypher queries or the query log are included, confirm literal values and parameters were screened for names and account numbers.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can we receive a Neo4j dump file instead of CSV?

Only if you run Neo4j yourself and the business agrees to supply one. A dump restores the whole database, with index and constraint definitions, into a compatible Neo4j version and into nothing else. It carries everything, so de-identification has to happen before the dump is taken. For work outside Neo4j, ask for node and relationship files keyed by a business key.

Why can't the export use Neo4j's own node IDs?

Because they are assigned by the store and do not identify an entity. Neo4j can reuse an internal ID after a node is deleted, and the IDs mean nothing outside the database that issued them. After filtering or de-identification, relationship rows that point at internal IDs cannot be trusted to resolve. A property the business maintains, held unique by a constraint, is the dependable key.

Does a Neo4j graph come with a schema?

Not a required one. Neo4j lets any node carry any labels and properties, so the delivered schema is a description of what is there: label combinations, relationship types with the labels at each end, property keys and the types found under each. Constraints and indexes add the few rules the business declared. Ask for both.

Is a graph harder to de-identify than tables?

Yes, because structure identifies. Removing names and account numbers leaves each person or device with a pattern of connections, and a node with a rare neighborhood can be matched to outside knowledge. Ask how the owner assessed this and whether unique subgraphs were removed or generalized, and have counsel review the method. No method is perfect.

Are Cypher queries part of the dataset?

They can be, where the business has them and agrees. Sources are application code, queries saved in tools such as Neo4j Browser, and the query log, which the server writes where query logging is available and enabled. Queries show which paths mattered to the business. Ask for literal values to be screened.

Is SourceX affiliated with Neo4j, Inc.?

Neo4j is named to identify the system the records come from. That does not imply a partnership with or endorsement by Neo4j, Inc. The records belong to the business that runs Neo4j, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies