|
Getting Started with OpenCyc Version 1.0 |
Contents
Starting and Stopping the Cyc Server
Below is a brief description of the administrative steps involved in using OpenCyc, including starting and stopping a Cyc process, logging in and out, and saving your work.
The Readme document that accompanies the release includes information about starting a Cyc server. The process is slightly different on Windows than on Linux.
At a Windows command-line prompt:
On Linux:
After some time loading the world into memory you will see:
Loading statics.
Mapping in the memory image.
Running initializers ... PROCESS (1031), PROCESS (1053), done.
Copyright (C) 1995 - 2002 Cycorp, Inc. All rights reserved.
RTL initialized.
CycL Initialized.
Enabling base TCP services to port 3600.
Ready for services.
System 1.2594 KB 567.
CYC(1):
|
CYC(n): is the SubL command prompt.
You can exit Cyc by typing (exit) at the command prompt.
To start the KB Browser, just open your Internet browser and enter the URL below replacing HOSTNAME with the machine name (or IP number) of the Cyc Server you are running. If you are using a browser on the same machine that is running the Cyc server, then you should be able to use "localhost" as the host name.
http://HOSTNAME:3602/cgi-bin/cyccgi/cg?cb-start
After connecting to this link, you should see the login screen.
Tutorial on the KB Browser Interface
When you first connect to the Cyc Server using the KB Browser (see the previous step), you are already logged in, as Guest. The Guest account has permission to browse through the terms in the KB and to use certain tools, such as ASK. In order to use tools that affect a change on the knowledge base (such as ASSERT), you need to change identities to something other than 'Guest'. If you have not yet created any new identities, log in as CycAdministrator.
Type CycAdministrator in the text field within the 'Login Area' and click on the [Submit] button.
Once you are logged in as CycAdministrator, you can create a new identity by returning to the login screen (click the 'Login' link in the top frame), typing the new name into the same text field and clicking [Submit]. You will be asked to confirm that you want to create a new Cyclist.
Unknown Cyclist
The name JohnDoe is not the name of a known HumanCyclist.
Do you want to create a new Cyc constant with this name? You will be
able to use this constant as you would any other in the Knowledge Base
as well as login with this new name.
|
Click the button that says, 'Yes, Create Cyclist'. The constant #$JohnDoe will now be added to the Knowledge Base.
Note: You may have noticed that you do not need to use passwords when logging into
the server from the KB Browser. There is currently no security model implemented
in OpenCyc. The KB Browser is meant to be accessed by fully trusted users. The
Cyc API can be used to develop secure interfaces for other users.
To change identities (including from or to #$Guest):
Enter the name of your Cyc constant in the type-in pane provided (minus the "#$"), then press the
[Submit] button. For example, the user Fred Smith might be represented in the KB as #$FredSmith.
To log in, Fred would type "FredSmith" in the input window.