keepset

Nations Knowledge Graph

Directed knowledge graph encoding relationships between 14 countries. Edges represent 55 interaction types (e.g. 'exports', 'accusation', 'aidgiven'). The same country pair can have multiple relation types, creating a dense multigraph. Used as a standard benchmark for knowledge graph embedding methods.

npx keepset fetch kg-nations

Nodes
14
Edges
1,992
Size
7.9 KiB

Fetch and preview this dataset on this page, or download the result as JSON. The command line fetches it without a browser.

Overview

Idkg-nations
Categorygraph/v1
Kindgraph
DomainInternational relations knowledge graph
Tagsknowledge-graph
LicenceMIT
Cataloguekeepset 1.33.0

Sources and provenance

#URLStatusRetrievedRead by recipePinned snapshotSHA-256
0https://github.com/TimDettmers/ConvE/raw/master/nations.tar.gzlive2026-04-19yes

Citations

Recipe

Source#0
Archivetar.gz
Part traintrain.txt
Part validvalid.txt
Part testtest.txt
Parser format"kg-triples"
Parser encoding"utf-8"
Parser delimiter"tab"
Parser order"head-relation-tail"
Parser header"none"
Parser quotedfalse

Crosswalk

keepset/relations-split to graph/v1, as a crossmap crosswalk.

RuleFromToDirection
movemetametaboth
movenodes[].idnodes[].idboth
moveedges[].sourceedges[].sourceboth
moveedges[].targetedges[].targetboth
moveedges[].typeedges[].typeboth
moveedges[].splitedges[].splitboth

Expected counts

Edges1,992
Nodes14

Properties

Directedyes
Download bytes7.9 KiB
Heterogeneousyes
Multigraphyes
Self loopsno
Weightedno