MentDB, The digital brain.  About me Home
Back / All functions / Circle

Here you can add a relation into a circle of relations.
All relations in a circle have the same meaning (with the same or different languages).
Warning: All relations within a circle must be combined together.
Warning: Position blocks are separate with a space (and each block separate with | ).

circle mergecircle existcircle showcircle idscircle delete

circle merge <relationId1> <positions1> <relationId2> <positions2>

Description

    To merge two circles (Warning: All relations within a circle must be combined together.)

Parameters

    relationId1:   The relation id - string - required
    positions1:   The positions of each node (ex: 1 2 - 3) - string - required
    relationId2:   The relation id - string - required
    positions2:   The positions of each node (ex: 1 2 - 3) - string - required
admin
-> "[R1]" (relation new "le soleil brille" L fr);
-> "[R2]" (relation new "the sun is shining" L en);
circle merge [R1] "1 2 3|4" [R2] "1 2 3 3"
mentdb
CI[0]
admin
circle show [R1]
mentdb
{
"en RL[4z] RL[50]": "1 2 3 3",
"en RL[50] RL[4z]": "1 2 3|4"
}
admin
circle show [R2]
mentdb
{
"en RL[4z] RL[50]": "1 2 3 3",
"en RL[50] RL[4z]": "1 2 3|4"
}

circle exist <relationIdToFind>

Description

    To chek if a link already existe into a circle

Parameters

    relationIdToFind:   The relation id to find - string - required
admin
circle exist [R1]
mentdb
1

circle show <relationId>

Description

    To show all relations from a circle

Parameters

    relationId:   The relation id - string - required
admin
circle show [R1]
mentdb
{
"en RL[4z] RL[50]": "1 2 3 3",
"en RL[50] RL[4z]": "1 2 3|4"
}

circle ids <relationId>

Description

    To show all relations ids from a circle

Parameters

    relationId:   The relation id - string - required
admin
circle ids [R1]
mentdb
[
"RL[4z]",
"RL[50]"
]

circle delete <relationIdToDelete>

Description

    To delete all links by relation from circle

Parameters

    relationIdToDelete:   The relation id to delete - string - required
admin
circle delete [R1]
mentdb
The relation is out of the circle.
admin
circle show [R2]
mentdb
{}
admin
circle show [R1]
mentdb
{}




© 2012-2017 - Jimmitry Payet.