Skip to content

Instantly share code, notes, and snippets.

@mommi84
Last active March 9, 2024 16:38
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

@lukostaz
Copy link

Hello @mommi84, we just released this - it would be nice if you could add it to the Libraries list:

@mberr
Copy link

mberr commented May 6, 2019

@albertmeronyo
Copy link

Hi @mommi84, I think node2vec is also worth including

@mommi84
Copy link
Author

mommi84 commented Jul 23, 2019

Hello and thanks all.

@lukostaz and @mberr: I've added your libraries to the list.

@albertmeronyo: As node2vec is an embedding algorithm for graphs with only one relation, I would leave it out of the list.

@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