MentDB
Mentalese Database Engine
Back / All functions / Relation

Here you can create relationships between thoughts, or other relationships.
A relation can be stimulated and all these sub relationships can go up.

relation create relation create|insert|addrelation show sentencerelation translaterelation searchrelation show thoughtsrelation show thought nodesrelation stimulaterelation delete

relation create <thoughtOrRelations> <lang>

Synonymous

    relation create|insert|add

Description

    To insert a new relation

Parameters

    thoughtOrRelations:   Thoughts or relations - string - required
    lang:   The language id - string - required
admin
relation create (concat (word create a en false) " " (word create dog en false) " " (word create is en false) " " (word create an en false) " " (word create animal en false) " " (word create . en false) ) en;
mentdb
RL[v]
admin
relation show sentence RL[v]
mentdb
something is something

relation show sentence <relationId>

Description

    To show the sentence of a relation

Parameters

    relationId:   The relation id - string - required
admin
relation show sentence RL[w];
mentdb
a dog is an animal

relation translate <relationId> <cooperation> <lang> <level> <th_N>

Description

    Try to get a translation of a relation

Parameters

    relationId:   The relation id - string - required
    cooperation:   The percent cooperation (between 0 and 100) - number - required
    lang:   The language - string - required
    level:   The level (vous) - string - required
    th_N:   The TH value - string - not required
admin
relation translate RL[w] 100 en "";
mentdb
a dog is an animal
Description

    To make a basic search on thoughts

Parameters

    text:   The text (separate by a space) - string - required
    lang:   The language - string - required
    searchPunctuation:   Search punctuations (1|0) - boolean - required
admin
relation search "dog" "en" false
mentdb
...

relation show thoughts <relationId>

Description

    To show all thoughts in a relation

Parameters

    relationId:   The relation id - string - required
admin
relation show thoughts RL[w]
mentdb
...

relation show thought nodes <relationId>

Description

    To show all thought nodes in a relation

Parameters

    relationId:   The relation id - string - required
admin
relation show thought nodes RL[w]
mentdb
...

relation stimulate <relationId>

Description

    To stimulate a relation

Parameters

    relationId:   The relation id - string - required
admin
relation stimulate RL[w]
mentdb
Relation RL[w] stimulated with successful.

relation delete <relationId>

Description

    To a relation

Parameters

    relationId:   The relation id - string - required
admin
relation delete RL[w]
mentdb
Relation 'RL[w]' deleted with successful.




© 2012 - 2019 - MentDB.