|
|
|
Structured document (e.g., HTML, SGML, ODA, CDA) |
Search engine for remote access to database management systems6169992
Abstract
A system is disclosed for remotely accessing database management systems (5130) and performing guided iterative queries of knowledge bases (110) over a communication circuit such as the Internet (5124). The system includes a Web browser (5120) having a Java.TM. runtime environment (4015), and executable content client (5121) that may be downloaded from a remote location (103). A Krakatoa proxy server (5128), socket (5021), and tunnel (5129) establish a mechanism for remote procedure calls through firewalls (5126) via an HTTP server (5127). Guardrail counts (750) are preferably displayed to the remote searcher to facilitate guided iterative queries of the remote knowledge base (110). A configurable graphical action region (700) is preferably provided to the remote searcher via a graphical user interface to provide powerful navigation and linking of diverse useful information which varies based upon contexts selected by the remote searcher.
Claims
What is claimed is:
1. An apparatus for guided interactive queries of an object oriented knowledge base, comprising:
a hypertext markup language browser capable of managing executable content, said browser being adapted to provide a virtual machine runtime environment for an executable content client application, said browser being coupled to a communications circuit capable of transmitting packets of digital information according to a network protocol;
an executable content client application capable of running in the virtual machine runtime environment of the browser, said executable content client application having a remote procedure call mechanism written as executable content which is capable of running in the virtual machine runtime environment of the browser, said remote procedure call mechanism being capable of translating remote procedure calls into digital information that can be transmitted over said communications circuit by said browser;
a data base management system server, said server being located at a remote location; and
an interface mechanism, said interface mechanism being coupled to said communications circuit at the remote location, said interface mechanism being coupled to said data base management system server, said interface mechanism being capable of translating digital information received from said browser via said communications circuit into remote procedure calls to said data base management system server.
2. The apparatus according to claim 1, wherein:
said communications circuit is a wide area network.
3. The apparatus according to claim 1, wherein:
said executable content client application is downloadable over said communications circuit so that said executable content client application may be transferred over said communications circuit to a browser capable of managing executable content.
4. The apparatus according to claim 1, wherein:
said communications circuit is the Internet.
5. The apparatus according to claim 4, wherein:
said data base management system server comprises an object oriented knowledge base server.
6. The apparatus according to claim 5, further comprising:
an object oriented knowledge base associated with and accessible by said object oriented knowledge base server.
7. The apparatus according to claim 6, wherein:
when a user interacts with said browser and chooses to search a data base, said executable content client application is downloaded over said communications circuit so that said executable content client application runs in the virtual machine runtime environment of the browser, said executable content client application including a client database retrieval applet, said executable content client application including a graphical user interface to said client database retriever applet, whereby said user can interact through said graphical user interface to navigate a class hierarchy of said object oriented knowledge base associated with said object oriented knowledge base server.
8. The apparatus of claim 1 wherein said remote procedure call mechanism translates procedure calls into a format that is conforms to a document transfer protocol.
9. The apparatus of claim 8 wherein said protocol is the hypertext transfer protocol.
10. The apparatus of claim 8 wherein said mechanism encodes procedure calls into text characters.
11. A method for performing queries of a knowledge base from a remote site, comprising the steps of:
executing a client application within a browser that is running on a computer located at said remote site;
generating a remote procedure call within said client application;
encoding said remote procedure call into a request having a format which conforms with a document transfer protocol;
transmitting the encoded request to the site of a database management system via a communications network, in accordance with said protocol;
decoding the request, to reconstruct the procedure call;
executing a query within the database management system in accordance with said procedure call, to retrieve a result;
encoding said result in a format which conforms to said protocol;
transmitting the encoded result to the remote site via said communications network, in accordance with said protocol; and
retrieving the encoded result within said client application and displaying the result.
12. The method of claim 11 wherein said protocol is the hypertext transfer protocol.
13. The method of claim 11 wherein said procedure calls are encoded into text characters.
14. The method of claim 11 further including the initial step of transferring the client application from the site of the database management system to the browser running at said remote site via said communications network.
15. The method of claim 11 wherein said database management system is an object-oriented database management system.
Description
BACKGROUND OF THE INVENTION
On the past, there has been a long felt need for world-wide access to information in a speedy, cost effective and convenient manner. The present invention addresses this need. While the invention will be described herein in connection with an object oriented database management system, certain features and aspects of the invention have broader application.
In an object oriented database management system, it is often advantageous to provide access to knowledge base over a communications circuit that has a finite bandwidth. The communications circuit, for example, may be a local area network ("LAN"), a wide area network ("WAN"), or the internet. Suitable communications circuits can permit access to a knowledge base for remote locations that may be separated by great distances. However, speed is an important consideration that must be adequately addressed in any practical system in order for it to be successful. Although improvements in network protocols and speed have been the focus of much attention, nevertheless networks have limitations on the amount of traffic and the throughput that can be accommodated. Performance may be adversely impacted by delays inherent in moving large amounts of data over such a communications circuit. The performance problems with, for example, the Internet persist even as network transmission speeds and capacity are increased. The Internet may be compared to a multi-lane highway. Increases in speeds may be analogized to raising the speed limit on a highway. Increases in capacity may be analogized to widening the highway to provide more lanes. Yet, the highway may still slow to a crawl during rush hour. The problem is that as quickly as additional lanes can be built, the number of cars using the highway increases just as fast or faster. Similarly, the number of users of the Internet has grown almost exponentially, resulting in an increase in the amount of data that must be transported by the network during a given period of time. Therefore, performance and speed remain important issues that must be addressed regardless of incremental improvements in the speed or capacity of the Internet or other networks.
Remote access to a database such as an object oriented knowledge base may be achieved over a communications circuit. It is desirable to provide a system for remote access that provides great flexibility and speed. A suitable search engine and interface are needed for remote access. For example, a need exists for a system that allows an object oriented database system to be accessed in a manner which permits guided iterative queries at speeds and performance levels that are consistent with cost effective, time efficient and productive use of such data, for example, by engineering and design personnel, and other customers in general. Un particular, a search engine is needed to permit guided iterative queries of an object oriented database system over the Internet, in a seamless environment that permits navigation of the World Wide Web (sometimes referred to simply as "the Web") via hypertext links in HTML documents in conjunction with queries of the object oriented database system.
There are many examples where a search engine such as that provided by the present invention is needed. One example may be a new product design project where the major components need to be specified in a time efficient manner, and it is necessary or desirable to research what components are available.
For example, an electronic product may need a series of integrated circuits (IC's) that will boost performance beyond the current design--and beyond the professed operation of a new product that a competitor has just announced. Even if, for example, a supplier such as National Semiconductor has just come out with a new IC that would work, the information concerning such a brand new component available from a supplier would not be found in any of the data books available at the offices of the engineers and designers of the product. Alternatively, at the temperature tolerances a new product needs, the designers and engineers may not be able to find a databook for available components that states exactly how given components of interest will perform. In the past, it was typically necessary to order preliminary data sheets, (which typically are incomplete in nature and sometimes inaccurate), order some samples of components that appeared to be suitable, design them in, prototype the product, test it, and hope that the silicon produced still met what the original specification sheets said. This may consume valuable time, and delay the introduction of a new product.
In the past, this scenario may have been repeated in many companies because of a lack of timely, accurate and complete information on available components and parts that are commercially available for use in a particular design of a new product. In addition, there has been a long felt need for engineers and designers to have access to this information without having to know any part numbering sequence, data sheet naming scheme or description text. They needed to have access to information about products based on how they think about them--i.e., accessing the information according to the attributes of the component or product that is needed. For IC's, it may be power levels, tolerances, and package types; for office supplies it may be product type, size and cost, an so forth.
It is desirable for engineers and designers to get access to this information almost instantly. In the past, searching through catalogs has been cumbersome and time-consuming. Maintaining an up-to-date library of catalogs at the office of the engineer or designer has been relatively costly and time-consuming. Obtaining up-to-date information by calling a sales representative of a supplier has not been entirely satisfactory, and further consumes time. There has been a need to minimize the time required to search for and find each component that is needed for a product design, so that the engineers and designers can get on with the useful work that they need to do to produce a new product.
Engineers and designers need to be able to successively narrow their search for a needed component, and to be able to quickly look for substitutes if they do not find what they originally requested. And they need to have access to any information unique to them as a customer, such as special pricing, delivery times, or even preannounced components or parts available only to strategic customers. Moreover, engineers and designers have needed access to such component and design information to be provided at little or no cost, for example, as an extension of their relationship with the vendors of the components.
The above described examples are sufficient to demonstrate that prior art methods have not been entirely satisfactory. However, the present invention has broad application beyond the limited examples discussed above.
SUMMARY OF THE INVENTION
The present invention involves the use of executable content (for example, Java.TM. applets) downloadable over a network or a wide area network (such as the Internet or the World Wide Web) to local processing equipment in order to enable interactive search of a remotely located information repository such as an object oriented database which must be accessed over a communications channel having limitations on bandwidth and throughput.
The present invention may be advantageously used in a database management system to facilitate efficient and speedy remote access to, for example, an object oriented database or schema over a communications circuit having a limited bandwidth or throughput capability. The present invention reduces or eliminates time consuming transmission of unnecessary digital information over the communications circuit and allows access to information in a database in conjunction with executable applets while providing the ability to navigate and access resources available over the communications circuit.
The present invention provides engineers and designers with the possibility that they can get direct access to their key supplier's data on-line, via the Internet. Not only is this information typically accessible at any time day or night, but it is data far richer than what is typically published in a static databook, catalog or product brochure. And such information can be absolutely current and up-to-date.
A preferred embodiment has been implemented in a product offered under the trademark "Krakatoa.TM.", available from CADIS, Inc. of Boulder, Colo., which utilizes a language and runtime system distributed by Sun Microsystems under the name "Java.TM.."
For example, a Java.TM. implementation of a client usable over the Web may provide virtually instant, intuitive access, and parametric searching with guided iterative query feedback of a database of information, and is usable on any Internet client platform supported by Java.TM., including PCs, MACs and UNIX workstations.
A search engine in accordance with the present invention may be advantageously used to provide remote access to data, and search capability with guided iterative feedback. Other available resources can be linked via URLs to information in a database, and widely separated and independent information repositories can be effectively tied together seamlessly. The present invention may be advantageously used to provide access over a wide area network, preferably the Internet, to such things as component product data. However, the present invention is not necessarily limited in application to wide area networks or the Internet, but may also be advantageously applied in local area networks and other client/server systems.
In a preferred embodiment, a user accesses an object oriented knowledge base over a communications circuit such as the Internet. The user has a remote computing or communication device that may include a navigation program such as a world wide web browser, a runtime environment (such as that provided by Java.TM.), executable content downloaded over the communications circuit from the knowledge base or an associated storage location which is run by an executable content client, which includes an executable content knowledge base retriever. A suitable embodiment may include a knowledge base server connected to a network or coupled to the communications circuit. The communications circuit may typically have one or more knowledge base clients connected to the communications circuit. The knowledge base server is preferably an object oriented database management system that includes a dynamic class manager, a connection manager, a query manager, a handle manager, a units manager, a database manager, and a file manager. An object oriented lock manager may also be included for concurrency control, and is preferably implemented as part of the knowledge base server.
An object oriented database management system in accordance with that described in application Serial No. 08/339,481, filed Nov. 10, 1994, by Thomas S. Kavanagh, et al., for OBJECT ORIENTED DATABASE MANAGEMENT SYSTEM (U.S. Pat. No. 5,838,965), provides a suitable implementation of a system for parametric classification and retrieval. The present invention may be used with such a system to provide access to data in seconds or less, over local area networks, wide area networks, or even over the Internet during nominal traffic periods. There are times when congestion over the Internet can slow the exchange of data significantly. During such periods, the advantages of the present invention in speeding remote access to knowledge bases can be significant. An object oriented database management system, such as that described in application Ser. No. 08/339,481, (U.S. Pat. No. 5,838,965) used in conjunction with the present invention may provide the capability of a guided, iterative query over the Internet with virtually instant feedback to a user each time a selection is made, even where the user is located remotely with respect to the database system that is being queried.
A suitable system for providing rapid, parametric retrieval of product information over a network may comprise the following:
1) An object oriented knowledge base management system;
2) A schema development tool that is used to build a classification schema for the information in the knowledge base, (the tool preferably requires no programming skills, compiling, or knowledge of operating systems); and,
3) Concurrent seat access to permit a plurality of users to simultaneously access the knowledge base.
Other unique features disclosed include a concept referred to herein as "guardrails." When a searcher navigates to a given class in a hierarchical knowledge base, the attributes of that class are displayed to the searcher. The attributes are constrained by the current values used by the instances of the class. These guardrail attributes are available to be selected and set as search criteria to further refine the search. Attributes that have discrete values can be "guardrailed." For example, attributes that are of a Boolean type, enumerated type, or enumerated set type may be "guardrailed." In the case of a "guardrailed" attribute, guardrail counts are computed for that attribute and are displayed to the searcher.
For a given query, the set attribute selectors that are set as search criteria are examined, and instances that meet current query criteria are used to calculate guardrail counts. The guardrail counts that are displayed to the searcher represent the number of instances having each possible value for the guardrailed attribute that also meet the current query criteria. Thus, the searcher knows immediately, without doing another search, how many instances corresponding to the current query criteria have each value for the guardrailed attribute. This may assist the searcher in avoiding setting search criteria in iterative queries that produce a query result of no instances.
Another unique feature disclosed is a concept referred to herein as "extended queries." "Extended queries" provide complex queries into a database that is currently in use, or even into another separate database. An "extended query" may link one subtree in a hierarchical object oriented knowledge base to another subtree in that hierarchical object oriented knowledge base. It is possible, using extended queries, to establish links between the attributes. It is also possible to do cascading queries. An extended query can map to another knowledge base, or a class can be mapped to itself.
Yet another unique feature disclosed is a concept referred to herein as a "configurable graphical action region." Such a region, preferably built as a configurable graphical action bar, may provide a powerful graphical interface for extended queries. In addition, a configurable graphical action region may be used to provide a powerful graphical user interface to dynamic parameterized URLs. In a preferred implementation, a configurable graphical action bar has action buttons that are configurable so that different parameters will be passed on a remote procedure call based upon certain events. The action buttons are dynamic so that different extended queries are performed based upon a selection of a class or instance contained in a current query result, providing a configurable, class-dependent query.
A system in accordance with the present invention may optionally include tools to assist in the development of a custom product schema, as well as the extraction of parametric attributes from a database of pre-existing product data, known as legacy data processing, and tools to assist in the creation of a product knowledge base.
Information concerning the Java.TM. programming language and Java.TM. scripts has been published by Sun Microsystems. Specifications for the Java.TM. language appear in J. Gosling, B. Jay & G. Steele, The Java.TM. Language Specifications (1996), the entire disclosure of which is incorporated herein by reference. Additional background information relating to object-oriented databases appears in W. Kim, Introduction to Object Oriented Databases (1990); W. Kim & F. H. Lochovsky, Object-Oriented Concepts, Databases, and Applications (1989); C. J. Date, An Introduction to Database Systems (rev. 1984); and R. G. G. Cattell, The Object Database Standard: ODMG-93 (rel. 1.1 1994), all of which are incorporated herein by reference.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a schematic diagram which depicts a network environment that is suitable for an embodiment of the present invention.
FIG. 2 is a simplified schematic diagram which depicts a communication circuit environment that is suitable for an embodiment of the present invention.
FIG. 3 is a simplified schematic diagram which depicts an embodiment of the present invention.
FIG. 4 is a flow chart showing steps in a process embodying aspects of the present invention.
FIG. 5 is a schematic diagram of an embodiment of the present invention.
FIG. 6 is a block diagram depicting an overall architecture for a system employing an embodiment of an object oriented database management system.
FIG. 7 shows the major components of a computer hardware configuration suitable for a server.
FIG. 8 shows the major components of a computer hardware configuration that provides a suitable platform for a browser that may include an executable content client.
FIG. 9 is a schematic diagram depicting the layout of a packet of digital information used by the present invention.
FIG. 10 is a schematic diagram depicting in more detail the layout of the trailer of the packet shown in FIG. 9.
FIG. 11 is a schematic diagram depicting in more detail the layout of the header of the packet shown in FIG. 9.
FIG. 12 is a flow chart illustrating a method for starting a new thread.
FIG. 13A is a flow chart illustrating a method for a client connection, including the processing of a call packet, performing a procedure call, and sending of a reply packet.
FIG. 13B is a continuation of the flow chart of FIG. 13A.
FIG. 14 is a flow chart illustrating in more detail a method for signature processing shown in simplified form as step 5029 in FIG. 13B.
FIG. 15 is a flow chart illustrating a method performed by the CGI tunnel.
FIG. 16 is a flow chart illustrating a method for generating and sending a reply packet.
FIG. 17 is a flow chart illustrating a method for generating and sending a call packet.
FIG. 18A is a flow chart illustrating a method performed by an executable content client to process reply packets.
FIG. 18B is a continuation of the flow chart of FIG. 18A.
FIG. 19 depicts an example of a display screen showing information displayed in a window during operation of an embodiment of an executable content retriever client remotely accessing an object oriented database management system.
FIG. 20 depicts an example of a display screen showing information displayed in a window during operation of an embodiment of an executable content retriever client remotely accessing an object oriented database management system, including a dialog window for selecting enumerated attribute information to set search parameters.
FIG. 21 depicts an example of a display screen showing information displayed in a window during operation of an embodiment of an executable content retriever client remotely accessing an object oriented database management system, including a dialog window for entering numeric attribute information to set search parameters.
FIG. 22 depicts an example of a display screen showing information displayed in a window during operation of an embodiment of an executable content retriever client remotely accessing an object oriented database management system, including a dialog window for entering character or text attribute information to set search parameters.
FIG. 23 depicts an example of a display screen showing an instance display window that opens when the "display" tab shown in FIG. 22 is selected to show information about the instances returned which met the search parameters entered by the user.
FIG. 24 depicts an example of a display screen showing an item information window displaying detailed information about an instance which may be opened by clicking an "information" button shown in FIG. 23.
FIG. 25 depicts an example of a display screen showing information displayed in a class name dialog window which opens when a user clicks on the "find" button shown in FIG. 19.
FIG. 26A is a schematic diagram of a class hierarchy in a parts knowledge base and a vendors knowledge base.
FIG. 26B is a schematic diagram of certain attributes stored in the parts knowledge base depicted in FIG. 26A.
FIG. 26C is a schematic diagram of certain attributes stored in the vendors knowledge base depicted in FIG. 26A.
FIG. 27 is an example of a screen display for an extended query wizard.
FIG. 28 is an example of a screen display for an extended query wizard.
FIG. 29 is an example of a screen display for an extended query wizard.
FIG. 30 is an example of a screen display for an extended query wizard.
FIG. 31 is an example of a screen display for an extended query wizard.
FIG. 32 is an example of a screen display for a URL wizard.
FIG. 33 is an example of a screen display for a URL wizard.
FIG. 34 is an example of a screen display for a URL wizard.
FIG. 35 is an example of a screen display for a URL wizard.
FIG. 36 is an example of a screen display generated by an executable content retriever client showing guardrails.
FIG. 37 is an example of a screen display generated by an executable content retriever client showing a configurable dynamic action bar.
FIG. 38 is an example of a screen display generated by an executable content retriever client showing a configurable dynamic action bar.
FIG. 39 is an example of a screen display generated by an executable content retriever client showing a configurable dynamic action bar.
FIG. 40 is an example of a screen display generated by an executable content retriever client showing a configurable dynamic action bar.
FIG. 41 is an example of a screen display generated by an executable content retriever client showing a configurable dynamic action bar.
FIG. 42 is a flow chart depicting the application of a query count.
FIG. 43 is a flow chart depicting a process for building a configurable dynamic action bar.
FIG. 44 is a flow chart depicting a process for displaying guardrails.
FIG. 45A is a flow chart depicting a method used in building guardrails.
FIG. 45B is a continuation of the flowchart shown in FIG. 45A.
FIG. 45C is a continuation of the flowcharts shown in FIGS. 45A and 45B.
FIG. 46 depicts an example of a screen display shown when navigating a schema by opening and selecting classes.
FIG. 47 depicts an example of a screen displayed when adding a part to the schema.
FIG. 48 depicts an example of a screen displayed when editing a part.
FIG. 49 illustrates a screen display for an embodiment showing a schema developer window.
FIG. 50 illustrates a screen display for an embodiment showing an example of a search results window.
FIG. 51 depicts a display screen showing information displayed in an example of a parts editor window.
FIG. 52 shows the internal object representation for a class.
FIG. 53 depicts an example of a generic list.
FIG. 54 illustrates the data structure for attribute data.
FIG. 55 illustrates a data structure for an enumerator object.
FIG. 56 depicts the data structure for an instance and associated parameters.
FIG. 57 shows the data structure for five different types of parameters: enumerated, Boolean, numeric, string and string array.
FIG. 58 is an example of a schema with instances.
FIG. 59 depicts a data structure for an example of a unit family.
FIG. 60A is a flow chart depicting a method for adding a class to a schema.
FIG. 60B is a continuation of the flow chart in FIG. 60A.
FIG. 61 is a schematic diagram of a query object.
FIG. 62 is a schematic diagram of a selector object.
FIG. 63 is a schematic diagram of an enumerated selector object.
FIG. 64A is a schematic diagram of an enumerated set selector specific data object.
FIG. 64B is a schematic diagram of a Boolean selector specific data object.
FIG. 65A is a schematic diagram of a numeric selector type-specific data object.
FIG. 65B is a schematic diagram of a numeric subselector object.
FIG. 66 is a schematic diagram of a numeric set selector specific data object.
FIG. 67A is a schematic diagram showing the structure of string, string array, and international string selector specific data objects.
FIG. 67B is a schematic diagram of a string subselector object.
FIG. 68 is a flow chart describing a method of applying a query.
FIG. 69 is a flow chart describing a method of applying a query to a class.
FIG. 70 is a flow chart describing a method of applying a query to multiple instances.
FIG. 71 is a flow chart describing a method of applying a selector to an instance.
FIG. 72 is a flow chart depicting a process for applying a selector to a parameter.
DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT
Virtually every company in business today must provide information on their products to their customers. While at the same time, potential customers seek information on the products they must purchase. In practice, few purchases are based on the physical item, but rather upon the information about the item (i.e., goods or services) offered for sale. A need has long existed for such information to be provided to potential customers in a manner where the information is easy to find and access, accurate, up-to-date, and complete.
Yet in today's traditional business model, almost all product information is provided in verbal or hardcopy form. It is exchanged as telephone calls, catalogs, spec sheets, and sales visits. It is expensive for the suppliers. And it is frustratingly cumbersome, incomplete, and time-consuming for the customer. The present invention may be utilized to provide quick and easy access to accurate, up-to-date, and complete information even over a limited bandwidth communication channel such as the World Wide Web.
On accordance with the present invention, information may be disseminated over a network such as the World Wide Web in a manner where the information is quickly and intuitively accessible so that potential customers can easily find what they're looking for. The present invention further provides the capability of supplying potential customers with more than a simple description of a product or service. Potential customers may view two-dimensional images of a product, they may navigate around three dimensional images of the product, they may hear it they can observe simulations of the product, either alone or in custom configurations. Potential customers may be provided with access to product information, pricing information, availability information, and competitive information. Sufficient information may be provided for the customer to make an informed purchase decision.
For example, a semiconductor manufacturer could publish its entire product content on the Web for the benefit of its customers, using present invention. The semiconductor manufacturer's customers would be able to quickly search the manufacturer's entire product line for components that fit the customer's design requirements, by doing guided iterative queries of the data using the attributes or parameters of the components needed for a pending design. The customer could then download a wealth of information on the components of interest. The information made available could include circuit simulations that plot performance data for particular operating conditions. The operating conditions could be changed, different components could be substituted, and the simulation could be rerun as many times as the customer desired to do so. With the present invention, the exchange of information is greatly facilitated.
Application Ser. No. 08/339,481, filed Nov. 10, 1994, by Thomas S. Kavanagh, et al., for OBJECT ORIENTED DATABASE MANAGEMENT SYSTEM, now U.S. Pat. No. 5,838,965, describes parametric search technology and legacy processing methods, which may be used, for example, to provide parts information management systems. Large discrete manufacturing companies typically manage hundreds of thousands--often millions--of parts, and incur enormous expense in creating and maintaining those parts and the information about those parts. The object oriented database management system described in application Ser. No. 08/339,481, now U.S. Pat. No. 5,838,965 may provide virtually instant parametric access to a company's parts data, without the need for a part number or text description of the parts. The legacy processing methods provide the ability to extract parametric attributes from widely scattered, often inconsistent parts data that has been accumulated over years of history.
There are a number of hindrances to effective use of the World Wide Web for interactive use, arising from the fact that the basic unit of interaction is a document written in HTML (Hypertext Markup Language). Each user input requiring a response from a service available on the Web in an HTML mediated environment requires the creation and downloading of a fresh HTML document to the user's Web browser. This leads to the need to create, keep track of, and clean up many interim documents representing each step of the user's interaction with a service. In addition, the need to download the entire interim HTML document at each step places serious performance limitations on the use of this mechanism for interactive applications.
Achieving acceptable performance levels in the application of the present invention requires careful attention to the use of resources available to the executing agent or module. In this case, one of those resources is network bandwidth. Since the bandwidth of the network is finite, it makes reasonable sense to want to be conservative about it's use. However, there are other reasons to want to do so. Client/server applications used on the Internet can involve considerable distances between a client and a server. This is complicated by the fact that as the distance increases, so does the probability that a communication packet that is moving between the client and the server will encounter delays caused by other network traffic.
Client applications usually require server data to present through an interface to the user. Normally the only mechanism they have to acquire this data is through programming interfaces provided by the server. If the programming interfaces are constructed in such a way that the client application is required to make several server calls in order to satisfy the user's request, then the response time to the user is the summation of the round trip delays experienced for all of the calls. For long distance operations, such as those operating via the Internet, delays generated by a multi-call architecture can sometimes aggregate to many minutes.
For the architecture described and illustrated herein, this problem has been circumvented by architecting the data structures such that a client can receive information from a server in one client/server exchange, or one remote procedure call.
These problems only get worse when the HTTP protocol must be used as a transport mechanism between a client and a server. The HTTP/1.0 protocol requires that the client connect to the server, transfer the request data, and receive the response, which is all followed immediately by a disconnection. To establish new connections, network protocols must determine a route to be used for communication between the client and the server. Once routing information has been determined, it is typically stored, and the client and server will use the predetermined routing information to establish the route for communications.
Applications which require many exchanges to satisfy user requests can be plagued by response time problems in the best of network scenarios. When the transport mechanisms require many additional connections to be established to provide a requested service, the problem gets orders of magnitude worse. The present invention achieves advantages over the prior art by combining multiple functions or requests into a single connection communication, under circumstances that would otherwise require multi-connection communication using conventional methods.
The present invention makes use of a Web browser with a capability of executable content. Java.TM., a language and runtime system distributed by Sun Microsystems, may be used as a suitable mechanism for the creation of executable content. A suitable Web browser including a capability of executable content that may be employed in connection with the present invention is Netscape Navigator.TM., version 3.0 or higher. Other suitable Web browsers include Microsoft's Internet Explorer.TM., version 3.0 or higher. It is believed that almost any web browser that is Java-enabled would be suitable. Rather than simple interaction consisting of the creation and downloading of HTML documents, a navigation client, such as a Web browser including a capability of executable content such as Java.TM., may allow the creation of application programs, called "applets," that run directly in the Java runtime environment provided within the browser. These applets may be distributed as architecturally neutral program units expressed in bytecodes that execute against a virtual computer implemented by the Java runtime environment.
A particular type of especially advantageous interactive application, performing guided iterative queries of an object oriented knowledge base, can be implemented using a system comprising the following elements:
1. an object oriented data base management system server;
2. a World Wide Web browser or other runtime program capable of managing executable content;
3. a client application written as executable content, capable of running in the browser as part of a runtime environment;
4. a remote procedure call mechanism written as executable content, capable of running in the browser or runtime environment; and,
5. an interface mechanism on the server side capable of translating received remote procedure calls into actual calls to the object oriented database management server.
FIG. 2 is a simplified schematic diagram which depicts a communication circuit environment that is suitable for explaining the structure and operation of an embodiment of the present invention. In the illustrated example, a communications circuit 4000 having a finite throughput capability and bandwidth limitations is provided. For example, the communications circuit 4000 may be a local area network or a wide area network. The network 4000 may comprise one or more networks that employ an ATM protocol, Ethernet, token ring, FDDI, or other suitable implementation of a digital communications system. In the illustrated embodiment, the communications circuit 4000 is the Internet. Although the communications circuit 4000 has a finite throughput capability and bandwidth limitations, the present invention will operate satisfactorily over a communications circuit that has no such limitations. It will be appreciated by those skilled in the art that a significant advantage of the present invention is that it is capable of operating with fast response times and that it provides good performance over communications circuits that have such limitations.
In FIG. 2, a knowledge base server 4001 is shown connected to the communications circuit 4000. The knowledge base server 4001 maintains a database or knowledge base, preferably an object oriented knowledge base 4002. In the illustrated embodiment, the knowledge base server 4001 has a TCP/IP connection 4005 to the Internet 4000, although the present invention is not necessarily limited to any particular type of connection or protocol.
A plurality of user client applications 4003 and 4004 are connected to the communications circuit 4000. The user client application 4003 comprises a client operable to navigate network resources connected to the communications circuit 4000, such as the knowledge base server 4001. In the illustrated embodiment, the user client application 4003 comprises a web browser 4003, and is connected to the Internet 4000 via a TCP/IP connection 4006. The web browser is preferably capable of retrieving HTML documents from servers (not shown) connected to the Internet.
FIG. 3 is a simplified schematic diagram showing a suitable architecture and an example of a search engine using the present invention. A user's computer 4018 is shown running a web browser 4014. The web browser 4014 includes a capability for executable content, such as a Java runtime environment 4015. A web server 4010 in this example includes an HTML document 4011 that contains a reference (such as hypertext link) to a searchable knowledge base 4012. The browser 4014 may be used to navigate the Web and to retrieve the HTML document 4011. By clicking (using, for example, a mouse 117) on a hypertext link to the knowledge base 4012, the user connects via the Internet 5124 and invokes the HTTP server 4010 which downloads Java class files 4017 which, when downloaded, become executable content 4016 in the Java runtime environment 4015.
Thus, in accordance with one aspect of the present invention, executable content 4016 from storage 4017 on a serving computer 106 is transferred to a client computer 4018 and runs as an executable content retriever client 4016. Then, executing appropriate procedure calls, the executable content knowledge base retriever 4016 performs searches, including guided iterative queries, of an object oriented knowledge base 4012, and a graphical representation of the results are visible to the user on a display 116. In accordance with a preferred embodiment of the present invention, guided iterative queries of an object oriented knowledge base 4012 may be performed via the Internet 5124 and displayed on a user's display 116 in significantly less time than was possible in the past using conventional techniques. It will be appreciated by those skilled in the art that this is a significant advantage of the present invention.
Access to knowledge base servers 4013 is preferably accomplished using a proxy server 5128. In a preferred embodiment, the HTTP server 4010 communicates with the proxy server 5128 via tunnel 5129 in a manner which is described more fully below. In the illustrated embodiment, the proxy server 5128 and the HTTP server 4010 are advantageously located on the same serving machine 106. For performance reasons, the database servers 4013 and knowledge base 4012 are preferably located on a separate machine 4019, but there is no requirement that they be implemented that way. In addition, although a mouse 117 is a preferred input device in the illustrated example, a user may alternatively use other devices such as a keyboard 122 for input.
FIG. 4 is a flow chart showing steps in an overall process that may be performed according to the embodiment illustrated in FIG. 3. Referring to FIG. 4, a user interacts with an executable content capable web browser in step 4100, and chooses to search a knowledge base 4002 in step 4101. This choice in step 4101 results in the automatic download of executable content or an applet 4017 in step 4102 which may become the client side of the retrieval application 4016. The retriever client 4016 opens connection to the knowledge base server using executable content based remote procedure calls in step 4103. The retriever client 4016 opens the knowledge base server 4013 in step 4104. In step 4105, the user interacts through a graphical user interface embodied in the client retriever 4016 to navigate a class hierarchy of the associated knowledge base 4012, set attribute query selectors, display matching instances, and run other executable content associated with classes, attributes, standard values of attributes, and instances.
Referring to FIG. 4, in step 4106, when finished, the user closes the knowledge base 4002. In step 4107, the knowledge base server 4001 closes connection to the user's retriever client 4003, returning control to the Web browser 4014.
For example, an electronics design engineer may need to find an integrated circuit to meet a requirement in a design. He knows the type of device and its operating characteristics, and also knows that his company prefers to use parts from National Semiconductor. For example, assume that the designer needs a standard linear analog buffer amplifier. Using an executable content capable Web browser 4014 such as Netscape Version 3.0, he may connect to a National Semiconductor Web site over the Internet 5124 and begin browsing at the site. In this example, this site has a hyperlink for parts search and document retrieval. The user clicks on the hyperlink, resulting in the download of a Java application (applet) 4017 that begins executing in the Java runtime environment 4015 within the Netscape browser 4014. The user is presented with a graphical display on his display screen 116.
FIG. 19 illustrates an example of a display on the user's display screen 116 when the user is remotely accessing an object oriented knowledge base 4012 via the Internet 5124 using an executable content retriever client 4016. The executable content retriever client 4016 displays a search results window 4020. The search results window 4020 includes a search tab 4021 and a display tab 4022. Either the search tab 4021 or the display tab 4022 may be selected by the user. The illustrated example shown in FIG. 19 shows the appearance of the search window 4020 when the search tab 4021 has been selected. Clicking on the search tab 4021 reveals an outline based hierarchical display of classes of integrated circuits 4023 in the left-hand portion 4023 of the window 4020.
In a preferred embodiment, the user may employ guided iterative queries to find the needed integrated circuit. The search window 4020 may initially display only the root class 4038 in the knowledge base 4012, or may alternatively display a first level of classes, such as the "communications" class 4031, the "digital logic" class 4032, the "discrete semiconductor devices" class 4033, etc., including the "analog/linear" class 4027. The user clicks on the "analog/linear" class 4028 to open it, which causes the executable content retriever 4016 to display the "standard linear" class 4027, and other classes on that same level, such as the "audio" class 4034. The user clicks on the "standard linear" class 4027 to open it, thereby causing the display of the "amplifiers & buffers" class 4026, the "regulators" class 4035, and other classes on that same level. By clicking on the "amplifiers & buffers" class 4026, the user opens it to display the "buffers" class 4024 and the "operational amplifiers" class 4036. The user selects the "buffers" class 4024 by clicking on it, and that class is displayed as a highlighted representation 4024 as shown in FIG. 19.
At each step of the process of navigating the hierarchical display of classes 4023, the user is presented with an "items found" count 4037. In the example shown in FIG. 19, the items found count 4037 is sixty-six, indicating that the currently selected "buffers" class 4024 contains sixty-six instances.
The right-hand portion of the window 4020 is a attribute display window 4025. In this object oriented knowledge base 4012, attributes are inherited by classes 4024 from a parent class 4026. For example, the "buffers" class 4024 will inherit attributes from its parent class "amplifiers & buffers" 4026, such as a "voltage gain" attribute 4029. The parent class "amplifiers & buffers" 4026 will, in turn, inherit attributes from its parent classes: the "analog/linear" class 4028 and the "standard linear" class 4027, such as the "part number" attribute 4030. The "buffers" class 4024 may also have additional attributes that are not inherited.
The user navigates the class hierarchy 4023 to the class 4024 of integrated circuit that is required. In this case, the user is interested in finding a standard analog linear buffer amplifier. The user can, at any time, also set search parameters for attributes 4039, 4029 appropriate to the currently selected class 4024 within the hierarchy 4023. For example, FIG. 20 illustrates an example of setting search parameters for an enumerated attribute 4039, which in the illustrated example is a "package type" attribute 4039. A predetermined type of icon 4040 is displayed to the user to indicate that this attribute 4039 is an enumerated attribute. The user clicks on the icon 4040 associated with the "package type" enumerated attribute 4039 to select it, which opens a dialog window 4041 displaying the possible values for this enumerated attribute 4039.
The user may click on any one of the enumerated attributes displayed in the dialog window 4041 to select the attribute. If the number of enumerated attributes are too great to display all of them in the dialog window 4041 at the same time, a scroll bar 4042 may be used to bring additional attribute values into view. By holding down the "Control" key on his keyboard 122 while he clicks with his mouse 117, the user may simultaneously select several of the enumerated attributes to be used as search parameters. In the illustrated example, the user has selected "package type" attribute values of "ceramic flatpack" 4045, "cerdip" 4046, and "N/A" 4047. The "N/A" value 4047 is given to any instance that does not have an indicated value for the enumerated "package type" attribute, which may often result when existing legacy data is converted to a different knowledge base format. The user may conveniently deselect all of the selected attribute values (for example, if he wants to change his search) by clicking on a clear button 4043 in the dialog window 4041.
Once the user has selected the values 4045, 4046 and 4047 that he wishes to use for the enumerated attribute 4039 in his search, he clicks on an "apply" button 4044 in the dialog window 4041. After the apply button 4044 is clicked, the selected values 4045, 4046 and 4047 for the enumerated attribute 4039 are displayed in the attribute value display window 4048 associated with that enumerated attribute 4039. In addition, the parts found count 4037 is updated to reflect the results of the search. In the illustrated example shown in FIG. 20, thirty-six instances conform to the applied search criteria.
Other types of attributes may be used to set search criteria to zero in on a desired part that satisfies a user's design requirements. For example, FIG. 21 shows the numeric attribute "bandwidth" 4049 being used to set search parameters. The "bandwidth" attribute 4049 is identified for the user as a numeric attribute with a numeric type icon 4051 which appears next to the attribute 4049. When the user clicks on the numeric icon 4051, a dialog box 4050 opens to allow the user to specify a range to be used as a search parameter. In the illustrated example, the user may use the dialog box 4050 to specify that the bandwidth attribute 4049 should have a value between ten MHz and ten thousand MHz by entering those values in a first range specify window 4052 and a second range specify window 4053, respectively. The units are expressed in a units window 4054. When the user clicks an "apply" button 4055, the indicated range is applied as a search parameter for the bandwidth attribute 4049, and in this example, the modified search parameters reduce the items found count 4037 to thirty-three. When the user clicks the apply button 4055, the range used in the query will be displayed in the attribute value display window 4056 next to the bandwidth attribute 4049 as shown in FIG. 21.
A clear button 4057 may be used by the user to reset or clear the values in the dialog box 4050. The dialog window 4050 may be closed by clicking a "close" button 4058.
Character or text attributes, such as the title attribute 4060, may be used to set search parameters. This is shown in FIG. 22. Clicking on a character type icon 4059 next to the "title" attribute 4060 opens a dialog window 4062. Text strings may be entered in a text window 4063 in the dialog box 4062 to specify the text to be used as a search parameter. In a preferred embodiment, the search logic returns a "match" or "hit" whenever the text string entered in the text window 4063 matches any part of the title attribute value of an instance. It is as if "wild card" characters were on either end of the text string 4063 entered by the user.
In FIG. 22, the user enters "Dual" in the text window 4063 of the dialog window 4062 and clicks the "apply" button 4064. The entered text string appears in a text attribute display window 4061 next to the "title" attribute 4060. In the illustrated example, this action reduces the number of items found 4037 to thirteen.
Each navigational and search parameter setting step results in communication with the remote database server 4019, with the count of parts 4037 that currently satisfy the search criteria being displayed for the user, allowing the user to efficiently reduce the counts of parts 4037 being considered to a small, manageable number. For example, the initial number in parts available at the root class 4038 of the class hierarchy 4023 might be fifty thousand, with the user finally deciding to display ten to fifteen parts that satisfy his criteria after navigating to a class 4024 and setting one or more search parameters as described above.
The user then displays information about the matching parts, such as a text description, or other parametric attributes of numeric, enumerated, or Boolean types. This is done by clicking on a "display" tab 4022. Clicking the display tab 4022 results in a display shown in FIG. 23. An instance display window 4066 opens to show information about the instances returned which met the search parameters entered by the user. In the illustrated example, a sequential number 4067 is assigned to each instance. The part number 4068, title or description 4069, price 4070, and package type 4071 for each part is displayed. Additional information may be viewed by moving a scroll bar 4072. The order in which the parts are displayed may be changed by clicking a sort button 4074. For example, parts may be sorted based upon price 4070, or based upon package type 4071.
The information for a part might also be marked as having additional information associated with it on the World Wide Web. For example, the complete data sheet for a part, including all specifications, usage notes, and characteristics information, may be available as an HTML document, with its Universal Resource Locator ("URL") associated with the parts as one of its parameters. If an instance is selected and it has a URL associated with it, a "hot links" button 4075 will become active. The user may click on the hot links button 4075 to cause the browser 4014 to retrieve the HTML document, or download an applet in the form of executable content (for example, a circuit simulation applet to model the selected integrated circuit's performance). The user may choose to browse this associated information by choosing to view linked data, resulting in the launch of an instance of a Web browser with the URL. URLs may also be associated with any class, attribute, or standard attribute value within the knowledge base 4012. For example, a URL for an HTML document describing all of National Semiconductor's plastic integrated circuit package types could be associated with an enumerator for the attribute package type 4071. Selecting the option to view this linked data would launch the Web browser 4014 beginning at the URL, allowing the plastic package application notes to be viewed. Any of these associated URLs might also be Java applets, whose launch results in execution of the applet locally within the users Web browser 4014. For example, an output voltage attribute might have an associated HTML page containing an applet that interacts with the user, accepting various input parameters and dynamically graphing the resulting voltage or current curves representing device characteristics. This allows for interactive functionality associated with any database element to be delivered to the user on demand.
Finally, the user may decide to order a sample of a part. The user would choose an "order sample" link associated with the information displayed for a part, and an applet would run in the browser allowing the user to specify quantity desired, intended use, ordering and billing information. This information would be communicated using an executable content based remote procedure call mechanism to an application at National Semiconductor that would automatically verify and place the order for the user. An executable content based remote procedure call mechanism will be described in more detail below.
Referring to FIG. 23, an instance (or in this example, a part) may be selected, and detailed information about the instance (or part) may be displayed by clicking an information button 4073. An item information window 4076 shown in FIG. 24 will then be displayed. The item information window 4076 displays attributes 4077 in one column, and the associated attribute values 4078 in another column. A URL 4080 associated with this item may be shown, and a its value 4079 would be the actual uniform resource locator information for the hyperlinked HTML document, applet, or other information. Information, such as price 4081, may have a user ID dependent value 4082. The server 4013 may associate a particular price with predetermined destination information based upon the user's indicated Internet address, so that discount pricing information for preferred customers may be displayed as the value 4082 for the price attribute. Similarly, the currency may be converted to the user's local currency using the current exchange rate based upon the user's location indicated by the information sent with the user's query. In addition, the language used for the display could be selected based upon such information. If the user's origin information indicates that the current query comes from a user located in France, the display may automatically switch to the French language for the display of the query results.
The item information window 4076 preferably includes an outline display 4084 of the class hierarchy that the part resides in. The item information window 4076 may be closed by clicking an "OK" button 4083.
Referring to FIG. 19, searching may be further facilitated by providing a mechanism for locating classes by name. For example, a user may be looking for analog devices. He may be interested in finding any class that uses the word "analog" in the name of the class. A "find" button 4085 may be used for this purpose. When a user clicks on the find button 4085, a class name dialog window 4086 opens, as shown in FIG. 25. A text entry field 4087 is provided where the user may type in a character string to be used in a search of class names. The query results include an indication 4088 of how many classes were found corresponding to the text entered by the user. The user may view the results by alternately clicking a "find next" button 4089 and a "find previous" button 4090. The dialog window 4086 may be closed by clicking a close button 4091. Alternatively, the dialog window may be closed, and the user returned to the original class he had selected before performing the class search, by clicking button 4092.
At any point, a user may access context sensitive help by clicking a help button. 4094. A user may terminate the retriever client 5121 by clicking an exit button 4093.
An animated icon 4065 may be displayed in a preferred embodiment to identify to the user a particular type of executable content applet 4016.
The system described in application Ser. No. 08/339,481, filed Nov. 10, 1994, by Thomas S. Kavanagh, et al., for OBJECT ORIENTED DATABASE MANAGEMENT SYSTEM, (now U.S. Pat. No. 5,838,965), may be advantageously used for the knowledge base server 4013. Such a system, in conjunction with the present invention, may provide a parametric search engine that allows intuitive, definitive and virtually instant remote access to data based on parametric attributes; which is how customers and searchers typically think about the product or item for which they are searching. This interactive, intuitive search mechanism can be delivered over the World Wide Web, connecting server sites to customer client sites in a whole new, powerful way. The present invention is the first system to employ true client/server architecture where interactive calls are being made to a server during an applet session comprising executable content downloaded over the connection between the client and a server.
The present invention may be better understood in connection with the embodiment shown in FIG. 1. This illustrated embodiment employs a network 100 having a client/server architecture including a knowledge base server 132. The knowledge base server 132 is associated with and coupled to a knowledge base 123. A server host 109 may be designated to run the knowledge base server 132, with the software for the knowledge base server 132 and the knowledge base 123 preferably residing on a local disk drive 110. In accordance with the present invention, the server host 109 is preferably connected to a wide area network 2104. (See FIG. 7). In an especially preferred embodiment, the server host 109 is preferably connected to the Internet 5124, either directly or via the network 100. (The Internet is a specific example of a wide area network, and is believed to be the largest wide area network on Earth).
One or more knowledge base clients are connected to or otherwise able to communicate with the knowledge base server 132. In accordance with a preferred embodiment of the present invention, a knowledge base client 111 may be located at a remote location relative to the server host 109. Communication between the remotely located knowledge base client 111 and the knowledge base server 132 may occur via a communications circuit such as the Internet 5124. Preferably, the remotely located knowledge base client comprises an applet 5121, which includes a graphical user interface ("GUI") and an executable content client 5121 that runs as executable content under the control of a World Wide Web browser 5120, as shown in FIG. 5. The web browser 5120 includes a capability for executable content, such as a Java runtime environment. Referring again to FIG. 1, the network 100 may include knowledge base clients 112, 118, and 111, which are connected or capable of communicating with the knowledge base server 132 over the network 100. The network 100 may be a wide area network, in which case one or more of the knowledge base clients 112, 118, and 111 may be an executable content client 5121 that runs as executable content under the control of a browser having a capability for executable content, such as a Java runtime environment, suitable browsers including version 3.0 or above of Netscape Navigator.TM. or Microsoft Internet Explorer.TM.. The network 100 may be a local area network, in which case one or more of the knowledge base clients 112 and 118 may be machine specific local applications, suitable examples of which are described more fully in application Ser. No. 08/339,481, filed Nov. 10, 1994, by Thomas S. Kavanagh, et al., for OBJECT ORIENTED DATABASE MANAGEMENT SYSTEM, now U.S. Pat. No. 5,838,965.
A Krakatoa proxy server 5128 is used to facilitate transfer of information between a remote client 111 communicating over the Internet 5124 and the knowledge base server 132. The Krakatoa server 5128 serves as a proxy between an HTTP server 5127 and the knowledge base server 132. In the embodiment described herein, the Krakatoa proxy server 5128 runs on the same host 106 as the HTTP server 5127, for reasons which may be better understood in connection with the detailed description of the operation of the Krakatoa proxy server 5128.
Detailed Description of a Krakatoa Proxy Server
A Krakatoa proxy server 5128 is a multi-threaded server that simultaneously services requests from multiple clients 5121 that are concurrently connected. The server 5128 has the ability to provide direct connection through a communication circuit 5124, the Internet being the preferred communications circuit 5124, as well as the ability to provide a simulated socket using the hypertext transfer protocol, sometimes referred to as the "http protocol." Information concerning the hypertext transfer protocol may be found in T. Berners-Lee, et al., The Hypertext Transfer Protocol--HTTP/1.0 (1995), the entire disclosure of which is incorporated herein by reference. The http protocol provides a mechanism that transfers a single document for each connection made. The proxy server 5128 works with a tunneling agent 5129 that encapsulates the protocol data for movement as a document through the http protocol. The proxy server 5128 maintains information about each client session to provide the illusion of a continuous session, despite the use of individual connections for each remote procedure call ("RPC") data exchange with the client 5121.
The proxy server 5128 handles the multiple concurrent connections by establishing a Java thread for each client connection that is being processed. The connection mechanism is illustrated in FIG. 12. Item 5000 shows the operation beginning by listening to a selected port on the server that is running the proxy server code. When a connection is established in 5001 with a client 5121 on a remote computer via a connection channel like the Internet 5124, the proxy server 5128 creates a thread in 5002 to handle the client connection, and then continues to listen to the port for another connection with another client computer.
The process for the client connection in step 5002 is described in more detail in FIG. 13A and FIG. 13B. The thread starts at step 5009. The thread begins by reading from the communications connection a stream of bytes in step 5010. The stream of bytes is formatted to include a header 5110, a body of data 5111, and a trailer 5112, shown in FIG. 9. The header 5110 and the trailer 5112 are of known size and pattern to both the client 5121 and the server 5128. Details of the header 5110 are shown in FIG. 11, and details of the trailer 5112 are shown in FIG. 10. The packet format described herein provides a mechanism to allow variable length packets 5113 to be transferred. The data byte count field 5106 of the header 5110 describes the length of the data field 5111 of the packet 5113. The header byte count plus the data byte count 5106 plus the trailer byte count constitute the length of the packet 5113. The packets expected by this thread are a type referred to as a "call packet", and are identified by an appropriate code in a packet type field 5102. The decoding of the packet header 5110 described in step 5011 of FIG. 13A comprises the steps of determining the packet length using the data byte count field 5106, validating that a packet 5113 is recognized as a call packet using information in the packet type field 5102, and validating the magic number field 5100. If the header 5110 is found to contain an error, then an exception is thrown in the Java language, which invokes the language's exception mechanism.
When an exception is caught in step 5013, a terminate sequence is initiated at step 5022. The terminate sequence is further described in FIG. 13B, beginning with the correspondingly numbered step 5022. The connection with the client 5121 is closed in step 5025. This causes the communication circuit that was established in step 5001 to be broken, and all communication with the client 5121 that established the connection will be discontinued. Following the termination of the connection, the thread that is processing the connection dies in step 5028. The processing for that client 5121 is completed in step 5030.
Referring to FIG. 13A, in the normal case where a packet header is found to be correct in step 5012, the process continues in step 5015 with the retrieval of the data portion 5111 of the packet 5113 from the communication circuit. If the correct number of bytes are retrieved from the communication circuit in step 5015, then in step 5016 a decision is made to continue processing in step 5019. If the byte count is incorrect, then an exception is thrown in step 5017, and termination processing is initiated in step 5022. Termination processing continues with steps 5022, 5025, 5028 and 5030 as described above with reference to FIG. 13B.
Referring to FIG. 13A, if a packet 5113 has the correct number of bytes in the data portion 5111 of the packet, then the trailer 5112 is read from the stream in step 5019. Processing continues, as indicated by reference numeral 5020 shown in FIG. 13A and in FIG. 13B. The trailer 5112 of the packet is then verified in step 5023 to determine that all of the data has been transferred from the client 5121. The trailer 5112 is considered to be correct if the magic number 5109 of the trailer matches a corresponding number specified by the protocol. Of the trailer 5112 is found to be incorrect in step 5023, then an exception is thrown in step 5024, and termination proceeds in steps 5025, 5028 and 5030 as previously described.
If the trailer 5112 of the packet is found to be correct in step 5023, the packet 5113 is decoded in step 5026 to determine what action is to be taken by the server 5128 on behalf of the client 5121. A call identifier or call number 5103 is extracted from the packet header 5110 in step 5026, and processing continues with step 5027 to determine what arguments are required for this remote procedure call. The arguments are marshaled in an agreed upon order by the client 5121 and the proxy server 5128, meaning that the client 5121 places the arguments into the stream of data 5111 that is being handled by the communication circuit, and the server 5128 removes the data 5111 from the stream in exactly the same order, using the same data types that the client 5121 used to place the data into the data stream. This is referred to as marshaling. When the argument marshaling has been completed in step 5027, the signature of the call is checked in step 5029 to determine if it is appropriate to proceed with the actual remote procedure call to the server 5128 in step 5031. If the signature is found to be incorrect in step 5029, then the server 5128 proceeds to terminate the connection by throwing an exception in step 5032, and beginning the termination process by proceeding to step 5025. Termination proceeds with steps 5025, 5028 and 5030 as previously described.
A flow chart for the process employed for signature checking is shown in more detail in FIG. 14, and will be described later. Referring to FIG. 13B, if the signature is found to be correct in step 5029, then the actual call to the Krakatoa server 5128 is made in step 5031. In performing step 5031, the Krakatoa server 5128 will typically make a call to one of the PMX servers, i.e., the knowledge base or database server 5130, the registry server 5132, or the license management server 5133. After the call has been performed in step 5031, detailed error information is collected in step 5034 to indicate the success or failure of the operation. The error data is prepared for return to the client 5121 in step 5034. In step 5035, if the error information collected and processed in step 5034 indicates that the remote procedure call was a success, then the resultant data is retrieved in step 5038. The data is then sent back to the client 5121 in step 5036. If the error information indicates that the call was unsuccessful, step 5036 is performed as described more fully below.
FIG. 16 shows in more detail the method performed in step 5036 to send information back to the client. The illustrated method begins with step 5135. In step 5136, a reply packet 5113 is constructed. The packet 5113 is marked as a reply packet in the packet type field 5102, the header magic number 5100 is inserted, the call number 5103 and call version 5104 are added, and the number of bytes of the reply that is made up of the error data 5111, and the return data 5111, if present, is set as the data byte count in field 5106. Step 5136 is completed by writing the packet header 5110 into the communication circuit. In step 5137, the data bytes 5111 that constitute the reply to the client 5121 are written into the communications circuit. In step 5136, the packet trailer 5112 is created and marked with the trailer magic number 5109, and written into the communication circuit. The packet 5113 is now complete, and is sent in step 5139. At this point, the server thread has finished sending the reply, as indicated by step 5140. Returning to step 5036 shown in FIG. 13B, the server thread proceeds to return to the start operation in step 5009 (see FIG. 13A). The server thread is now ready to read additional bytes from the stream and process the next request from the client 5121.
In the event that the client 5121 decides to terminate the connection without issuing a specific logout operation, rather, the client 5121 proceeds to close the communication circuit without warning to the server 5128, the server 5128 receives what appears to be an erroneous packet header in steps 5010, 5011, and 5012. This causes the server thread that was processing remote operations on behalf of the now non-existent (i.e., disconnected) client 5121 to throw an exception in step 5013 and begin termination proceedings in 5022, as described previously.
The signature checking mechanism indicated as step 5029 in FIG. 13B is shown in more detail in FIG. 14. Referring to FIG. 14, signature checking begins at step 5050. The first step 5051 involves extracting bytes of information from the data stream provided by the communication circuit. If the stream completed the read successfully, as determined in step 5052, then the number of arguments are checked in step 5053 to determine if the count is correct. If the number of arguments are correct, a determination is made whether to translate certain arguments in step 5054.
If the read of the arguments fails in step 5052, or the argument count is determined to be incorrect in step 5053, then the processing continues at step 5061, wherein the signature is declared as incorrect. Processing continues to step 5032 shown in FIG. 13B.
In step 5054, if certain arguments are determined to be arguments that should be translated, then the arguments are handles used to simulate a persistent session. The handles are translated in step 5055 by looking up a reference given by the client 5121, and translating it to the corresponding handle that is used by the database server 5130. In step 5059, the result of the translation is examined, and the result is stored in step 5056 if the result was correct. If step 5059 determines that the translation failed, error information is generated in step 5060, and processing continues with the declaration of a bad signature in step 5061. In step 5054, if the argument does not require translation, the operation proceeds directly to the storing of the argument in step 5056.
At the conclusion of step 5056, a determination is made in step 5057 concerning whether more arguments need to be extracted from the data stream. If so, the processing continues by returning to step 5051 again. In step 5057, if all of the arguments have been extracted from the stream, then processing continues to step 5058. In step 5058, the data stream is checked to determine if the stream is now empty. If it is not, then extra data has been supplied, and the signature of the requested operation is declared incorrect in step 5061. In step 5058, if the data stream is found to be empty, the process continues to step 5062 where the signature is determined to be correct. The process then returns to step 5031 shown in FIG. 13B.
The error detection mechanisms described in the proxy server 5128 that caused the termination of the connection with the client 5121, and the termination of the thread that is servicing the client 5121, are mechanisms unique to a proxy server 5128 according to the present invention. The model that is used provides protection against rogue clients that may attempt to prevent service to other clients. If a particular first client 5121 attempts to cause the proxy server 5128 to deny service to other clients, the proxy server 5128 destroys the thread that is servicing the first client 5121 that made the rogue request. The described implementation is designed to prevent a first client 5121 from interfering with or affecting a thread that is servicing a second client, and at most, a first client 5121 may deny service to itself by causing its own thread to be terminated, but may not affect any thread that is not servicing the first client 5121.
Typical attempts to deny service involve inflating the data byte count 5106 to cause the proxy server 5128 to allocate all of available memory. Internal limits placed on packets of "call packet" type cause the thread to terminate the transaction, and any further processing of that thread. Any error in protocol, as shown earlier, causes the termination of the thread. The Java programming language allows the enforcement of the error handling cases through the exception model. Java is the preferred implementation language for this type of mechanism. Other languages could implement this model; however, other compilers may not enforce the error handling cases, as the Java language does. Java also provides runtime checking of the types that are being used in each method operation, including, but not limited to, array bounds checking. A rogue client cannot force a Java program to use data that is outside of the bounds of an array, with the intent of spoofing the program into doing an illegal operation, or crashing altogether.
HTTP Simulated Sockets
When an application attempts to setup a client/server communication circuit, in an environment such as the Internet 5124, there are instances where mechanisms exist to prevent the connection from being completed. These prevention mechanisms are known to those skilled in the art as "firewalls." The firewalls consist of hardware and software whose express purpose is to control the flow of information going through the firewall mechanism. FIG. 5 illustrates a first firewall, or client-side firewall 5125, and a second firewall, or server-side firewall 5126. The firewalls 5125 and 5126 accomplish their purposes by controlling the ability to perform incoming or outgoing connections to specific addresses. In practice, operators of these firewall mechanisms typically are not easily persuaded to change their connection policy. As a result, additional measures are required to establish client/server communication in these environments.
Many of the installations that use such firewall techniques allow the use of the http protocol to facilitate the use of the World Wide Web. This protocol is nearly universally allowed to operate through the firewalls 5125 and 5126. As a result, it is possible to request service from an http server 5127 at the serving site to provide information to a requesting entity 5123 at the client site. Since the http protocol is able to pass text information, a mechanism in accordance with the present invention can be used to perform a remote procedure call for a client 5121 that is executable content. The client 5121 must connect correctly, and manage the protocol correctly to make this mechanism work successfully.
The present invention uses a mechanism, referred to as "tunneling," as one feature to permit the http protocol to be used to transfer a RPC request and response data as plain text through the http servers 5127 and 5123. The present method employs a common gateway interface ("CGI") tunnel mechanism 5129 behind the http server 5127 to interpret a request, forward it, and encode a reply that is returned to an executable content client 5121. A CGI tunnel 5129 is invoked through a universal resource locator or URL that has attached arguments. The CGI tunnel 5129, once started, receives the arguments through a command line. The arguments are extracted by the CGI tunnel 5129 for transfer to a Krakatoa proxy server 5128 via a socket 5021.
Referring to FIG. 5, an applet 5121, comprising a graphical user interface and a client, runs as executable content under the control of a World Wide Web browser 5120. For purposes of the following discussion of how connections are established over a communications circuit 5124, the operation of the executable content client 5121 is of primary interest.
When the executable content client 5121 needs to request information, or perform a query or other function, a request is formatted or encoded as a standard request from a World Wide Web browser 5120 to run a CGI program. Of course, although the request appears to an http server 5127 on the other end of a communications circuit 5124 as having originated from the browser 5120, the request actually originates from the executable content client 5121. The executable content client 5121 generates a remote procedure call, and converts the remote procedure call from a binary form to a text form. The purpose of this conversion will be better understood in connection with the below discussion, but is generally performed so that the remote procedure call may be transmitted over the Internet 5124 using an http protocol.
In order to communicate the request to an http server 5127, it is necessary to establish a connection through the Internet 5124. The connection may optionally be established through a first http proxy server 5123, although a connection may be established directly without an intervening http proxy server 5123. The use of the first http proxy server 5123 is determined by the browser 5120, and is outside of the control of the executable content client 5121.
In the illustrated example, the Internet 5124 is used to complete a communication circuit by routing the request to a second http server 5127 that is identified in the requested URL. However, it should be understood that use of the Internet is not required, and a request could be routed to the http server 5127 over a wide area network, or a local area network. The request from the executable content client 5120 that is addressed to the http server 5127 may be routed through a first firewall 5125 and a second firewall 5126 using http protocol. The first and second firewalls 5125 and 5126 are typically configured to allow the operation of http protocol through the Internet 5124. The second http server 5127 interprets the URL received from the executable content client 5121 to determine what action to take. In the present example, the URL is formatted as a request to run a CGI program, and a tunnel 5129 is invoked to run as a CGI program. The tunnel 5129 takes an argument portion of the URL received from the executable content client 5121, and blindly converts the argument from text to a binary form. The tunnel 5129 does not attempt to interpret the argument. However, the conversion performed by the tunnel 5129 places the data back into the form of a remote procedure call that can be executed by a Krakatoa proxy server 5128.
At this point, it is necessary to pass the now converted remote procedure call data to the Krakatoa proxy server 5128. The CGI tunnel 5129 is preferably constructed so that it will not allow the executable content client 5121 (and consequently any other external agent) to specify the address of a particular host to which the tunnel 5129 is to connect. This provides a measure of security to prevent hackers from mis-using the tunnel 5129 to penetrate the second firewall 5126. In accordance with a preferred embodiment of the present invention, the tunnel 5129 opens a socket associated with the "localhost," which by convention is usually the host having an Internet Protocol ("IP") address of 127.0.0.1. This provides an additional measure of security. For example, a client 5121 will be limited in the servers to which it could connect by virtue of the use of "localhost" as the socket for such communications. The tunnel 5129 writes the data comprising the remote procedure call to the socket 5021.
The Krakatoa proxy server 5128 listens to the socket 5021. The Krakatoa proxy server 5128 will, therefore, receive the data written to the socket 5021 by the tunnel 5129. The Krakatoa proxy server 5128 interprets this data as a remote procedure call, and executes the corresponding procedure. The Krakatoa proxy server 5128 may use a plurality of available servers 5130, 5132 and 5133 to execute the procedure call and thereby complete the request. The illustrated servers available to the Krakatoa proxy server 5128 include a knowledge base server 5130, a registry server 5032, and a license server 5133. From the standpoint of the servers 5130, 5132 and 5133 associated with the knowledge base 110, the Krakatoa proxy server 5128 functions as a client. The Krakatoa proxy server 5128 generates API calls to the servers 5130, 5132 and 5133 associated with the knowledge base 110. The Krakatoa proxy server 5128 functions as a proxy between one protocol and another. It serves as a proxy between a protocol in the form of RPC calls from the tunnel 5129, and a protocol in the form of API calls to the knowledge base server 5130, and other servers 5132 and 5133 associated with the knowledge base 110.
The CGI tunnel 5129 takes as its arguments the request that is being made of the Krakatoa proxy server 5128. In a preferred embodiment, the arguments are encoded so that all of the bytes in the request are ASCII text characters. The transformation is preferably performed by splitting each byte into two 4-bit entities, and adding the entity to an upper case ASCII "A" character. Thus, a 4-bit entity that represents "0" becomes an "A", a "1" becomes a "B", and so forth. This transformation is faster than attempting to transform the data into an ASCII hex representation of the data, since a like transformation can be applied at the packets' destination.
A flow chart of the method performed during operation of the CGI tunnel 5129 is depicted in FIG. 15. The tunnel method is started with command line arguments in step 5070. The next step 5071 in the method is capturing an http command line argument. The argument (which is an encoded packet) is then decoded in step 5072, by reversing the algorithm described above (by subtracting an uppercase "A" from each character and then combining pairs of four-bit entities to form one byte). The CGI tunnel 5129 then connects to the Krakatoa proxy server 5128 in step 5073, so that the request can be forwarded to the Krakatoa proxy server 5128. This connection is made via socket 5021, as described more fully in connection with FIG. 5. Once the connection is established, the CGI tunnel 5129 writes the decoded request bytes of data to the Krakatoa proxy server 5128 in step 5074. After sending the data to the Krakatoa proxy server 5128 via the socket 5021, in step 5075 the CGI tunnel 5129 reads from the socket 5021 to obtain a response from the Krakatoa proxy server 5128. In step 5076, the response is then encoded by the CGI tunnel 5129, in the manner described above in connection with the transmission of packets from the client to the proxy, and prepared for transmission back to the executable content client 5121. A content-type identifier is sent to the second http server 5127 (which invoked the CGI tunnel 5129) in step 5077, to notify the second server 5127 what type of reply to send to the executable content client 5121. The content type indicates to the second http server 5127 that the stream of data that is being returned is plain-text. It will be understood that, although the packet data is indicated as being plain-text, the actual data has been encoded as previously described (binary data is converted to text) in step 5076. The encoded data is then sent to the second http server 5127 in step 5078, and the connection to the Krakatoa proxy server 5128 is closed in step 5079. The method ends at step 5080.
Client Interaction With The Karkatoa Proxy Server
The client's 5121 interaction with the Krakatoa proxy server 5128 follows a protocol very similar to the operation of the proxy server. The client portion of the applet 5121 manages the transfer of information between the client applet 5121 (or use of the information transferred), and the Krakatoa proxy server 5128.
The executable content client 5121 begins operation when the client applet 5121 requests an operation. The executable content client 5121 is capable of packaging a request for service that is ultimately intended to be directed to the knowledge base server 5130. The request is delivered to the knowledge base server 5130 through the Krakatoa proxy server 5128. The executable content client 5121 communicates with the proxy server 5128, the preferred method being via the Internet 5124. If the connection is not established through the Internet 5124, then alternate communication circuits may be employed as described previously.
When the request is made by the executable content client 5121, the client 5121 forms a request to the proxy server 5128 by creating a new "call packet". A general form of a packet 5113 is shown schematically in FIG. 9. The illustrated example may either be a call packet or a reply packet, or possibly other types of packets that may optionally be employed in a particular implementation. The general structure for a packet 5113 will first be described in the context of a call packet example. The call packet 5113 contains a header 5110, a data field 5111, and a trailer 5112. These together constitute a call packet or request packet 5113. The packet header 5110 is shown in more detail in FIG. 11. The packet trailer 5112 is shown in more detail in FIG. 10.
In the example of a call packet, the packet 5113 must be identified as a call packet. Referring to FIG. 11, such identification is accomplished by placing an appropriate code in a packet type field 5102 of the packet header 5110.
The operation to be performed by this call to the proxy server 5128 is identified in the packet header's call number field 5103. The version of the call interface is identified in a call version field 5104. The packet header 5110 includes a magic number field 5100. The magic number field 5100 is used to identify the beginning of the packet 5113. The magic number is a predetermined constant that has a particular bit pattern that is uniquely recognized as the beginning of a packet 5113. The header version field 5101 is used to identify the version of the packet header 5110 being used. A data byte count field 5106 describes the number of bytes contained in the data field 5111 of the packet 5113.
Referring to FIG. 10, the packet trailer 5112 contains a predetermined byte pattern in a trailer magic number field 5109 to identify the end of the packet 5113. The magic number is a constant that has a particular bit pattern that is uniquely recognized as the end of a packet 5113. In a preferred embodiment, the trailer 5112 also may include a checksum field 5108 that is applied to all bits from the beginning of the header 5110 up to the beginning of the trailer 5112. This checksum 5108 assists in detecting invalid packets 5113, and is especially useful in detecting errors in transmission.
A bit pattern may be selected for the magic number used in the magic number field 5100 of the packet header 5110 that is unlikely to otherwise occur during communication (in order to avoid erroneous recognition of a stream of data bits as the beginning of a packet header 5110). Similarly, a bit pattern may be selected for the magic number used in the trailer magic number field 5109 of the packet trailer 5112 that is unlikely to otherwise occur during communication (in order to avoid erroneous recognition of a stream of data bits as the end of a packet trailer 5112). However, neither is necessary. Preferably, the magic numbers are a binary pattern that is easy to recognize. The combination of a magic number for the header 5110, a magic number for the trailer 5112, and a data byte count field 5106 is used to determine whether a valid packet 5113 has been received, and it is considered to be highly unlikely that a random bit pattern would coincide to both magic numbers and be spaced apart the exact distance indicated by the value stored in the data byte count field 5106.
When making a call to the proxy server 5128, the client 5121 creates a packet 5113, loads a call identifying number into the call number field 5103, and places the arguments for the requested remote procedure call into the data field 5111. The client 5121 and the Krakatoa proxy server 5128 each recognize a predetermined set of remote procedure calls, each type of call in the set having a unique call identifying number 5103.
The packet 5113, including the arguments carried in the data field 5111, is converted to text in the manner described more fully above to be transported over the Internet 5124 as plain text, until the packet 5113 is reconverted back to its original form by the CGI tunnel 5129 after it reaches its destination. In a preferred embodiment, binary data is encoded to ASCII text. For example, `00h` is encoded as "AA", "01h" is encoded as "AB", and so forth with "0Fh" being encoded as "AP", and "FFh" being encoded as "PP".
The process for constructing a call packet is depicted in the flow chart shown in FIG. 17. The process begins, for the sake of discussion, with step 5200. The first step 5201 is to write the call packet header 5110, which is preferably in the form shown in FIG. 11. The packet header 5110 is transferred into a data stream for transmission over the communications circuit.
Arguments are transferred into the stream at step 5202 in the following manner. Integer arguments are preferably converted into four 8-bit bytes. Floating point numbers are preferably transferred as 4 bytes. The transfer order of the bytes is not critical, so long as the client 5121 and the proxy server 5128 use the same ordering technique. Arrays of numbers are preferably transferred as an integer count, followed by the number of items that are indicated in the count field. Strings are preferably transferred in the same manner. Complex data structures can be transferred by using these techniques to transfer the component parts of the complex structure.
After transferring the arguments to the call, the packet trailer 5112 is appended to the data stream in step 5203, and the stream is sent to the proxy server 5128 in step 5204. The request portion of the client's call is now complete in step 5206.
Referring to FIG. 18A, the client 5121 then waits for a reply from the proxy server 5128 in step 5207. The client 5121 begins the process described in FIG. 18A by reading from the connection that it has established with the proxy server 5128. The read is performed in step 5208. The client 5121 reads a packet header 5110 in step 5208, and expects to find a packet header 5110 that is a header for a reply packet. The decode process in step 5209 looks for a matching call number 5103, call version 5104, and a packet type 5102 that indicates that the packet 5113 in this example is a reply packet. In step 5210, the packet header 5110 is examined to determine whether it is a valid packet header. If the header 5110 is found to be invalid, then an exception is thrown in step 5211 back to the client 5121, and the communication with the proxy server 5128 has failed. The process terminates in step 5212. If the header 5110 decodes correctly in step 5209, then the client continues to read the data field 5111 of the packet 5113 in step 5213. The length of the data field 5111 is checked against the length specified by the data byte count field 5106 of the header 5110 in step 5214. If the number of bytes in the stream does not match, in step 5215 an exception is thrown back to the client 5121. The process terminates in step 5212.
If the number of bytes in the data field 5111 is correct as specified by the data byte count field 5106 of the header 5110, then processing continues at step 5217 where the packet trailer 5112 is read. The process continues from FIG. 18A to FIG. 18B, as indicated by common reference numeral 5218.
Referring to FIG. 18B, the trailer 5112 is examined to determined if it is correct in step 5220. If a trailer 5112 is used to ensure that all of the packet 5113 was received from the proxy server 5128, it marks the end of the transfer. If the trailer 5112 is found to be in error in step 5220, then an exception is thrown back to the client 5121 in step 5221. The process terminates in step 5212.
If the trailer is complete, then the transfer is complete, and processing of the contents of the data field can proceed at step 5222. The first thing that is preferably contained in the data field 5111 of a reply packet 5113, is error reporting information. This error information is used to indicate the success or failure of the requested operation. The error information is extracted in step 5222, and is examined in step 5224. If a failure is indicated by the error information in step 5224, then in a preferred embodiment no data follows in the packet 5113. The failure is reported back to the client 5121 by the throwing of an exception that indicates the requested remote operation failed in step 5225. Failure is usually caused by incorrectly specifying the arguments to a requested function or remote procedure call. The user is notified of the error in step 5230.
If, in step 5224, the error code indicates that no error occurred, then the process of extracting the bytes from the data field 5111 continues in step 5226. As the bytes are extracted, in a manner similar to the handling of arguments in the call packet discussed earlier, an object is constructed for use by the client 5121 in step 5227. The object contains data, and may contain methods to access individual data elements. The object may also contain methods which cause actions to additional operations to be performed by the proxy server 5128.
Once this object has successfully been created from the available data, it is returned to the caller 5121 in step 5228. The client operation is complete at step 5229.
In a preferred embodiment, the packet header 5110 may include a client sequence number 5105. As the executable content client 5121 makes calls to the proxy server 5128, each packet sent is given a sequence number 5105 that is incremented by the client 5121 for each call. If a particular packet is delayed or lost in transmission, the proxy server 5128 can use the sequence number 5105 to determine that a call was missed or is missing, or a packet 5113 was received out of sequence. The proxy server 5128 may request retransmission of the missed packet or call, or alternatively return an error code to the client 5121.
A client ID filed 5107 may be used in the packet header 5110 for purposes of identifying the client 5121 that originated a packet 5113. Such information may make it easier to administer multiple connections with less overhead. Alternatively, the proxy server 5128 may establish a table and give each client 5121 establishing a connection a handle, or otherwise keep track of the different clients that have established a connection. A unique client ID filed 5107 may be used as a code to identify registered users, or to identify that a connection being made is the same client 5121 that was previously disconnected, and previous query results may be retrieved for that client 5121. Alternatively, the client ID filed 5107 may be used to display predetermined information intended for a particular user, such as discount pricing for a preferred customer, as described above in connection with FIG. 24.
The Krakatoa proxy server 5128 preferably performs connection management when simulated sockets are used. The proxy server 5128 keeps track of connections, and "ages" the connections. If the executable content client 5121 does not communicate with the proxy server 5128 within a predetermined amount of time, it will "time out". When a connection between the proxy server 5128 and the client 5121 times out, the proxy server 5128 will close an associated connection between the proxy server 5128 and the knowledge base server 5130 to free resources held by it, such as queries, query results, and so forth. In addition, the proxy server 5128 will close an associated connection between the proxy server 5128 and the license server 5133 to free resources, such as licenses allocated to the connection. A similar action occurs with respect to the registry server 5132.
The above discussion has been with reference to an embodiment using what may be referred to as "Java tunnel mode." Alternatively, a mode of operation that may be referred to as "Java direct mode" may be used. On direct mode, connections are preferably managed so that a user can only connect back to the same IP address as the user's IP address.
In the example illustrated in FIG. 5, requests to the proxy server 5128 are accomplished through a firewall 5126 via an http server 5127. In a typical network, a firewall 5126 will permit connections through a port associated with http connections, such as port 80. If no firewall 5126 exists between the executable content client 5121 and the proxy server 5128, a direct connection may be established between the browser 5120 and the proxy server 5128. For example, if the communications circuit between the browser 5120 and the proxy server 5128 is a local area network, the browser would typically be on the same side of a firewall 5126 as the proxy server 5128, if the network had a firewall 5126. In other words, there would be no firewall 5126 between the executable content client 5121 and the proxy server 5128, and a direct connection would be possible. The proxy server 5128 may listen to a port that is designated for direct connection to the proxy server 5128. On addition, users with certain privileges or security clearance may be allowed to connect through a hole in a firewall 5126 that is provided for a port that is specifically designated for connection to the proxy server 5128. (A firewall 5126 controls which ports are allowed for connections through the firewall 5126.) The http server 5127, the CGI tunnel 5129, and the socket 5021 would not be required for such a direct connection.
Extended Queries
One feature of the present invention provides a mechanism for authoring extended queries based on the current selected class, or alternatively, based upon the owning class of the instance. The authoring of extended queries allows the formation of complex queries into the database that is currently in use, or even into another database. For example, it is possible to define a query from one subtree in a hierarchical object oriented knowledge base to another subtree in that hierarchical object oriented knowledge base. It is possible, using extended queries, to establish links between the attributes. It is also possible to do one-to-many cascading queries. A query can comprise a query that maps to any class in a knowledge base, including mapping a class to itself.
This feature may be better understood in connection with FIG. 26A, FIG. 26B and FIG. 26C. FIG. 26A is a schematic diagram of a hierarchical knowledge base having a root class 600. The knowledge base root class 600 has a section containing information about semiconductor components having a class 601. The knowledge base root class 600 also has a section containing information about vendors that starts with class 602. Alternatively, class 601 may be a root class for a first component knowledge base, and the vendor class 602 may be a root class for a separate vendor knowledge base. This is signified by the dotted lines 614 connecting class 601 to root class 600, and connecting class 602 to root class 602.
The components or parts class 601 has a plurality of subclasses 603, 604, 605 and 606. For example, the components knowledge base may have a "digital logic" class 603, a "discrete semiconductor devices" class 606, an "analog/linear" class 605, and a "display circuits" class 604. The "analog/linear" class 605 in turn is shown having a plurality of subclasses 607, 608 and 609. For example, the "analog/linear" class 605 has a "comparators" subclass 607, a "references" subclass 608, and a "standard linear" subclass 609.
The "standard linear" class 609 has a "data acquisition" subclass 610, a "regulators" subclass 611, a "references" subclass 612, a "comparators" subclass 613, and an "amplifiers & buffers" subclass 615. The "amplifiers & buffers" subclass 615 has a "buffers" subclass 616 and an "operational amplifiers" subclass 617.
The vendors class 602 has a plurality of subclasses 618, which in turn may have a plurality of subclasses 619 and 620, which may also have subclasses 621. FIG. 26A is intended to be a simplified diagram, and it will be appreciated that other classes may also exist, but are not shown for the sake of simplicity.
Referring to FIG. 26B, the semiconductor components information 601 shown in FIG. 26A may include attribute information, such as "internal part number" 622, "vendor ID" 623, "vendor part number" 624 and "title" or description 625. Additional attribute information is also included, but is not shown.
Referring to FIG. 26C, the vendor information 602 shown in FIG. 26A may include attribute information, such as "vendor code" 626, "vendor part number" 624, "vendor contact" 627, "address" 628, "vendor name" 629, "sales office locations" 630 and "dealers who carry this vendor's merchandise" 631. Additional attribute information may be included, but is not shown.
An extended query could link a "vendor ID" attribute 623, for example, to a vendor knowledge base root class 602. The results of an extended query, for example that includes a particular vendor ID 623, would have a link or other mechanism for displaying to a user information from the vendor knowledge base 602, such as the vendor contact person 627 for more information about the part, the vendor's address 628 if the user wanted to write for more information, the vendor's sales office locations 630 (if the vendor sells direct), or the identity of dealers who carry this vendor's merchandise 631 (if the vendor sells through dealers). A graphical user interface may display an icon or task bar that a user may click on to access information from an extended query.
Extended queries may cascade. For example, an extended query to determine the sales office 630 nearest to the user's office that will accept fax orders and is open on Saturdays could be created. An extended query linking information about the dealers 631 could also exist.
An extended query wizard method is preferably used for construction of extended queries. The extended query wizard may be better understood with reference to FIG. 27. An extended query wizard window 632 is displayed on the user's display 119. The user has the option of adding a new extended query 633 or editing an existing extended query 634. In the illustrated example, the user selects the desired option by clicking on a button 633 or 634. The user may cancel the operation by clicking on a cancel button 637. To proceed, the user clicks on a "next" button 635. A user is also presented with an option of going "back" 636, which button 636 is greyed if it is not available in a particular context.
FIG. 28 shows the next window 638 presented to the user. The user is allowed to label each instance of an extended query, and a label input field 639 is provided in a window. This label 639 may enable the user to find the extended query at a later time, and the user can give the extended query a label that is meaningful to the user. The label 639 need not be unique. Extended queries are identified externally by system generated handles. Like attribute names, extended query labels are not required. Extended quries are inherited from the class where the extended query is defined, similar to the way that attributes are inhierited. The user may also enter a detailed description of the extended query in an extended query description field 640.
FIG. 29 shows the next window 641 displayed to the user when the user clicks the "next" button 635. The label 639, and the description 640, entered by the user are displayed. The user is presented with an option of selecting the desired class for running the query 642, or to use the owning class of the instance when running the query 643. This selection is preferably made by clicking on radio buttons 642 or 643, as shown.
If the user selects the option of selecting the class for running the query 642, and clicks on the "next" button 635, the window 644 shown in FIG. 30 is displayed. In order to allow the user to perform extended queries linking a plurality of knowledge bases, the user is presented with a knowledge base selection window 645, where the user selects from among the available knowledge bases by clicking or highlighting the desired knowledge base 650. If the number of knowledge bases that are available exceed the number that may be displayed at one time in the knowledge base selection window 645, a scroll bar 647 is provided to enable the user to view all of the available knowledge bases.
A class selection window 646 is provided that displays available classes in the selected knowledge base 650. Only opened classes 651 and subclasses 652, 653, 654 and 649 of opened classes 651 will be displayed. A user may open each displayed class by double-clicking on the class 649, in order to navigate the class hierarchy to reach the desired class 649. A scroll bar 648 is provided to allow the user to view long class names 654 that exceed the size of the class selection window 646. When the user clicks on the "next" button 635, a window 655 shown in FIG. 31 will be displayed.
FIG. 31 shows a query construction window 655. The selected knowledge base 650 and label for this extended query 639 are preferably displayed for the user's reference. The attributes 656 to be used in the extended query are displayed in a first attribute display window 657. The attributes 658 to be mapped in the extended query are displayed in a second attribute display window 659.
The operators or selectors that are selected to be used for mapping in the extended query are displayed in an operator display window 660. The user adds a new operator or selector by clicking on an "add new selector" button 664. The user may be presented with a list of available operators in an operator or selector display window 667, or alternatively, the user may type in a desired selector. If a user wants to edit or modify an extended query, the user may select an operator 663, and then click on a "remove selected selector" button 666 to remove the selected operator 663.
A user may construct an extended query by selecting an attribute 661 in the first attribute display window 657. The user then selects an attribute 662 in the second attribute display window 659. The logical operators to be used in the query are selected, and displayed in the operator display window 660. When the extended query has been built, the user completes the process by clicking on a "finish" button 665.
For example, a user who is performing queries on a first knowledge base 601 obtains search results that provide a vendor part number 624, and the user wishes to perform an extended query linking a second knowledge base 602 to obtain vendor information relating to that part number 624. The user may select the part number attribute 661 in the first attribute display window 657, select part number in the second attribute display window 659, and select the operator to be "equals" 663. Then, when the user performs a query in the first knowledge base 601, and selects view search results, the user would be presented with a search results window 670, an example of which is shown in FIG. 50. A button 671 or other graphical selection mechanism (or a menu) may be displayed to the user, which is identified with the user specified label 639. By clicking on the button 671, the user will then be able to view the associated information for a corresponding selected part 672 in the vendor knowledge base 602 based upon the extended query.
As noted above, a class 649 may be mapped to itself, if desired. Referring to FIG. 31, an extended query may be built to determine replacement, upgrade, and/or downgrade parts. For example, to be a replacement, an attribute such as the number of pins may be selected, and an operator selected so that this parameter must be equal for another instance to qualify as a replacement part. A parameter such as breakdown voltage may be selected and set so that this parameter must be greater than or equal to the selected attribute in the first attribute display window 657 in order for another instance to qualify as a replacement part. An attribute such as slew rate may be selected to be less than or equal in order for another instance to qualify as a replacement part.
As another example, the selected class 649 may be a carbon resistor subclass for a parent class of resistors. Instances in the resistor class may have a tolerance attribute that is an enumerated attribute having possible values of 10%, 5%, or 1%. The selected class 649 for the initial query is the subclass of carbon resistors that have a corresponding tolerance attribute in the first attribute display window of 10%. The user may be interested in building an extended query that would include not only carbon resistors, but also metal film resistors and others, to consider upgrade parts if the price and availability information for such upgrade parts are acceptable. To be an upgrade, the enumerated values of 5% and 1% could be selected in the second attribute display window 659 for the tolerance attribute.
In FIGS. 27-31, a user's input may also be via a keyboard 121. For example, in FIG. 27 the radio button 633 includes an associated label "Add New Extended Query." The initial "A" is underlined to indicate to the user that the associated option 633 may be selected via the keyboard 121 by pressing the ALT-A keys. Optional keyboard input may be accomplished by highlighting the currently selected option, cycling through available options in response to the Tab key, and interpreting a Space-Bar input as a "mouse click." Those skilled in the art will appreciate that optional keyboard input may be facilitated in a number of ways, but preferably in a manner that is consistent with a Windows interface so that experienced Windows users may immediately recognize how to use the keyboard 121 for input.
Configurable Graphical Action Bar
A unique feature of a user interface in accordance with a preferred embodiment of the present invention includes what may be referred to as a "configurable graphical action bar." The configurable graphical action bar is available for use by a searcher to more conveniently utilize extended queries, or display the results of an extended query based upon the current search results.
Extended queries are given a textual name 639 (see FIG. 29) and an optional graphic file for presentation to the user. The present invention takes this information and builds an action bar at the bottom of each view results screen. Thus, it becomes a configurable, class-dependent query that is presented to the user at the level of the classification hierarchy that is appropriate. The action bar also contains extended queries appropriate for the current class. In addition, the action bar contains default actions for "close", "page next 10", "page previous 10", "sort", and "item information" (abbreviated as "item info."). In a preferred embodiment, these items always appear on the configurable graphical action bar.
A user then selects the appropriate action from the bar. The system performs the extended query and displays the results in a new window. The current instance information is displayed followed by the extended query information. Another action bar appears at the bottom of this display which contains additional, possible extended queries. This action bar contains default actions for "close", "page next 10", "page previous 10", and "item info." These default actions preferably always appear on a configurable graphical action bar.
1. Authoring Component (URL Wizard)
One feature of the present invention provides a process or mechanism for building parameterized URLs based on the current class. The authoring of such URLs allows the formation of complex URLs from templates that are filled in with knowledge base information from a currently selected instance. The parameterized URLs are given a textual name or label and an optional graphic file that may be used, for example, to display an icon for presentation to the user on the user's display 116.
Parameterized uniform resource locators or dynamic URL links are preferably built using a URL wizard process. The URL wizard process may be explained in connection with FIG. 32. FIG. 32 shows an example of a screen displayed when the URL wizard process is initiated. A URL wizard window 675 is opened, and the user is presented with the option of building a new dynamic URL 676, or editing an existing dynamic URL 677. The user selects the desired option 676 or 677 by clicking on the associated button 676 or 677 with the user's mouse 117.
If the user decides to cancel the URL wizard process, the user may do so by clicking on a "cancel" button 678. After the user has indicated the desired option 676 or 677, or the user decides to accept the default option, which is preferably the option of building a new parameterized URL 676, the user proceeds to the next step in the URL wizard process by clicking on a "next" button 680.
A "back" button 679 is provided for allowing the user to go back to the immediately previous screen. In the case of a first URL wizard window 675, the back button 679 may be greyed to indicate that it is not currently operational or does not apply to this window 675. Optionally, in an executable content client 5121, the "back" button 679 may be operational in the first URL wizard window 675 to go back to the previous screen, and have the same effect as a cancel button 678.
If the user clicks the "next" button 680 in FIG. 32, the URL wizard process opens a URL label window 681, as shown in FIG. 33. Referring to FIG. 33, a first field 682 is provided for entering a label 686 for the dynamic URL that is being built. A second field 683 is provided for the entry of a description of the dynamic URL that is being built. A third field 684 is provided to allow the user to specify a path to an optional graphic file to be displayed by the executable content client 5121 as an icon to click on to invoke the dynamic URL that is being built. A "browse" button 685 is also provided. The user may click the "browse" button 685, and browse directory folders to locate a desired graphic file. Once the desired file is located in this manner, if the user clicks on the file name, the directory path information will automatically be entered into the third field 684. When the user has completed entry of this information, the user clicks the "next" button 680. Alternatively, if the "next" button is highlighted, the user may hit the Return or Enter key on his keyboard 122.
FIG. 34 shows the next window 687 displayed in the URL wizard process. A URL prefix field 688 is provided for entry of basic information concerning the dynamic URL that is being built. The URL information entered in the URL prefix field 688 is the part of the URL being built that is not dynamic.
A substitutable URL parameter window 689 is provided to display the parameters that may be substituted in this parameterized URL. In this example, the knowledge base name 691, instance handle 692, user login name 693, and part number 694 may all be dynamically changed to effectively accomplish extended queries of remotely accessible knowledge bases 4012 over the Internet 5124.
A URL prefix template window 690 is provided to aid in building the dynamic parameterized URL. When the entry of information required in FIG. 34 has been completed, the user may click on the "next" button 680 with his mouse 117.
FIG. 35 shows the final window 695 that opens in a preferred URL wizard process. A substitutable URL parameter window 696 is provided to display the parameters that may be substituted in this parameterized URL. A URL prefix template window 697 is also provided. When the process has been completed, the user clicks on a "finish" button 698. The final window 695 closes, and the dynamic URL is built.
2. Krakatoa Configuration Graphical Action Bar
One significant feature of the present invention provides a process or mechanism for using dynamic parameterized URLs with an executable content client 5121. Building such URLs allows the formation of complex URLs from knowledge base data. The parameterized URLs are given a textual name or label and an optional graphic file that may be used, for example, to display an icon for presentation to the user on the user's display 116. FIG. 40 shows an example of a display screen 701 having a configurable graphical action region or bar 700. The dynamic parameterized URL information, including the textual name and associated graphic file, for each dynamic URL is used to build a configurable graphical action bar 700, which is preferably displayed at the bottom of each view results screen 701 displayed by the executable content client 5121. This produces a configurable, class-dependent, dynamic URL represented by a hyperlinked graphic 702 that is presented to the user at the level of the classification hierarchy that is appropriate. The configurable graphical action bar 700 contains dynamic parameterized URLs 702 appropriate for the current class. While described herein as a configurable dynamic action bar 700, the present invention is not necessarily limited to a "bar" configuration. The configurable dynamic action region 700 may be represented graphically in shapes other than a "bar." The configurable graphical action bar 700 may also include extended queries 707 appropriate for the current class. The configurable graphical action bar 700 preferably includes default actions 703, 704, 705 and 706 for "close" 703, display a page for the "next 10" 704 (if 10 items remain to be displayed, otherwise "next n" where "n" is the number remaining to be displayed and 0<n<10), display a page for the "previous 10" (if applicable), "sort" 705, and item "info" 706, and in a preferred embodiment, these always appear on the configurable graphical action bar 700 (if applicable). An action button for "previous 10" is not shown in FIG. 40, because it is not applicable in the illustrated example.
The example illustrated in FIG. 40 is a screen display showing the search results of a knowledge base for major league baseball. The illustrated screen display shows search results of a search for American League teams. The search returned fourteen teams. The screen displays that appeared during navigation of the knowledge base and search are not shown, this example being selected for the purpose of illustrating the configurable graphical action bar 700. In a preferred embodiment, ten items are displayed per page 701, leaving four teams that are not currently displayed. Thus, action button 704 is configured in this example to display information for the remaining four teams not currently shown. If the user clicks on the action button 704 with his mouse 117, a similar window would be displayed for the remaining four teams of the American League.
Each item in this example is an instance, and each instance has attributes such as team na |