ACI Server > Server Actions

Server Actions

Topics in this Section

You can run actions on the Eduction ACI server using the HTTP request:
http://Host:Port/?action=action[&Parameter=Value[&Parameter=Value...]]
For example:
http://localhost:7000/action=GetStatus
Eduction ACI server has the following valid actions (case insensitive):
*
*
*
GetStatus
Returns the status of the Eduction ACI Server, including version information and entities selected for matching.
Usage:
action=GetStatus
For example:
http://localhost:7000/action=GetStatus
This action returns output similar to the following XML:
<autnresponse>
<action>GETSTATUS</action>
<response>SUCCESS</response>
<responsedata>
<Name>EDUCTION</Name>
<ACIPort>7075</ACIPort>
<Version>7.5.7.0</Version>
<entitiesenabled>
   <name>contact/phone</name>
   <name>contact/email</name>
   <name>contact/people</name>
</entitiesenabled>
<numentitiesloaded>3</numentitiesloaded>
</responsedata>
</autnresponse>
EduceFromText
The EduceFromText action returns matches from text that you submit in an HTTP parameter. Typically, you pass the parameter as part of an HTTP GET request.
Usage:
action=EduceFromText&Text=text
For example:
http://localhost:7000/?action=EduceFromText&Text=Simon was getting ready to leave.
This action might result in output similar to the following XML:
<autnresponse>
<action>EDUCEFROMTEXT</action>
<response>SUCCESS</response>
<responsedata>
<autn:hit>
   <entity_name>contact/people</entity_name>
   <offset>0</offset>
   <offset_length>0</offset_length>
   <score>1.00000</score>
   <normalized_text_size>5</normalized_text_size>
   <normalized_text_length>5</normalized_text_length>
   <original_text_size>5</original_text_size>
   <original_text_length>5</original_text_length>
   <original_text>Simon</original_text>
   <normalized_text>Simon</normalized_text>
</autn:hit>
<autn:numhits>1</autn:numhits>
</responsedata>
</autnresponse>
EduceFromFile
The EduceFromFile action returns matches from text that you submit in a file. Typically you pass the file as part of an HTTP POST request.
Usage:
action=EduceFromFile
For example:
http://localhost:7075/?action=EduceFromFile
This action, including an HTTP POST containing the file, might result in output similar to the following XML:
<action>EDUCEFROMFILE</action>
<response>SUCCESS</response>
<responsedata>
<autn:hit>
    <entity_name>contact/people</entity_name>
   <offset>0</offset>
   <offset_length>0</offset_length>
   <score>1.00000</score>
   <normalized_text_size>5</normalized_text_size>
   <normalized_text_length>5</normalized_text_length>
   <original_text_size>5</original_text_size>
   <original_text_length>5</original_text_length>
   <original_text>simon</original_text>
   <normalized_text>simon</normalized_text>
</autn:hit>
<autn:numhits>1</autn:numhits>
</responsedata>
</autnresponse>
The following example sends a file to Eduction using a HTTP POST request:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Eduction LSA "EduceFromFile" Example</title>
</head>
<body>
<center>
<h2>Eduction LSA "EduceFromFile" Example</h2>
<form action="http://localhost:7075/?action=EduceFromFile" enctype="multipart/form-data" method="post">
1. Parameter (Optional. Edit the HTML to set):<br>
<input type="text" name="SomeParameter" size="30"><br>
<br>
2. File containing text to parsed:<br>
<input type="file" name="FILENAME" size="30"><br>
<br>
<div>
   <input type="submit" value="Send"></div>
</form>
</center>
</body>
</html>