synaptikAD commited on
Commit
bda79cb
·
verified ·
1 Parent(s): 6bde8c3

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +166 -0
README.md ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ - fr
6
+ tags:
7
+ - smart-building
8
+ - benchmark
9
+ - timeseries
10
+ - graph-database
11
+ - postgresql
12
+ - memgraph
13
+ - sparql
14
+ - building-automation
15
+ task_categories:
16
+ - time-series-forecasting
17
+ - graph-ml
18
+ size_categories:
19
+ - 100M<n<1B
20
+ configs:
21
+ - config_name: default
22
+ data_files:
23
+ - split: graph_nodes
24
+ path: data/graph/nodes.parquet
25
+ - split: graph_edges
26
+ path: data/graph/edges.parquet
27
+ - split: timeseries
28
+ path: data/timeseries/*.parquet
29
+ ---
30
+
31
+ # BaseType Benchmark Dataset
32
+
33
+ Reference dataset for benchmarking database paradigms on smart building data.
34
+
35
+ ## Paper
36
+
37
+ TBD
38
+
39
+ ## Quick Start
40
+
41
+ ```python
42
+ from basetype_benchmark.dataset.huggingface import load_benchmark_data
43
+
44
+ # Load a specific profile
45
+ data = load_benchmark_data(scale="medium", duration="1m")
46
+
47
+ print(f"Nodes: {len(data['nodes'])}")
48
+ print(f"Edges: {len(data['edges'])}")
49
+ print(f"Timeseries points: {len(data['timeseries'])}")
50
+ ```
51
+
52
+ ## Available Profiles
53
+
54
+ ### Scale (Taille du graphe)
55
+
56
+ | Scale | Description | Points | Buildings |
57
+ |-------|-------------|--------|-----------|
58
+ | `small` | Single building | ~50k | 1 |
59
+ | `medium` | Small campus | ~100k | 5 |
60
+ | `large` | Full campus | ~500k | 10+ |
61
+
62
+ ### Duration (Priode temporelle)
63
+
64
+ | Duration | Description | Days |
65
+ |----------|-------------|------|
66
+ | `1d` | One day | 1 |
67
+ | `1w` | One week | 7 |
68
+ | `1m` | One month | 30 |
69
+ | `6m` | Six months | 180 |
70
+ | `1y` | One year | 365 |
71
+
72
+ ## Dataset Structure
73
+
74
+ ```
75
+ data/
76
+ graph/
77
+ nodes.parquet # ~50k nodes across 9 domains
78
+ edges.parquet # ~200k relationships
79
+ timeseries/
80
+ 2024-01.parquet # Partitioned by month
81
+ 2024-02.parquet
82
+ ...
83
+ ```
84
+
85
+ ### Domains Covered
86
+
87
+ 1. **Spatial**: Site, Building, Floor, Space, Zone
88
+ 2. **Equipment**: Systems, Equipment, Sensors, Actuators
89
+ 3. **Energy**: Meters (tree distribution), EnergyZones
90
+ 4. **IT/Datacenter**: Servers, Racks, Network devices
91
+ 5. **Audiovisual**: AV Systems, Displays, Projectors
92
+ 6. **Parking**: Zones, Spots, Charging stations
93
+ 7. **Security**: Access points, Cameras, Alarms
94
+ 8. **Organization**: Departments, Teams, Persons
95
+ 9. **Contractual**: Contracts, Providers, Work orders
96
+
97
+ ## Schema
98
+
99
+ ### nodes.parquet
100
+
101
+ | Column | Type | Description |
102
+ |--------|------|-------------|
103
+ | `node_id` | string | Unique identifier |
104
+ | `node_type` | string | Type (Building, Equipment, etc.) |
105
+ | `name` | string | Human-readable name |
106
+ | `building_id` | int | Building ID for scale filtering (0=cross-building) |
107
+ | `properties` | json | Domain-specific attributes |
108
+
109
+ ### edges.parquet
110
+
111
+ | Column | Type | Description |
112
+ |--------|------|-------------|
113
+ | `src` | string | Source node ID |
114
+ | `dst` | string | Target node ID |
115
+ | `rel` | string | Relationship type |
116
+
117
+ ### timeseries/*.parquet
118
+
119
+ | Column | Type | Description |
120
+ |--------|------|-------------|
121
+ | `point_id` | string | Reference to Point node |
122
+ | `timestamp` | timestamp | Measurement time |
123
+ | `value` | float64 | Measured value |
124
+ | `building_id` | int | Building ID for scale filtering |
125
+ | `year_month` | string | Partition key (YYYY-MM) |
126
+
127
+ ## Scale Filtering
128
+
129
+ The dataset uses `building_id` for scale-based extraction:
130
+ - **small**: `building_id = 1` (single building)
131
+ - **medium**: `building_id IN (1,2,3,4,5)` (5 buildings)
132
+ - **large**: all buildings (no filter)
133
+ - `building_id = 0`: cross-building entities (Site, Organization, etc.)
134
+
135
+ ## Benchmark Usage
136
+
137
+ ```bash
138
+ # Run benchmark with specific profile
139
+ python -m basetype_benchmark.run --scale=medium --duration=1m
140
+
141
+ # Results include:
142
+ # - Query latencies (p50, p95, min, max)
143
+ # - Memory consumption (steady state, peak)
144
+ # - CPU usage (average, spikes)
145
+ # - Energy estimation (via RAPL/CPU-time)
146
+ ```
147
+
148
+ ## Author
149
+
150
+ Antoine Debienne
151
+
152
+ ## Citation
153
+
154
+ ```bibtex
155
+ @dataset{basetype_benchmark_2025,
156
+ author = {Antoine Debienne},
157
+ title = {BaseType Benchmark Dataset},
158
+ year = {2025},
159
+ publisher = {Hugging Face},
160
+ url = {https://huggingface.co/datasets/synaptikAD/basetype-benchmark}
161
+ }
162
+ ```
163
+
164
+ ## License
165
+
166
+ CC-BY-4.0