<HTML>
<XMP>
# KEHOME/kb/ke.def
# Apr/3/2003

# context
#========#
attribute isg
	ctype,gtype,utype,ptype,
	ktype,
	formattype,meaningtype,
	subject,verb,object;

#===========#
# ke action #
#===========#
COMMAND iss action with subject=ke,predefined;
method  iss action with subject=ke,user defined;

cd	iss COMMAND with purpose="change directory";
check	iss COMMAND with purpose="check for error";
clock	iss COMMAND with purpose="print date,time,message";
clist	iss COMMAND with purpose="list concepts in hierarchy";
csize	iss COMMAND with purpose="count concepts in hierarchy";
delete	iss COMMAND with purpose="delete unit from concept";
dir	iss COMMAND with purpose="list files in directory (DOS)";
dump	iss COMMAND with purpose="print concept record";
dump/ged iss COMMAND with purpose="print standard GED genealogy file";
dump/hidden iss COMMAND with purpose="print hidden concept record";
entropy	iss COMMAND with purpose="count words in file and calculate entropy";
#"exit"	is statement with purpose="finish processing and exit ke";
explorer iss COMMAND with purpose="edit file system",
			format=[directory:1];
factsize iss COMMAND with purpose="display number of facts";
find	iss COMMAND with purpose="find concepts matching wildcard pattern";
factlist iss COMMAND with purpose="list facts";
fsize	iss COMMAND with purpose="count bytes in file",
			format=[file:1];
fstatus iss COMMAND with purpose="display type and rwx permissions of file",
			format=[file:1];
ftype   iss COMMAND with purpose="display type of file",
			format=[file:1];
getenv	iss COMMAND with purpose="get value of environment variable",
			format=[variable:1];
glb	iss COMMAND with purpose="display greatest lower bound of concepts";
gpath	iss COMMAND with purpose="display genus path to top of hierarchy";
help	iss COMMAND with purpose="display help topic";
hdepth	iss COMMAND with purpose="display distance to bottom of hierarchy";
hlevel	iss COMMAND with purpose="display distance to top of hierarchy";
hwalk	iss COMMAND with purpose="execute action on path in hierarchy",
			format=[action:1,concept:2,path:3];
interpret_line iss COMMAND with purpose="process knit",
			format=[proposition list:1];
kdepth	iss COMMAND with purpose="display distance from top to bottom of hierarchy";
klevel	iss COMMAND with purpose="display distance from top to bottom of hierarchy";
klist	iss COMMAND with purpose="display list of all concepts in knit";
ksize	iss COMMAND with purpose="display number of concepts in knit";
ls	iss COMMAND with purpose="list files in directory (UNIX)";
lub	iss COMMAND with purpose="display least upper bound of concepts";
max	iss COMMAND with purpose="calculate maximum of numeric list";
menu	iss COMMAND with purpose="generate correct sentence syntax for user";
min	iss COMMAND with purpose="calculate minimum of numeric list";
mkdir	iss COMMAND with purpose="create new directory";
nvsub	iss COMMAND with purpose="substitute using pattern-replacement table",
			label=[subject,pattern-replacement table],
			format=[string:1,table:2];
plist	iss COMMAND with purpose="list primitive concepts in hierarchy";
print	iss COMMAND with purpose="display concept",
			format=[concept:*];
psize	iss COMMAND with purpose="count primitive concepts in hierarchy";
pwd	iss COMMAND with purpose="display current directory name (UNIX)";
read	iss COMMAND with purpose="read knowledge from file";
read directory iss COMMAND with purpose="read directory hierarchy";
replace	iss COMMAND with purpose="substitute replacement string for pattern",
			label=[subject,pattern,replacement],
			format=[string:1,string:2,string:3];
rmdir	iss COMMAND with purpose="remove empty directory";
sum	iss COMMAND with purpose="calculate sum of numeric list";
#timestamp iss COMMAND with purpose="print dateline,message";
unique	iss COMMAND with purpose="create unique name";
ulist	iss COMMAND with purpose="list units in hierarchy";
upath	iss COMMAND with purpose="display species path to bottom of hierarchy";
usize	iss COMMAND with purpose="count units in hierarchy";
vdump	iss COMMAND with purpose="dump view to persistent database";
vload	iss COMMAND with purpose="load view from persistent database";
vpop	iss COMMAND with purpose="pop current view name off view stack";
vpush	iss COMMAND with purpose="push current view name on view stack";
write	iss COMMAND with purpose="write knowledge to file";
write directory iss COMMAND with purpose="write directory hierarchy";


#==============#
# ke attribute #
#==============#
variable  iss attribute	with subject=ke;
pattern   iss variable	with wildcard;
pronoun   iss variable	with antecedent subject;
automatic iss attribute	with subject=[relation,method,group],
			     purpose="change automatic declarations";

Assignment iss variable with purpose="record output of last assignment";
Command    iss variable with purpose="record output of last command";
If         iss variable with purpose="record output of last conditional";
Question   iss variable with purpose="record output of last question";
Sentence   iss variable with purpose="record output of last sentence";

charformat	iss variable with purpose="change characteristic output format";
cname		iss variable with purpose="change concept name for input file";
debug		iss variable with purpose="change debug output";
echo		iss variable with purpose="change echo of ke input";
hchar		iss variable with purpose="change characteristic processing";
hcheck		iss variable with purpose="change error check processing";
hfocus		iss variable with purpose="change hierarchy output concepts";
hformat		iss variable with purpose="change hierarchy output format";
hmaxlevel	iss variable with purpose="change hierarchy maximum level up/down";
hmethod		iss variable with purpose="change method processing";
hminfactid	iss variable with purpose="change hierarchy output minimum fact id";
hop		iss variable with purpose="change hierarchy verb processing";
hoseparator	iss variable with purpose="change hierarchy separator",
				default="/";
hreduce		iss variable with purpose="change reduce processing";
hrelation	iss variable with purpose="change relation processing";
hpad		iss variable with purpose="change hierarchy output name pad";
htab		iss variable with purpose="change hierarchy output indent";
kcase		iss variable with purpose="change lower case input option";
kehome		iss variable with purpose="change location of ke files";
keview		iss variable with purpose="change location of ke file systems";
kerror		iss variable with purpose="count input file errors";
kformat		iss variable with purpose="change input format";
klastid		iss variable with purpose="record last new id number (readonly)";
kmapword	iss variable with purpose="change mapping of rdf words";
nameformat	iss variable with purpose="change output format of concept name";
mseparator	iss variable with purpose="change method separator",
				default=",",readonly;
nvseparator	iss variable with purpose="change name value separator",
				default="=";
pseparator	iss variable with purpose="change phrase separator",
				default=" ",readonly;
relseparator	iss variable with purpose="change relation separator",
				default=";";
removehtml	iss variable with purpose="change remove HTML commands option";
roleseparator	iss variable with purpose="change role separator",
				default=":";


#===========#
# statement #
#===========#
#context		iss attribute	with meaning={at space=space:1,time=time:2,view=view:3;};
#s_action	iss statement	with meaning={entity:1 do action:2 = event:3 od aobject:4 done;};
#s_attribute	iss statement	with meaning={concept:1 has attribute:2 = value:3;};
#s_causality	iss statement	with meaning={sentence:1 causes sentence:2; event:1 causes event:2;};
#s_class		iss s_hierarchy	with meaning={concept:1 isa* existent:2;};
#s_conditional	iss statement	with meaning="if sentence:1 then sentence:2 else sentence:3 fi";
#s_definition	iss statement	with meaning={concept:1 is genus:2 with differentia:3;};
#s_differentiation iss s_action	with meaning={concept:1 isd genus:2;};
#s_event		iss statement	with meaning={event:1 do change od eobject:2 from attribute:3=initial:4 to attribute:3=final:5 done;};
#s_group		iss statement	with meaning={unit:1 ismem group:2; group:3 isany unit:4;};
#s_hierarchy	iss statement	with meaning={concept:1 isa genus:2; concept:1 isc species:3;};
#s_identification iss s_action	with meaning={knowledge:1 := man:2 do identify:3 od existent:4 done;};
#s_identity	iss statement	with meaning={alias:1 is concept:2;};
#s_integration	iss s_action	with meaning={concept:1 isi unit:2;};
#s_iteration	iss statement	with meaning="every sentence:1 {proposition list:2;}";
#s_kaction	iss statement	with meaning={entity:1 do kaction:2 = event:3 od aobject:4 done;};
#s_part		iss statement	with meaning="existent:1 haspart existent:2 pplist:3";
#s_relation	iss statement	with meaning={existent:1 isin relation:2 = infon:3;};
#s_meaning	iss statement	with meaning={symbol:1 means referent:2;};
</XMP>
</HTML>
