File size: 2,004 Bytes
6240a3a
 
 
 
 
 
 
 
40830c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591d49b
40830c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
task_categories:
- text2text-generation
language:
- en
pretty_name: T
size_categories:
- 1M<n<10M
---

# TempKB

## Overview

TempKB is a comprehensive collection of knowledge graph data designed to train ML models on knowledge graph completion and reasoning tasks.

## Dataset Structure

The dataset is organized into the following main components:

Train Set: 7764337 instances for training models.

Validation Set: 117510 instances for validating model performance.

Test Set: 117327 instances for final evaluation.

## Data Fields

Each instance in the dataset contains the following fields:

- `head`: the head entity
- `relation`: the relationships between the head and tail entities
- `tail`: the tail entity
- `start`: start time of the event
- `end`: end time of the event
- `type`: temporal information type, which is one of the following:
  - `NONE`: no start or end time
  - `TIMESTAMP`: start time only
  - `INTERVAL`: start and end time

## Example Instance

```json
{
  "head": "Martin Bača"
  "relation": "member of sports team"
  "tail": "Czech Republic national under-18 football team"
  "start": "2002-01-01"
  "end": "2002-01-01"
  "type": "INTERVAL"
}
```

## Usage

To use this dataset, you can load it using the Hugging Face datasets library:

```python
from datasets import load_dataset

dataset = load_dataset('ESITime/TempKB', keep_default_na=False)
```

## License

This dataset is unlicensed. Feel free to use it as you want.

## Citation

If you use this dataset in your research, please cite it as follows:

```bib
@dataset{username_dataset_name_year,
  author = {Phuong Ngo},
  title = {TempKB},
  year = {2024},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/ESITime/TempKB}
}
```

## Acknowledgement

This dataset is derived from the collection of knowledge graph datasets including ICEWS05-15, ICEWS14, Wikidata, and YAGO. The datasets are downloaded from the processed version by Facebook Research: https://github.com/facebookresearch/tkbc/