The following NLP Shell example makes use of an existing domain named “mydomain” in the current namespace. The domain “mydomain” contains 100 sources. The use domain mydomain command specifies using “mydomain”, making it the current domain for the NLP Shell. The list source command lists the sources in the current domain. By default, a list command lists the first page, with a page size of ten items. To list additional pages, you can specify the > command, as shown in this example. To change the page size to 20 items, specify use pagesize 20.
USER>DO $System.iKnow.Shell()
Welcome to the iKnow shell
Type '?' for help
Type 'quit' to exit
iKnow> use domain mydomain
Current domain: mydomain (1)
iKnow> list source
srcId externalId
100 :SQL:Accident:96
99 :SQL:Accident:98
98 :SQL:Accident:94
97 :SQL:Accident:100
96 :SQL:Accident:80
95 :SQL:Accident:99
94 :SQL:Accident:95
93 :SQL:Accident:88
92 :SQL:Accident:97
91 :SQL:Incident:90
iKnow> >
srcId externalId
90 :SQL:Accident:93
89 :SQL:Accident:92
88 :SQL:Accident:91
87 :SQL:Accident:85
86 :SQL:Accident:86
85 :SQL:Accident:89
84 :SQL:Accident:87
83 :SQL:Accident:83
82 :SQL:Accident:78
81 :SQL:Accident:82
iKnow> show source 92
sentId sentenceValue sentenceIsTruncated
5090 On March 7, 2001, about 1500 Alaska standard time, a wheel/ski equipped
Cessna 180 airplane, N9383C, sustained substantial damage during takeoff from
a snow-covered area at Ophir, Alaska. 0
5091 The airplane was being operated as a visual flight rules (VFR) cross-country
personal flight to McGrath, Alaska, when the accident occurred. 0
5092 The airplane was operated by the pilot. 0
5093 The commercial certificated pilot, and the sole passenger, were not injured. 0
5094 Visual meteorological conditions prevailed. 0
5095 During a telephone conversation with the National Transportation Safety Board
(NTSB) investigator-in-charge (IIC), on March 8, 2001, the pilot reported he
landed near Ophir earlier in the day. 0
5096 When he was planning to depart, the surface of the snow had become crusty. 0
5097 The pilot said he began a takeoff run toward the south, but the airplane
did not become airborne until it was within about 50 yards from several trees. 0
5098 During the initial climb, the left horizontal stabilizer collided with a
spruce tree about 25 feet above the ground. 0
5099 The airplane began a descending left turn toward the ground, and collided
with several trees while the pilot was making an emergency landing. 0
iKnow> show summary 92 6
sentId sentenceValue sentenceIsTruncated
5090 On March 7, 2001, about 1500 Alaska standard time, a wheel/ski equipped
Cessna 180 airplane, N9383C, sustained substantial damage during takeoff from
a snow-covered area at Ophir, Alaska. 0
5091 The airplane was being operated as a visual flight rules (VFR) cross-country
personal flight to McGrath, Alaska, when the accident occurred. 0
5095 During a telephone conversation with the National Transportation Safety Board
(NTSB) investigator-in-charge (IIC), on March 8, 2001, the pilot reported he
landed near Ophir earlier in the day.
5097 The pilot said he began a takeoff run toward the south, but the airplane
did not become airborne until it was within about 50 yards from several trees. 0
5099 The airplane began a descending left turn toward the ground, and collided
with several trees while the pilot was making an emergency landing. 0
5100 The airplane received damage to the left main landing gear, the wings,
and the left stabilizer. 0
iKnow> quit
Bye bye
USER>