Rename concept aConcept with new name newConceptNameStr.
None = renameconcept(aConcept, newConceptNameStr)
aConcept - type: con
newConceptNameStr - type: str
Nothing
Does not change attributes and values of existing concept, just the name.
if(findconcept(findroot(),"apples"))
rmconcept(findconcept(findroot(),"apples"));
G("apples") = makeconcept(findroot(),"apples");
addstrval(G("apples"),"have","seeds");
renameconcept(G("apples"),"fruit");
"output.txt" << conceptname(G("apples")) << "\n";
This prints the following to output.txt:
fruit
renamechild, Knowledge Base Functions