CoolFace
Datasetpublic

habedi/kaggle-knowledge-graph

Kaggle Knowledge Graph A knowledge graph built from Kaggle's public Meta Kaggle (and Meta Kaggle Code datasets). It links competitions, teams, submissions, users, notebooks, datasets, discussion forums, tags, organizations, and notebook code invocations. See the project repository for build scripts and documentation on the graph schema, data model, and usage examples. Release Field Value Version 2026-09-18 Meta Kaggle snapshot 2026-09-18 Build code… See the full description on the dataset page: https://huggingface.co/datasets/habedi/kaggle-knowledge-graph.

sourceHugging Facecc-by-nc-sa-4.0updated 3d agoView on Hugging Face
0likes121downloads
Dataset Card

Kaggle Knowledge Graph

A knowledge graph built from Kaggle's public Meta Kaggle (and Meta Kaggle Code datasets). It links competitions, teams, submissions, users, notebooks, datasets, discussion forums, tags, organizations, and notebook code invocations.

See the [project repository](https://github.com/IssunDB/kaggle-knowledge-graph) for build scripts and documentation on the graph schema, data model, and usage examples.

Release

FieldValue
Version2026-09-18
Meta Kaggle snapshot2026-09-18
Build codehttps://github.com/IssunDB/kaggle-knowledge-graph at commit f9983c4
Nodes2,496,552
Edges7,250,368
Size328 MiB

File counts, byte sizes, and SHA-256 digests are recorded in manifest.json.

Scope

The graph covers competitions enabled on or after 2020-01-01 (excluding Community events) and their associated entities:

  • Ranked and medal-winning teams, their members, leaders, and leaderboard submissions.
  • The 50 most-voted notebooks per competition, notebook version lineage, and referenced datasets.
  • Competition discussion forums with topics, team write-ups, and messages (in raw HTML and Markdown).
  • Tag taxonomy, host and owner organizations, imported libraries, and parsed Python API calls.

All edge endpoints resolve to nodes present in this release.

Tables

Nodes

LabelFileRowsColumns
Competitionnodes_competition.parquet369Id, Slug, Title, Subtitle, HostSegmentTitle, HostName, ForumId, OrganizationId, EnabledDate, DeadlineDate, EvaluationAlgorithmName, EvaluationAlgorithmDescription, EvaluationAlgorithmIsMax, RewardType, RewardQuantity, MaxTeamSize, TotalTeams, TotalCompetitors, TotalSubmissions, Overview, Rules, DatasetDescription
Teamnodes_team.parquet519,214Id, CompetitionId, TeamName, Medal, PublicLeaderboardRank, PrivateLeaderboardRank, ScoreFirstSubmittedDate, LastSubmissionDate, IsBenchmark
Usernodes_user.parquet272,324Id, UserName, DisplayName, RegisterDate, PerformanceTier, Country
Submissionnodes_submission.parquet718,275Id, TeamId, SubmittedUserId, SourceKernelVersionId, SubmissionDate, ScoreDate, IsAfterDeadline, IsSelected, PublicScoreFullPrecision, PrivateScoreFullPrecision
Kernelnodes_kernel.parquet16,939Id, AuthorUserId, CurrentKernelVersionId, FirstKernelVersionId, ForumTopicId, CreationDate, Medal, TotalViews, TotalComments, TotalVotes, CurrentUrlSlug
KernelVersionnodes_kernel_version.parquet428,102Id, ScriptId, VersionNumber, Title, CreationDate, TotalLines, TotalVotes, IsInternetEnabled, RunningTimeInMilliseconds, DockerImage, AuthorUserId, ScriptLanguage, AcceleratorType
Datasetnodes_dataset.parquet6,852Id, CreatorUserId, OwnerUserId, OwnerOrganizationId, CurrentDatasetVersionId, ForumId, Type, CreationDate, LastActivityDate, TotalViews, TotalDownloads, TotalVotes, TotalKernels, Medal
DatasetVersionnodes_dataset_version.parquet14,595Id, DatasetId, CreatorUserId, LicenseName, CreationDate, VersionNumber, Title, Slug, Subtitle, Description, VersionNotes, TotalCompressedBytes, TotalUncompressedBytes
Tagnodes_tag.parquet833Id, ParentTagId, Name, Slug, FullPath, Description
Forumnodes_forum.parquet332Id, ParentForumId, Title
ForumTopicnodes_forum_topic.parquet63,309Id, ForumId, KernelId, CreationDate, LastCommentDate, Title, IsSticky, TotalViews, Score, TotalMessages, TotalReplies
ForumMessagenodes_forum_message.parquet455,251Id, ForumTopicId, PostUserId, PostDate, ReplyToForumMessageId, Message, RawMarkdown, Medal, MedalAwardDate
Librarynodes_library.parquet0Id
ApiCallnodes_api_call.parquet0Id, Library
Organizationnodes_organization.parquet157Id, Name, Slug, CreationDate, Description

Edges

TypeFromToFileRows
COMPETED_INTeamCompetitionedges_team_competed_in_competition.parquet519,214
MEMBER_OF_TEAMUserTeamedges_user_member_of_team.parquet586,014
LED_TEAMUserTeamedges_user_led_team.parquet505,451
FOR_TEAMSubmissionTeamedges_submission_for_team.parquet718,275
SUBMITTEDUserSubmissionedges_user_submitted.parquet699,576
FROM_KERNEL_VERSIONSubmissionKernelVersionedges_submission_from_kernel_version.parquet3,648
PUBLIC_LEADERBOARD_SUBMISSIONTeamSubmissionedges_team_public_leaderboard_submission.parquet519,098
PRIVATE_LEADERBOARD_SUBMISSIONTeamSubmissionedges_team_private_leaderboard_submission.parquet519,098
AUTHORED_KERNELUserKerneledges_user_authored_kernel.parquet16,231
HAS_VERSIONKernelKernelVersionedges_kernel_has_version.parquet428,102
CURRENT_VERSIONKernelKernelVersionedges_kernel_current_version.parquet16,571
AUTHORED_BYKernelVersionUseredges_kernel_version_authored_by_user.parquet414,268
FORKED_FROMKernelVersionKernelVersionedges_kernel_version_forked_from.parquet75,974
USES_COMPETITIONKernelVersionCompetitionedges_kernel_version_uses_competition.parquet439,893
IMPORTSKernelVersionLibraryedges_kernel_version_imports_library.parquet0
CALLSKernelVersionApiCalledges_kernel_version_calls_api_call.parquet0
IN_LIBRARYApiCallLibraryedges_api_call_in_library.parquet0
USES_DATASET_VERSIONKernelVersionDatasetVersionedges_kernel_version_uses_dataset_version.parquet390,912
HAS_VERSIONDatasetDatasetVersionedges_dataset_has_version.parquet14,595
CURRENT_VERSIONDatasetDatasetVersionedges_dataset_current_version.parquet6,489
OWNED_BY_ORGANIZATIONDatasetOrganizationedges_dataset_owned_by_organization.parquet117
TAGGED_WITHKernelTagedges_kernel_tagged_with_tag.parquet22,902
TAGGED_WITHDatasetTagedges_dataset_tagged_with_tag.parquet8,496
TAGGED_WITHCompetitionTagedges_competition_tagged_with_tag.parquet852
HAS_FORUMCompetitionForumedges_competition_has_forum.parquet334
HAS_ORGANIZATIONCompetitionOrganizationedges_competition_has_organization.parquet367
MEMBER_OF_ORGANIZATIONUserOrganizationedges_user_member_of_organization.parquet294
HAS_TOPICForumForumTopicedges_forum_has_topic.parquet63,309
HAS_WRITEUPTeamForumTopicedges_team_has_writeup_topic.parquet4,359
HAS_MESSAGEForumTopicForumMessageedges_forum_topic_has_message.parquet455,251
POSTED_MESSAGEUserForumMessageedges_user_posted_message.parquet450,709
REPLIES_TOForumMessageForumMessageedges_forum_message_replies_to.parquet369,969

Usage

Query directly with DuckDB:

python
import duckdb

duckdb.sql("""
    SELECT c.Title, COUNT(*) AS teams
    FROM 'data/edges_team_competed_in_competition.parquet' e
    JOIN 'data/nodes_competition.parquet' c ON c.Id = e.to_competition_id
    GROUP BY c.Title
    ORDER BY teams DESC
    LIMIT 10
""").show()

Load with Hugging Face datasets:

python
from datasets import load_dataset

competitions = load_dataset("habedi/kaggle-knowledge-graph", "nodes_competition", split="train")

To query with Cypher, load the files into IssunDB or any other graph database of your choice.

Limitations

  • Snapshot from 2026-09-18; later Kaggle activity is not included.
  • Covers competitions enabled on or after 2020-01-01 and at most 50 most-voted notebooks per competition.
  • Library and API call tables cover only notebook versions available in Meta Kaggle Code.
  • Forum messages are stored as raw Kaggle HTML and Markdown.

Licensing and Privacy

Meta Kaggle data is licensed under CC BY-NC-SA 4.0 for non-commercial use with attribution. Build scripts at https://github.com/IssunDB/kaggle-knowledge-graph are licensed under the MIT License. The dataset includes only public profile attributes and forum posts published by Kaggle.