| Oracle Context Option Application Developer's Guide | Library |
Product |
Contents |
Index |
The scripts are divided into two functional areas: CTXPLUS (performing ad-hoc queries) and CTXLING (generating linguistic output).
The following topics are covered in this chapter:
For more information about the location of the scripts, see the Oracle7 Server installation documentation specifc to your operating system.
Before the scripts can be used, all the required demonstration objects must be created in the database. Installation scripts are provided with ConText Option for creating the required demonstration objects.
For more information about running the demonstration installation scripts, see the Oracle7 Server installation documentation specifc to your operating system.
@query1 Enter value for query_terms: coffee|tea
@view 14
@storeqry Enter query name: test_sqe Enter value for query_terms: coffee|teaNote: The script does not return the results of the query to the standard output.
select pol_name, query_name, query_name from ctx_user_sqes;
These examples illustrate how one-step, two-step, and (sorted) in-memory queries produce the same results and how the operators in a query expression affect the rows and scores returned by a query:
@query2
Enter value for query_terms: California
SCR ID AUTHOR TITLE
---- -- --------------- ----------------------------
100 17 Nolo Richards REVIEW & OUTLOOK (Editorial):
California Smashup
50 18 Nolo Richards State Farm and California
30 25 David Shribman In the Wilderness: Democrats'
Troubles In Winning
20 49 Nolo Richards California High Court Is
Asked to Lift Block Of In
10 16 Heidi Waleson LEISURE & ARTS: Cynthia
Phelps: Violist in Vogue
@query1
Enter value for query_terms: politics
SCR ID AUTHOR TITLE
---- -- --------------- ----------------------------
20 25 David Shribman In the Wilderness: Democrats'
Troubles In Winning
10 13 Frederick C. Kl LEISURE & ARTS -- Sports:
Mediocrity's the Word Ar
@querys
Enter value for query_terms: politics|California
SCR ID AUTHOR TITLE
---- -- --------------- ----------------------------
100 17 Nolo Richards REVIEW & OUTLOOK (Editorial):
California Smashup
50 18 Nolo Richards State Farm and California
30 25 David Shribman In the Wilderness: Democrats'
Troubles In Winning
20 49 Nolo Richards California High Court Is Asked
to Lift Block Of In
10 13 Frederick C. Kl LEISURE & ARTS -- Sports:
Mediocrity's the Word Ar
10 16 Heidi Waleson LEISURE & ARTS: Cynthia
Phelps: Violist in Vogue
@query1
Enter value for query_terms: politics,California
SCR ID AUTHOR TITLE
---- -- --------------- ----------------------------
100 17 Nolo Richards REVIEW & OUTLOOK (Editorial):
California Smashup
50 18 Nolo Richards State Farm and California
50 25 David Shribman In the Wilderness: Democrats'
Troubles In Winning
20 49 Nolo Richards California High Court Is Asked
to Lift Block Of In
10 13 Frederick C. Kl LEISURE & ARTS -- Sports:
Mediocrity's the Word Ar
10 16 Heidi Waleson LEISURE & ARTS: Cynthia
Phelps: Violist in Vogue
@query2
Enter value for query_terms: politics&California
SCR ID AUTHOR TITLE
---- -- --------------- ----------------------------
20 25 David Shribman In the Wilderness: Democrats'
Troubles In WinningThe CTXLING sample code consists of the following SQL scripts:
For more information about the location of the scripts, see the Oracle7 Server installation documentation specifc to your operating system.
Before the scripts can be used, all the required demonstration objects must be created in the database. Installation scripts are provided with ConText Option for creating the required demonstration objects.
For more information about running the demonstration installation scripts, see the Oracle7 Server installation documentation specifc to your operating system.
@genling
Clearing theme table... Clearing article table... Initializing ling_tracking table Creating ling. callback function LING_COMP_CALLBACK... Submitting all articles for linguistic extraction... All articles submitted.
@status Linguistic Requests left: 36 Request Errors....
@gist 40 Points of View 01 GENERIC ... 15 production 16 purchases Which point of view gist to print: 15
@similar 14
@themes 40 Commodities: Coffee Futures Prices Decline on News That U.S. Might Not Participate in New International Pact by John Valentine T# THEME WEIGHT --- --------------------------------------------- ------ 01 United States 11 02 commerce and trade 10 03 coffee 10 ...
@gist 40 Points of View 01 GENERIC ... 15 production 16 purchases Which point of view gist to print: 15 Commodities: Coffee Futures Prices Decline on News That U.S. Might Not Participate in New International Pact by John Valentine Consuming and producing nations appear to be poles apart in their positions. Producing countries proposed a quota that would incorporate the sales of ...
@similar 40 Commodities: Coffee Futures Prices Decline on News That U.S. Might Not Participate in New International Pact by John Valentine Article Themes 01 United States 02 commerce and trade 03 coffee ... 14 production 15 purchases Which theme to query: 15 Other articles with this theme ID WT AUTHOR TITLE --- --- --------------- -------------------------------- 1 8 William Power OTC Focus: Composite Index Falls 33 7 Alex Kaufmann Your Money Matters: How to Take 5 7 George Anders Shades of U.S. Steel: J.P. 30 6 Michael Siconol Mutual Funds: ...And Find Out if 47 6 Nolo Richards Ponce Federal Bank Is in Talks 45 5 Nolo Richards Farley Wins Round In His Bid to 35 2 Alix M. Freedma Supermarkets Push Private-Label
|
Prev Next |
Copyright © 1996 Oracle Corporation. All Rights Reserved. |
Library |
Product |
Contents |
Index |