次の NLP シェルの例では、現在のネームスペースにある “mydomain“ という名前の既存のドメインを利用します。ドメイン “mydomain“ には 100 個のソースが含まれています。use domain mydomain コマンドは、“mydomain“ を NLP シェルの現在のドメインにすることを指定します。list source コマンドは、現在のドメイン内のソースをリストします。既定により、list コマンドは 10 項目のページ・サイズにて、最初のページをリストします。追加のページをリストするには、以下の例で示すように、> コマンドを指定することができます。20 項目のページ・サイズに変更するには、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>