From 852182dedc5a3f6e2c70517da9a7f9172afae5c3 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Thu, 17 Sep 2026 13:20:56 +0200 Subject: [PATCH 01/10] Update the IssunDB link where its binaries can be downloaded --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ad1ec9..fabf921 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ --- This repository contains code for building a knowledge graph from the [Meta Kaggle](https://www.kaggle.com/datasets/kaggle/meta-kaggle) dataset -and loading it into [IssunDB](https://github.com/IssunDB/issun-db), which provides CLI and MCP interfaces for querying the data. +and loading it into [IssunDB](https://github.com/IssunDB/issun-db/releases), which provides CLI and MCP interfaces for querying the data. ## Quickstart From 90957edc3a346b52c69aa6b8c882d8f6eb00d995 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Thu, 17 Sep 2026 13:27:48 +0200 Subject: [PATCH 02/10] WIP --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fabf921..22966b9 100644 --- a/README.md +++ b/README.md @@ -38,20 +38,18 @@ export META_KAGGLE_CODE_DIR="/path/to/meta-kaggle-code" Build the Kaggle knowledge graph and launch the CLI or MCP server: -- `make graph-kc` builds the competition-centered knowledge graph from the Meta Kaggle dataset (needs `META_KAGGLE_CODE_DIR` for import and API call - parsing). +- `make graph-kc` builds the knowledge graph from the Meta Kaggle dataset (needs `META_KAGGLE_CODE_DIR` for import and API call parsing). - `make comp-cli` opens the competition knowledge graph in the IssunDB CLI. - `make comp-mcp` runs the IssunDB MCP server for the competition knowledge graph. -- `make graph-kernel` builds the kernel-centered knowledge graph from the Meta Kaggle dataset (needs `META_KAGGLE_CODE_DIR` for import and API call - parsing). +- `make graph-kernel` builds the knowledge graph from the Meta Kaggle dataset (needs `META_KAGGLE_CODE_DIR` for import and API call parsing). - `make kernel-cli` opens the kernel knowledge graph in the IssunDB CLI. - `make kernel-mcp` runs the IssunDB MCP server for the kernel knowledge graph. - `make help` shows all available Makefile targets. ### Publish the Graph as a Dataset -- `make hf-package HF_SNAPSHOT=YYYY-MM-DD` packages the staged competition graph as a Hugging Face dataset in `databases/hf-dataset`, with the Parquet - files under `data/`, a dataset card, and a manifest of row counts and checksums. +- `make hf-package HF_SNAPSHOT=YYYY-MM-DD` packages the competition graph as a Hugging Face dataset in `databases/hf-dataset`, with the Parquet + files under `data/`, a dataset card, and other metadata. - `make hf-upload HF_REPO_ID=/ HF_VERSION=` uploads that directory to the Hugging Face Hub and tags it with the release version (log in first with `hf auth login`). From 8d0e532afbd432df563934277d70fa970d80d911 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Thu, 17 Sep 2026 21:37:12 +0200 Subject: [PATCH 03/10] WIP --- README.md | 26 +++++++++++++++++++++----- scripts/issundb_load.py | 4 +++- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 22966b9..2bf1adb 100644 --- a/README.md +++ b/README.md @@ -14,23 +14,39 @@ and loading it into [IssunDB](https://github.com/IssunDB/issun-db/releases), whi ### Data -#### 1. Download Dataset +The pipeline needs the Meta Kaggle tabular dataset, and it can (optionally) include the Meta Kaggle Code dataset. + +#### 1. Download Meta Kaggle Dataset ```bash curl -L -o /path/to/meta-kaggle.zip \ https://www.kaggle.com/api/v1/datasets/download/kaggle/meta-kaggle ``` -#### 2. Extract Dataset +#### 2. Extract Meta Kaggle Dataset ```bash unzip /path/to/meta-kaggle.zip -d /path/to/meta-kaggle ``` -#### 3. Configure Environment Variables +#### 3. Download and Extract Meta Kaggle Code (Optional) + +The [Meta Kaggle Code](https://www.kaggle.com/datasets/kaggle/meta-kaggle-code) dataset contains the source code files for Kaggle notebooks. +This dataset is optional; it is only needed if you want the knowledge graph to include imported packages (`Library` nodes) and Python API invocations (`ApiCall` nodes). +If omitted, the build pipeline continues successfully and constructs the graph without code-level nodes and relationships. + +```bash +curl -L -o /path/to/meta-kaggle-code.zip \ + https://www.kaggle.com/api/v1/datasets/download/kaggle/meta-kaggle-code +unzip /path/to/meta-kaggle-code.zip -d /path/to/meta-kaggle-code +``` + +#### 4. Configure Environment Variables ```bash export META_KAGGLE_DIR="/path/to/meta-kaggle" + +# This is pptional. Set only if Meta Kaggle Code was downloaded export META_KAGGLE_CODE_DIR="/path/to/meta-kaggle-code" ``` @@ -38,10 +54,10 @@ export META_KAGGLE_CODE_DIR="/path/to/meta-kaggle-code" Build the Kaggle knowledge graph and launch the CLI or MCP server: -- `make graph-kc` builds the knowledge graph from the Meta Kaggle dataset (needs `META_KAGGLE_CODE_DIR` for import and API call parsing). +- `make graph-kc` builds the knowledge graph from the Meta Kaggle dataset (parses imports and API calls if `META_KAGGLE_CODE_DIR` is set). - `make comp-cli` opens the competition knowledge graph in the IssunDB CLI. - `make comp-mcp` runs the IssunDB MCP server for the competition knowledge graph. -- `make graph-kernel` builds the knowledge graph from the Meta Kaggle dataset (needs `META_KAGGLE_CODE_DIR` for import and API call parsing). +- `make graph-kernel` builds the knowledge graph from the Meta Kaggle dataset (parses imports and API calls if `META_KAGGLE_CODE_DIR` is set). - `make kernel-cli` opens the kernel knowledge graph in the IssunDB CLI. - `make kernel-mcp` runs the IssunDB MCP server for the kernel knowledge graph. - `make help` shows all available Makefile targets. diff --git a/scripts/issundb_load.py b/scripts/issundb_load.py index 1f1803c..bbf638a 100644 --- a/scripts/issundb_load.py +++ b/scripts/issundb_load.py @@ -84,7 +84,9 @@ def validate(log_text: str, expected_nodes: dict[str, int]) -> list[str]: # Any command-level error fails the load (including a rejected constraint). for line in log_text.splitlines(): - low = line.lower() + low = line.lower().strip() + if low.startswith("issundb>"): + low = low[len("issundb>") :].strip() if low.startswith("error") or "mdb_" in low or "storage dependency error" in low: failures.append(f"command error: {line.strip()}") From 9f06ea4134ab38d03ec26ce2e7b4f139314a9605 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 11:18:54 +0200 Subject: [PATCH 04/10] WIP --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 2bf1adb..0222fd9 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,6 @@ unzip /path/to/meta-kaggle.zip -d /path/to/meta-kaggle #### 3. Download and Extract Meta Kaggle Code (Optional) -The [Meta Kaggle Code](https://www.kaggle.com/datasets/kaggle/meta-kaggle-code) dataset contains the source code files for Kaggle notebooks. -This dataset is optional; it is only needed if you want the knowledge graph to include imported packages (`Library` nodes) and Python API invocations (`ApiCall` nodes). -If omitted, the build pipeline continues successfully and constructs the graph without code-level nodes and relationships. - ```bash curl -L -o /path/to/meta-kaggle-code.zip \ https://www.kaggle.com/api/v1/datasets/download/kaggle/meta-kaggle-code From a59c503f987c0d9a196eaaf148f68ad8dd3d252f Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 20:16:17 +0200 Subject: [PATCH 05/10] WIP --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0222fd9..ec14211 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ unzip /path/to/meta-kaggle.zip -d /path/to/meta-kaggle ```bash curl -L -o /path/to/meta-kaggle-code.zip \ https://www.kaggle.com/api/v1/datasets/download/kaggle/meta-kaggle-code + unzip /path/to/meta-kaggle-code.zip -d /path/to/meta-kaggle-code ``` @@ -42,10 +43,13 @@ unzip /path/to/meta-kaggle-code.zip -d /path/to/meta-kaggle-code ```bash export META_KAGGLE_DIR="/path/to/meta-kaggle" -# This is pptional. Set only if Meta Kaggle Code was downloaded +# This is optional. Set only if Meta Kaggle Code was downloaded export META_KAGGLE_CODE_DIR="/path/to/meta-kaggle-code" ``` +> [!NOTE] +> Remember to replace the correct paths in the commands above. + ### Build and Launch Build the Kaggle knowledge graph and launch the CLI or MCP server: @@ -58,7 +62,7 @@ Build the Kaggle knowledge graph and launch the CLI or MCP server: - `make kernel-mcp` runs the IssunDB MCP server for the kernel knowledge graph. - `make help` shows all available Makefile targets. -### Publish the Graph as a Dataset +### Publish the Graph as a Hugging Face Dataset - `make hf-package HF_SNAPSHOT=YYYY-MM-DD` packages the competition graph as a Hugging Face dataset in `databases/hf-dataset`, with the Parquet files under `data/`, a dataset card, and other metadata. @@ -85,8 +89,6 @@ To connect AI agents to the IssunDB MCP server, use the configuration template a } ``` -Replace `/path/to/kaggle-knowledge-graph` with the absolute path to your repository root directory. - ### Knowledge Graph Schema
From 3103c1999c953918b1bd5d217eabb2e3ec1753d2 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 21:10:22 +0200 Subject: [PATCH 06/10] Revise and improve the dataset card for HF dataset --- README.md | 3 + scripts/package_hf_dataset.py | 104 ++++++++++++---------------------- 2 files changed, 38 insertions(+), 69 deletions(-) diff --git a/README.md b/README.md index ec14211..a0379e0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Tests](https://img.shields.io/github/actions/workflow/status/IssunDB/kaggle-knowledge-graph/tests.yml?label=tests&style=flat&labelColor=333333&logo=github&logoColor=white)](https://github.com/IssunDB/kaggle-knowledge-graph/actions/workflows/tests.yml) [![Code Coverage](https://img.shields.io/codecov/c/github/IssunDB/kaggle-knowledge-graph?style=flat&label=coverage&labelColor=333333&logo=codecov&logoColor=white)](https://codecov.io/gh/IssunDB/kaggle-knowledge-graph) +[![Hugging Face](https://img.shields.io/badge/Hugging%20Face-Dataset-ffd21e?style=flat&labelColor=333333&logo=huggingface&logoColor=white)](https://huggingface.co/datasets/habedi/kaggle-knowledge-graph) [![Examples](https://img.shields.io/badge/examples-view-green?style=flat&labelColor=282c34&logo=neo4j)](https://github.com/IssunDB/kaggle-knowledge-graph/tree/main/examples) [![License](https://img.shields.io/badge/license-MIT-007ec6?style=flat&labelColor=333333&logo=open-source-initiative&logoColor=white)](https://github.com/IssunDB/kaggle-knowledge-graph/blob/main/LICENSE) @@ -64,6 +65,8 @@ Build the Kaggle knowledge graph and launch the CLI or MCP server: ### Publish the Graph as a Hugging Face Dataset +The published dataset is available on Hugging Face at [habedi/kaggle-knowledge-graph](https://huggingface.co/datasets/habedi/kaggle-knowledge-graph). + - `make hf-package HF_SNAPSHOT=YYYY-MM-DD` packages the competition graph as a Hugging Face dataset in `databases/hf-dataset`, with the Parquet files under `data/`, a dataset card, and other metadata. - `make hf-upload HF_REPO_ID=/ HF_VERSION=` uploads that directory to the Hugging Face Hub and tags it with the release diff --git a/scripts/package_hf_dataset.py b/scripts/package_hf_dataset.py index c170dcb..7726f43 100644 --- a/scripts/package_hf_dataset.py +++ b/scripts/package_hf_dataset.py @@ -205,15 +205,11 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: A competition-centered knowledge graph built from Kaggle's public [Meta Kaggle]({META_KAGGLE_URL}) and [Meta Kaggle Code]({META_KAGGLE_CODE_URL}) -datasets. It links competitions, teams, submissions, users, notebooks, notebook -versions, datasets, discussion forums, tags, organizations, and the libraries -and API calls used in notebook code. +datasets. It links competitions, teams, submissions, users, notebooks, +datasets, discussion forums, tags, organizations, and notebook code invocations. -The graph is shipped as plain Parquet files, one per node label and one per -relationship type, so it can be loaded with DuckDB, Polars, pandas, Spark, or -any graph database that bulk-imports tabular data. Every node file has an `Id` -column, and every edge file has two columns holding the source and destination -`Id` values. +Shipped as Parquet tables (one per label and relationship type) with auto-indexed +`Id` keys for loading into DuckDB, Polars, pandas, or graph databases. ## Release @@ -227,29 +223,21 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: | Edges | {total_edges:,} | | Size | {total_bytes / (1 << 20):,.0f} MiB | -The `manifest.json` file beside this card lists the row count, byte size, and -SHA-256 digest of every file in this release. +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 (in-class) events, and everything the build could attach to them: - -- Ranked or medal-winning teams, their members, and their leaders. -- Each team's selected submissions and its public and private leaderboard - submissions. -- The 50 most voted notebooks per competition, with the notebook versions that - were sourced from that competition, their authors, and their fork lineage. -- Datasets and dataset versions used by those notebook versions. -- The competition discussion forums with every topic and message, including - team write-up topics. Forum message text is included as the original HTML in - `Message` and as Markdown in `RawMarkdown`. -- The tag taxonomy plus the host and dataset-owner organizations. -- Library imports parsed from the notebook source, and Python API calls parsed - with Tree-sitter and resolved to the imported module (for example - `numpy.mean`). - -Every edge file references only nodes that are present in this release. +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 + Tree-sitter-parsed Python API calls. + +All edge endpoints resolve to nodes present in this release. ## Tables @@ -260,7 +248,7 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: """ for table in nodes: body += ( - f"| `{table.label}` | `{table.filename}` | {table.rows} | {_columns_cell(table)} |\n" + f"| `{table.label}` | `{table.filename}` | {table.rows:,} | {_columns_cell(table)} |\n" ) body += """ @@ -272,29 +260,28 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: for table in edges: body += ( f"| `{table.etype}` | `{table.src}` | `{table.dst}` | `{table.filename}` " - f"| {table.rows} |\n" + f"| {table.rows:,} |\n" ) body += f""" ## Usage -Query the files directly with DuckDB: +Query directly with DuckDB: ```python import duckdb -con = duckdb.connect() -con.execute(\"\"\" - SELECT c.Title, count(*) AS teams +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 -\"\"\").fetchall() +\"\"\").show() ``` -Or with the `datasets` library, one configuration per table: +Load with Hugging Face `datasets`: ```python from datasets import load_dataset @@ -302,45 +289,24 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: competitions = load_dataset("{meta.repo_id}", "nodes_competition", split="train") ``` -To query the graph with Cypher, load the files into -[IssunDB](https://github.com/habedi/issun-db) using the build repository's -`make comp-load` target, which also starts an MCP server for AI assistants. - -## Building It Yourself - -The build code lives at [{SOURCE_REPO_URL}]({SOURCE_REPO_URL}). It stages the -Meta Kaggle CSVs with DuckDB, parses imports with Polars, parses Python API -calls with Tree-sitter, and validates that no staged edge points to a missing -node. The seed rules are fixed, so the same Meta Kaggle export reproduces the -same graph. +To query with Cypher, load the files into +[IssunDB](https://github.com/IssunDB/issun-db) using `make comp-load`. ## Limitations -- Only competitions enabled since 2020 are included, and only the 50 most voted +- Snapshot from {meta.snapshot}; later Kaggle activity is not included. +- Covers competitions enabled on or after 2020-01-01 and at most 50 most-voted notebooks per competition. -- The graph is a snapshot of the Meta Kaggle export dated {meta.snapshot}. - Later activity on Kaggle is absent. -- Library and API call tables cover only notebook versions whose source is - present in the Meta Kaggle Code export. -- Forum messages are stored as Kaggle's raw HTML and Markdown and are not - cleaned. - -## Licensing and Attribution - -Meta Kaggle and Meta Kaggle Code are published by Kaggle under the -[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license, -and this derived dataset carries the same license. Use is limited to -non-commercial purposes, and derivatives must be shared under the same terms. -Please credit Kaggle as the source of the underlying data. - -The build code is separately licensed under the MIT License. +- Library and API call tables cover only notebook versions available in Meta Kaggle Code. +- Forum messages are stored as raw Kaggle HTML and Markdown. -## Personal Data +## Licensing and Privacy -The graph contains public Kaggle profile fields (user names, display names, -countries, and performance tiers) and public forum posts, exactly as published -in Meta Kaggle. Nothing is added beyond what Kaggle already publishes. If you -find content that should not be here, open an issue on the build repository. +Meta Kaggle data is licensed under +[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) for +non-commercial use with attribution. Build scripts at +[{SOURCE_REPO_URL}]({SOURCE_REPO_URL}) are licensed under the MIT License. +The dataset includes only public profile attributes and forum posts published by Kaggle. """ return _front_matter(tables) + "\n" + body From 6b28983389252f43714c446891d3a159d82438e8 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 21:23:24 +0200 Subject: [PATCH 07/10] WIP --- scripts/package_hf_dataset.py | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/scripts/package_hf_dataset.py b/scripts/package_hf_dataset.py index 7726f43..a8c3343 100644 --- a/scripts/package_hf_dataset.py +++ b/scripts/package_hf_dataset.py @@ -171,8 +171,6 @@ def _front_matter(tables: list[TableInfo]) -> str: "- knowledge-graph", "- graph", "- competitions", - "- notebooks", - "- code-analysis", "size_categories:", f"- {_size_category(total_rows)}", "configs:", @@ -203,13 +201,14 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: body = f""" # Kaggle Knowledge Graph -A competition-centered knowledge graph built from Kaggle's public -[Meta Kaggle]({META_KAGGLE_URL}) and [Meta Kaggle Code]({META_KAGGLE_CODE_URL}) -datasets. It links competitions, teams, submissions, users, notebooks, +A knowledge graph built from Kaggle's public +[Meta Kaggle]({META_KAGGLE_URL}) (and [Meta Kaggle Code]({META_KAGGLE_CODE_URL}) +datasets). It links competitions, teams, submissions, users, notebooks, datasets, discussion forums, tags, organizations, and notebook code invocations. -Shipped as Parquet tables (one per label and relationship type) with auto-indexed -`Id` keys for loading into DuckDB, Polars, pandas, or graph databases. +See the [source repository]({SOURCE_REPO_URL}) for build scripts and +[documentation](https://issundb.github.io/kaggle-knowledge-graph/) on +the graph schema, data model, and usage examples. ## Release @@ -217,7 +216,6 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: | --- | --- | | Version | `{meta.version}` | | Meta Kaggle snapshot | {meta.snapshot} | -| Packaged on | {meta.packaged_on} | | Build code | [{SOURCE_REPO_URL}]({SOURCE_REPO_URL}) at commit `{meta.source_commit}` | | Nodes | {total_nodes:,} | | Edges | {total_edges:,} | @@ -227,15 +225,13 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: ## Scope -The graph covers competitions enabled on or after 2020-01-01 (excluding -Community events) and their associated entities: +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 - Tree-sitter-parsed Python API calls. +- 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. @@ -295,8 +291,7 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: ## Limitations - Snapshot from {meta.snapshot}; later Kaggle activity is not included. -- Covers competitions enabled on or after 2020-01-01 and at most 50 most-voted - notebooks per competition. +- 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. @@ -304,8 +299,8 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: Meta Kaggle data is licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) for -non-commercial use with attribution. Build scripts at -[{SOURCE_REPO_URL}]({SOURCE_REPO_URL}) are licensed under the MIT License. +non-commercial use with attribution. +Build scripts at [{SOURCE_REPO_URL}]({SOURCE_REPO_URL}) are licensed under the MIT License. The dataset includes only public profile attributes and forum posts published by Kaggle. """ return _front_matter(tables) + "\n" + body From 0cc29403d56070e3e066e5c62d905c96ea882cde Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 21:25:04 +0200 Subject: [PATCH 08/10] WIP --- scripts/package_hf_dataset.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/package_hf_dataset.py b/scripts/package_hf_dataset.py index a8c3343..495eb7c 100644 --- a/scripts/package_hf_dataset.py +++ b/scripts/package_hf_dataset.py @@ -206,9 +206,8 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: datasets). It links competitions, teams, submissions, users, notebooks, datasets, discussion forums, tags, organizations, and notebook code invocations. -See the [source repository]({SOURCE_REPO_URL}) for build scripts and -[documentation](https://issundb.github.io/kaggle-knowledge-graph/) on -the graph schema, data model, and usage examples. +**See the [source repository]({SOURCE_REPO_URL}) for build scripts and +documentation on the graph schema, data model, and usage examples.** ## Release From f9983c4087e21908ab769829c132076ceb64f722 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 21:27:53 +0200 Subject: [PATCH 09/10] WIP --- scripts/package_hf_dataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/package_hf_dataset.py b/scripts/package_hf_dataset.py index 495eb7c..30f9f5b 100644 --- a/scripts/package_hf_dataset.py +++ b/scripts/package_hf_dataset.py @@ -206,7 +206,7 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: datasets). It links competitions, teams, submissions, users, notebooks, datasets, discussion forums, tags, organizations, and notebook code invocations. -**See the [source repository]({SOURCE_REPO_URL}) for build scripts and +**See the [project repository]({SOURCE_REPO_URL}) for build scripts and documentation on the graph schema, data model, and usage examples.** ## Release @@ -284,8 +284,8 @@ def render_card(tables: list[TableInfo], meta: ReleaseMeta) -> str: competitions = load_dataset("{meta.repo_id}", "nodes_competition", split="train") ``` -To query with Cypher, load the files into -[IssunDB](https://github.com/IssunDB/issun-db) using `make comp-load`. +To query with Cypher, load the files into [IssunDB](https://github.com/IssunDB/issun-db) or +any other graph database of your choice. ## Limitations From 3730e8a6eb5edaba4733bf9ebe623fa420f6a933 Mon Sep 17 00:00:00 2001 From: Hassan Abedi Date: Fri, 18 Sep 2026 21:34:22 +0200 Subject: [PATCH 10/10] WIP --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0379e0..d41ba0a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Tests](https://img.shields.io/github/actions/workflow/status/IssunDB/kaggle-knowledge-graph/tests.yml?label=tests&style=flat&labelColor=333333&logo=github&logoColor=white)](https://github.com/IssunDB/kaggle-knowledge-graph/actions/workflows/tests.yml) [![Code Coverage](https://img.shields.io/codecov/c/github/IssunDB/kaggle-knowledge-graph?style=flat&label=coverage&labelColor=333333&logo=codecov&logoColor=white)](https://codecov.io/gh/IssunDB/kaggle-knowledge-graph) -[![Hugging Face](https://img.shields.io/badge/Hugging%20Face-Dataset-ffd21e?style=flat&labelColor=333333&logo=huggingface&logoColor=white)](https://huggingface.co/datasets/habedi/kaggle-knowledge-graph) +[![Hugging Face](https://img.shields.io/badge/HF%20Dataset-view-ffd21e?style=flat&labelColor=333333&logo=huggingface&logoColor=white)](https://huggingface.co/datasets/habedi/kaggle-knowledge-graph) [![Examples](https://img.shields.io/badge/examples-view-green?style=flat&labelColor=282c34&logo=neo4j)](https://github.com/IssunDB/kaggle-knowledge-graph/tree/main/examples) [![License](https://img.shields.io/badge/license-MIT-007ec6?style=flat&labelColor=333333&logo=open-source-initiative&logoColor=white)](https://github.com/IssunDB/kaggle-knowledge-graph/blob/main/LICENSE)