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

Depending on the language, a word may have identical or different meanings.
The same word can have many different thoughts, eg: the hand, to hand ...
A thought can be stimulated and all these relationships can go up.

thought create thought create|insert|addthought firstthought getthought lastthought mergethought showthought searchthought showthought show wordsthought show wordsthought stimulatethought deletethought delete by langthought delete by wordthought delete by word lang

thought create <word> <separator> <lang>

Synonymous

    thought create|insert|add

Description

    insert thought

Parameters

    word:   The word - string - required
    separator:   The separator - string - required
    lang:   The language - string - required
admin
thought insert cat "" en
mentdb
TH[6t]

thought first <word> <lang>

Description

    To get the first thought

Parameters

    word:   The word - string - required
    lang:   The language - string - required
admin
thought first cat en
mentdb
TH[6t]

thought get <word> <position> <lang>

Description

    To get a thought

Parameters

    word:   The word - string - required
    position:   The position - integer>=0 - required
    lang:   The language - string - required
admin
thought get cat 0 en
mentdb
TH[6t]

thought last <word> <lang>

Description

    To get the last thought

Parameters

    word:   The word - string - required
    lang:   The language - string - required
admin
thought last cat en
mentdb
TH[6t]

thought merge <thoughtId1> <thoughtId2>

Description

    To merge thoughts

Parameters

    thoughtId1:   The thought id 1 - string - required
    thoughtId2:   The thought id 2 - string - required
admin
thought merge TH[6t] TH[6s];
mentdb
Thoughts merged with successful.
admin
thought merge (
word create snake en;
) (
word create serpent fr;
);
mentdb
Thoughts merged with successful.

thought show <word> <lang>

Description

    To show all thoughts linked with a word in a language

Parameters

    word:   The word - string - required
    lang:   The language - string - required
admin
thought show cat en
mentdb
[
"TH[6t]"
]
Description

    To search all thoughts linked with a word in a language with type filters

Parameters

    word:   The word - string - required
    lang:   The language - string - required
    typeFilters:   Type filters separate by coma (ex: "animal,cry,...") - string - required
admin
thought search cat en "animal"
mentdb
[
"TH[6t]"
]

thought show <word>

Description

    To show all thoughts linked with a word in all languages

Parameters

    word:   The word - string - required
admin
thought show cat
mentdb
[
{
"thoughtId": "TH[6t]",
"lang": "en"
}
]

thought show words <thoughtId>

Description

    To show all words in a thought

Parameters

    thoughtId:   The thought id - string - required
admin
thought show words TH[]
mentdb
[
{
"lang": "fr",
"word": "W[quelque chose]"
}
]

thought show words <thoughtId> <lang>

Description

    To show all words in a thought for a specific language

Parameters

    thoughtId:   The thought id - string - required
    lang:   The language - string - required
admin
thought show words TH[] fr
mentdb
[
{
"lang": "fr",
"word": "W[quelque chose]"
}
]

thought stimulate <thoughtId>

Description

    To stimulate a thought

Parameters

    thoughtId:   The thought id - string - required
admin
thought stimulate TH[6t]
mentdb
Thought TH[6t] stimulated with successful.

thought delete <thoughtId>

Description

    To delete a specific thought

Parameters

    thoughtId:   The thought id - string - required
admin
thought delete (word create chicken en)
mentdb
Thought TH[115] deleted with successful.

thought delete by lang <lang> <thoughtId>

Description

    To delete a specific thought in a language

Parameters

    lang:   The language - string - required
    thoughtId:   The thought id - string - required
admin
thought delete by lang en (word create chicken en)
mentdb
Thought TH[115] deleted with successful in the language 'en'.

thought delete by word <word> <thoughtId>

Description

    To delete a specific thought in a word

Parameters

    word:   The word - string - required
    thoughtId:   The thought id - string - required
admin
thought delete by word chicken (word create chicken en)
mentdb
Thought TH[115] deleted with successful in the word 'chicken'.

thought delete by word lang <word> <lang> <thoughtId>

Description

    To delete a specific thought in a word and in a language

Parameters

    word:   The word - string - required
    lang:   The language - string - required
    thoughtId:   The thought id - string - required
admin
thought delete by word lang chicken en (word create chicken en)
mentdb
Thought TH[115] deleted with successful in the word 'chicken' and the language en.




© 2012-2017 - Jimmitry Payet.