Skip to content

Instantly share code, notes, and snippets.

@mommi84
Last active September 11, 2024 16:32
Show Gist options
  • Save mommi84/07f7c044fa18aaaa7b5133230207d8d4 to your computer and use it in GitHub Desktop.
Save mommi84/07f7c044fa18aaaa7b5133230207d8d4 to your computer and use it in GitHub Desktop.
Awesome Knowledge Graph Embedding Approaches

Awesome Knowledge Graph Embedding Approaches

Awesome

This list contains repositories of libraries and approaches for knowledge graph embeddings, which are vector representations of entities and relations in a multi-relational directed labelled graph. Licensed under CC0.

Libraries

Approaches

@unmeshvrije
Copy link

Hi,
Quite recent library from Facebook research:
https://github.com/facebookresearch/PyTorch-BigGraph

@kadimaolivier
Copy link

Hi,
Quite recent library from Facebook research:
https://github.com/facebookresearch/PyTorch-BigGraph

Hey,

Thanks for sharing, is there any document as a guide line on how to use PytTorch-BigGraph? i would like to use this tool for Knowledge Graph embeddings.....

@cthoyt
Copy link

cthoyt commented Aug 25, 2019

Hi @mommi84, here are some suggestions:

BioNEV

https://github.com/xiangyue9607/BioNEV provides:

  • 5 matrix factorization-based: Laplacian Eigenmap, SVD, Graph Factorization, HOPE, GraRep
  • 3 random walk-based: DeepWalk, node2vec, struc2vec
  • 3 neural network-based: LINE, SDNE, GAE

Some of them might not qualify as KGE models as you mentioned in https://gist.github.com/mommi84/07f7c044fa18aaaa7b5133230207d8d4#gistcomment-2977958, but this might be a good place for people who are interested in the biological applications to start looking around!

Edge2vec

https://github.com/RoyZhengGao/edge2vec improves node2vec to consider the statistical distribution of edge-edge transitions in second-order random walks

Metapath2vec

I'm not happy that this author has opted to share code via dropbox instead of GitHub, but it can be found at https://ericdongyx.github.io/metapath2vec/m2v.html

@chencjiajy
Copy link

DGL-KE: https://github.com/awslabs/dgl-ke , including TransE, TransR, RESCAL, DistMult, ComplEx, and RotatE.

@raphaelsty
Copy link

Hi,

CKB is a tool to make knowledge graph embeddings using HuggingFace models. This is useful when a knowledge graph contains text for example. DistillBert and FlauBERT are available. The source code is developed so that new HuggingFace models can be added without difficulty.

CKB works with MKB which is a more traditional tool for knowledge graph embeddings. MKB makes it easy to evaluate a model using link prediction / triplet classification.

CKB and MKB lack documentation compared to the libraries already referenced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment