Here you can create relationships between thoughts, or other relationships.
A relation can be stimulated and all these sub relationships can go up.
A relation can contain a condition and an action in MQL.
relation create <thoughtOrRelations> <type> <lang>
Synonymous
relation create|insert|add
Description
To insert a new relation
Parameters
thoughtOrRelations: Thoughts or relations - string - required
type: The type (ASLGIOUDR) - string - required
lang: The language id - string - required
admin
#Create and merge 'something/is' words;
thought merge TH[] (word create "something" en);
thought merge TH[2] (word create "is" en);
relation insert "TH[] TH[2] TH[]" G en;
mentdb
RG[v]
admin
relation show sentence RG[v]
mentdb
something is something
relation create sub <parentRelationId> <thoughtOrRelations> <positions> <type> <lang>
Synonymous
relation create|insert|add sub
Description
To insert a new sub relation with parent positions
Parameters
parentRelationId: The parent relation id - string - required
thoughtOrRelations: The thoughts - string - required
positions: The positions (ex: 1 2 3 3) - string - required
type: The type (ASLGIOUDR) - string - required
lang: The language id - string - required
admin
relation insert sub RG[v]
("TH[] TH[2] " (relation insert ((word create "an" en) " " (word create "animal" en)) U en))
"1 2 3" G en
mentdb
RG[w]
relation show sentence <relationId>
Description
To show the sentence of a relation
Parameters
relationId: The relation id - string - required
admin
relation show sentence RG[w];
mentdb
something is an animal
relation translate <relationId> <lang>
Description
Try to get a translation of a relation
Parameters
relationId: The relation id - string - required
lang: The language - string - required
admin
relation translate RG[w] en;
mentdb
something is an animal
relation translate <relationId>
Description
Try to get a translation of a relation (by the first language)
Parameters
relationId: The relation id - string - required
admin
relation translate RG[w];
mentdb
something is an animal
relation new <sentence> <type> <lang>
Description
Generate a new 'relation create' with thoughts (thoughts are automatically created if does not exist).
Parameters
sentence: The sentence - string - required
type: The type of the relation - string - required
lang: The language - string - required
admin
relation new "a dog is an animal" L en
mentdb
RL[4y]
relation has sub <relationId> <type>
Description
To search if a relation contains sub relation
Parameters
relationId: The relation id - string - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation has sub RG[v] G
mentdb
1
relation show info <relationId>
Description
To show information about a relation
Parameters
relationId: The relation id - string - required
admin
relation show info RG[v];
mentdb
RG[v]: something is something
thoughts: TH[] TH[2] TH[]
nodes: TH[] TH[2] TH[]
relation first <relationTabLinkId> <type>
Description
To get the first relation tab link
Parameters
relationTabLinkId: The relation tab link id - string - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation first "[RG[v] 2/3]" G
mentdb
[RG[w] 2/3]
relation get <relationTabLinkId> <position> <type>
Description
To get a relation tab link
Parameters
relationTabLinkId: The relation tab link id - string - required
position: The position - integer>=0 - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation get "[RG[v] 2/3]" 0 G
mentdb
[RG[w] 2/3]
relation last <relationTabLinkId> <type>
Description
To get the last relation tab link
Parameters
relationTabLinkId: The relation tab link id - string - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation last "[RG[v] 2/3]" G
mentdb
[RG[w] 2/3]
relation find <relationId> <position> <type>
Description
To find a relation tab link
Parameters
relationId: The relation id - string - required
position: The position - integer>=0 - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation find "RG[v]" 0 G
mentdb
[RG[w] 1/3]
relation network <relationId>
Description
To get the network relation from a specific relation
Parameters
relationId: The relation id - string - required
admin
relation network RG[w]
mentdb
{
"th": {
"RU[n]": 1
},
"tl": {}
}
relation list ids <relationId>
Description
To list all tab link ids in a relation
Parameters
relationId: The relation id - string - required
admin
relation list ids RG[w]
mentdb
[
"[RG[w] 1/3]",
"[RG[w] 2/3]",
"[RG[w] 3/3]"
]
relation search basic <text> <typeList>
Description
To make a basic search on thoughts
Parameters
text: The text (separate by a space) - string - required
typeList: The type liste (*|A&S&L&G&I&O&U&D&R) - string - required
admin
relation search basic "couleur noire" "*"
mentdb
[
"RL[4n] 2",
"RU[c] 1"
]
relation search deep <jsonRelations> <typeFilter> <typeOrder> <nbResult> <depth>
Description
To search relations after a basic search
Parameters
jsonRelations: The relations tab (from a basic search) - string - required
typeFilter: The type liste (*|A&S&L&G&I&O&U&D&R) - string - required
typeOrder: The type liste (*|A&S&L&G&I&O&U&D&R) - string - required
nbResult: The number max of result into the tab - string - required
depth: The depth to search - string - required
admin
relation search deep (
relation search basic "couleur noire" "*"
) "*" "ASLGIOUDR" 5 10;
mentdb
[
"RL[4n] 10",
"RG[i] 10",
"RG[1] 9",
"RL[4m] 1",
"RL[4l] 1"
]
admin
relation search deep (
relation search basic "couleur noire" "*"
) "UL" "ASLGIOUDR" 5 10
mentdb
[
"RL[4n] 10",
"RL[4m] 1",
"RL[4l] 1",
"RL[4k] 1",
"RL[4j] 1"
]
relation set condition <relationId> <target> <mql>
Description
To set a condition into a relation
Parameters
relationId: The relation id - string - required
target: The target (R|TH1|THN) - string - required
mql: The MQL source code - string - required
admin
relation set condition RG[w] TH1 {if {or (string equal [TH1] "dog") (string equal [TH1] "cat")} {true} {false}}
mentdb
Condition inserted with successful.
relation set action <relationTabLinkId> <mql>
Description
To set the action into a relation
Parameters
relationTabLinkId: The id - string - required
mql: The MQL source code - string - required
admin
relation set action RG[w] {log trace "OK";}
mentdb
Action inserted with successful.
relation set else action <relationTabLinkId> <mql>
Description
To set the else action into a relation
Parameters
relationTabLinkId: The relation id - string - required
mql: The MQL source code - string - required
admin
relation set else action RG[w] {log trace "OK";}
mentdb
Else action inserted with successful.
relation show conditions <relationId>
Description
To show all conditions from a relation
Parameters
relationId: The relation id - string - required
admin
relation show conditions RG[w]
mentdb
{
"TH1": "if {or (string equal [TH1] \"dog\") (string equal [TH1] \"cat\")} {true} {false};"
}
relation show action <relationId>
Description
To show the action from a relation
Parameters
relationId: The relation id - string - required
admin
relation show action RG[w]
mentdb
log trace "OK";
relation exist condition <relationId>
Description
To check if a relation has a condition
Parameters
relationId: The relation id - string - required
admin
relation exist condition RG[w]
mentdb
1
relation generate condition <relationId>
Description
To generate all conditions from a relation
Parameters
relationId: The relation id - string - required
admin
relation generate condition RG[w]
mentdb
relation set condition RG[w] TH1 {if {or (string equal [TH1] "dog") (string equal [TH1] "cat")} {true} {false};};
relation generate action <relationId>
Description
To generate action from a relation
Parameters
relationId: The relation id - string - required
admin
relation generate action RG[w]
mentdb
relation set action RG[w] {log trace "OK";};
relation show <thoughtIdOrRelationIdOrRelationTabLinkId> <type>
Description
To show all tab links in a thought or in a relation tab link
Parameters
thoughtIdOrRelationIdOrRelationTabLinkId: The thought id or the relation tab link id - string - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation show "[RG[v] 2/3]" G
mentdb
[
"[RG[w] 2/3]"
]
relation show perceptions <thoughtIdOrRelationIdOrRelationTabLinkId> <type>
Description
To show all tab link perceptions in a thought or in a relation tab link
Parameters
thoughtIdOrRelationIdOrRelationTabLinkId: The thought id or the relation tab link id - string - required
type: The branch type (ASLGIOUDR) - string - required
admin
relation show perceptions "[RG[v] 2/3]" G
mentdb
[
{
"v": 0.0,
"w": 0,
"mw": 0,
"k": "[RG[w] 2/3]"
}
]
relation show thoughts <relationId>
Description
To show all thoughts in a relation
Parameters
relationId: The relation id - string - required
admin
relation show thoughts RG[w]
mentdb
[
"TH[]",
"TH[2]",
"TH[72]",
"TH[73]"
]
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 RG[w]
mentdb
[
"TH[]",
"TH[2]",
"RU[n]"
]
relation show words <relationId>
Description
To show all words in a relation
Parameters
relationId: The relation id - string - required
admin
relation show words RG[w]
mentdb
[
[
{
"lang": "en",
"word": "W[something]"
}
],
[
{
"lang": "en",
"word": "W[is]"
}
],
[
{
"lang": "en",
"word": "W[an animal]"
}
]
]
relation pos no something <relationId>
Description
To show the position of the first not something thought in a relation
Parameters
relationId: The relation id - string - required
admin
relation pos no something RG[w]
mentdb
2
relation thought stimulate <thoughtId>
Description
To stimulate all relations in a thought
Parameters
thoughtId: The thought id - string - required
admin
relation thought stimulate "TH[73]"
mentdb
Relations stimulated with successful.
relation stimulate <relationId>
Description
To stimulate a relation
Parameters
relationId: The relation id - string - required
admin
relation stimulate RG[w]
mentdb
Relation RG[w] stimulated with successful.
relation check condition <fromUser>
Description
Do not use! This function is used by mental process to check a condition into a relation
Parameters
fromUser: The user - string - required
admin
relation check condition "admin"
mentdb
Do not use!
relation condition <relationId>
Description
Do not use! This function is used by mental process to check conditions from another relation
Parameters
relationId: The relation id - string - required
admin
relation condition RL[2]
mentdb
Do not use!
relation execute action <fromUser>
Description
Do not use! This function is used by mental process to execute an action into a relation
Parameters
fromUser: The user - string - required
admin
relation execute action "admin"
mentdb
Do not use!
relation delete <relationId>
Description
To a relation
Parameters
relationId: The relation id - string - required
admin
relation delete RG[w]
mentdb
Relation 'RG[w]' deleted with successful.
© 2012-2017 - Jimmitry Payet.