Fun with the Wot in Neo4j

I tinkered an API in duniter-neo4j that could help to build such tool.

Let’s say I know a member in the Wot. For example @Moul
I want to check which members at step 1 from Moul are good potential signers.

To know it, I check which percentage of sentries is reachable if @Moul + the potential signer give me a certification.

http://151.80.155.53:10500/neo4j/recommendations/signers/moul/1/none

{
    referring_member: "moul",
    optionnal_second_member: null,
    recommended_member: "CandideSK8",
    percent_sentries: 100
},
{
    referring_member: "moul",
    optionnal_second_member: null,
    recommended_member: "Thatoo",
    percent_sentries: 100
},

I added a “second member” option.
It allows to check which member is recommended in the case, I already have two signers ( @Moul, the referring member, a second member). The recommendation will return me best members at step 1 of Moul.

http://151.80.155.53:10500/neo4j/recommendations/signers/moul/1/vit

This implementation is for now just a proof of concept and would need much more work to be efficient but it gives an idea about how this tool could be built.