You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

Synthetic Knowledge Graph Dataset

Dataset Description

This is a synthetic dataset for knowledge graph relation extraction, generated from a scale-free knowledge graph.

Dataset Summary

  • Total samples: 160
  • Total triples: 160
  • Relations: 14

Supported Tasks

  • Relation extraction
  • Knowledge graph construction
  • Natural language understanding

Dataset Structure

Each sample contains:

  • sentence: Natural language sentence
  • subject: Subject entity
  • relation: Relation type
  • object: Object entity
  • triple: Formatted triple

Data Fields

{
  "sentence": "Alice is a friend of Bob.",
  "subject": "Alice", 
  "relation": "friend_of",
  "object": "Bob",
  "subject_type": "name",
  "object_type": "name", 
  "triple": "(Alice, friend_of, Bob)",
  "template_id": 0
}

Usage

from datasets import load_dataset

dataset = load_dataset("your-username/synthetic-kg-dataset")
Downloads last month
1