File size: 1,326 Bytes
2a562b6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
---
language:
- en
license: mit
library_name: ladybug
pretty_name: Small Knowledge Graphs (small-kgs)
size_categories:
- n<1K
tags:
- graph
- knowledge-graph
- ladybug
---
# Small Knowledge Graphs (small-kgs)
A collection of small knowledge graphs in multiple formats for graph ML research and development.
## Dataset Structure
This dataset contains knowledge graphs in three formats:
### graph-std
Compressed Sparse Row (CSR) graph format with parquet files containing:
- Node data (persons, organizations, events, concepts, places, knowledge graphs)
- Edge indices and indirection pointers
- Node/edge type mappings
- Schema definition
### duckdb
DuckDB database format for efficient analytical queries on graph data.
### lbdb
LadybugDB format for graph database operations using the LadybugDB embedded graph database.
## Usage
```python
from datasets import load_dataset
# Load graph-std version
dataset = load_dataset("ladybugdb/small-kgs", name="graph-std")
# Load duckdb version
dataset = load_dataset("ladybugdb/small-kgs", name="duckdb")
# Load lbdb version
dataset = load_dataset("ladybugdb/small-kgs", name="lbdb")
```
## Contents
| Version | File | Size |
|---------|------|------|
| graph-std | csr_graph_*.parquet | ~200KB |
| duckdb | kg_history.duckdb | ~5MB |
| lbdb | kg_history.lbdb | ~8MB |
|