CN1333336C - Method for unified management of component library supporting heterogeneous component - Google Patents

Method for unified management of component library supporting heterogeneous component Download PDF

Info

Publication number
CN1333336C
CN1333336C CN 200610089387 CN200610089387A CN1333336C CN 1333336 C CN1333336 C CN 1333336C CN 200610089387 CN200610089387 CN 200610089387 CN 200610089387 A CN200610089387 A CN 200610089387A CN 1333336 C CN1333336 C CN 1333336C
Authority
CN
China
Prior art keywords
member
component
step
information
facet
Prior art date
Application number
CN 200610089387
Other languages
Chinese (zh)
Other versions
CN1877523A (en
Inventor
张尧学
钟鸣
方存好
田鹏伟
Original Assignee
清华大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 清华大学 filed Critical 清华大学
Priority to CN 200610089387 priority Critical patent/CN1333336C/en
Publication of CN1877523A publication Critical patent/CN1877523A/en
Application granted granted Critical
Publication of CN1333336C publication Critical patent/CN1333336C/en

Links

Abstract

The present invention relates to a method for the unified management of a component library supporting heterogeneous components, which belongs to the technical field of software engineering. The present invention is characterized in that the present invention comprises the steps that on the basis of the unified component encapsulating structure of heterogeneous components, a reticulate index structure with the combination of XML and an SQL server database is created as the system frame of a component library; the heterogeneous components are classified, organized, normalized and then stored in a component search library defined by a classification organization pattern; the consistency access and the search of the component library can be realized on the basis of the uniform classification and the storage of components. The present invention effectively completes the acquisition of each component from the Internet to a local place, and unified specifications for the encapsulation, the transmission and the analysis of data are formed by a series of operations such as verification, information mapping standard, information description, entity warehousing and search and access of the components; consequently, support is offered to program mining and component assembly related to individuation and demand services on the Internet.

Description

A kind of component base unified management method of supporting heterogeneous component

Technical field

The present invention relates to a kind of component base unified management method of supporting heterogeneous component, belong to technical field of software engineering.

Technical background

Along with the continuous development of computer network and Internet technology, the user obtains several network applications (service) by diversified form, and the requirement of the intellectuality that Internet is used, personalization, synthesization is more and more higher.As can be seen, the customization of the application personalization of intended for end consumers will be one of main pattern of following software and services exploitation from this development trend.

Under such background, component technology is suggested and is used widely.Member is meant to have relatively independent function and reusable software module (as shown in Figure 1).It makes the software developer can make full use of over knowledge, experience and the functional module that accumulates in the systems development process in new system development, and needn't all " start from scratch ", thereby has avoided the duplication of labour in the software development.At present, member is as a kind of important middleware system that is attached on computer hardware and the operating system, in applications such as finance, education, ecommerce, E-Government, health care, obtained extensive application, brought into play good effect for improving software repeated usage degree and efficiency of software.

For support member multiplexing, the numerous and confused component technology standard of releasing oneself of some tissues and company, as Java component standard JavaBeans, the EJB that SUN company proposes, CCM standard in COM, DCOM standard and the CORBA3.0 of OMG (OMG) standard that Microsoft proposes or the like.On the other hand, current had relatively extensive studies at home and abroad for the component base system that supports Web service, also possessed quite a lot of proven technique and achievement, the special component base (as Alphaworks, Flashline, ComponentPlanet, ComponentSource etc.) of all kinds of isomorphism component technology standards has appearred on the Internet much following, multiple ready-made available member is provided, these component bases have formed the component resource on the Internet, for software repeated usage, provide the foundation based on the program development of member.And along with the development of component technology, the scale in network structure storehouse is still in continuous expansion, for the combination of application and service provides component resource.

But, at present each big research and commercial undertaking all use own specific codes and standards to develop member, the component description structure is different, as EJB, COM, CORBA etc., all have unique member realization mechanism and describing method, show as " isomerism " between the member, promptly inconsistent.Conclude, isomerism problem between the various component development standards and norms is mainly reflected in following two aspects: the external effect information of component description, very inconsistent as information such as member organizational resources and functional classifications, the many basic development and application of member is described also imperfect, causes the difficulty of upper layer application in the member search, aspect obtaining; The behavioural information of component interface is inconsistent, and component interface but depends critically upon the programming language that member is realized as the sign of behavior description, causes description inconsistent, can not support the mutual visit between the heterogeneous component well.

Just because of the isomerism between the member, cause still not having now a kind of rational standard to realize the unified management and the operation of heterogeneous component, mutual visit between the member and calling between the member that also is confined to same type, consistance visit between the dissimilar members is lacked necessary support, cause developer and terminal user carrying out the member search, obtain and analyze, assembling waits in the member processing activity and can only operate based on the member of same standard, to software component to reuse limitation bigger, a large amount of component resources on the existing Internet can't be widely used, and are unfavorable for realizing on the Internet platform personalized service as required; And the mechanism such as storage and retrieval of organizing between all kinds of component base system also are not quite similar, and can't realize unified program mining and component management.

As seen, the member isomerism has become the bottleneck of restricted software multiplex technique development, realizes that consistance visit and the operation between the member of all kinds of standards is main from now on research direction.Member isomerism problem mainly needs to solve by following two steps:

At first be that heterogeneous component is unified encapsulation and description, shield the difference of dissimilar component descriptions and calling interface.Patent " method that encapsulation of a kind of member and consistance are visited " (ZL200410030654.5) in, a kind of unified structure element package structure has been proposed, this package structure at existing various component models (as ActiveX, JavaBeans, EJB etc.) on the basis, by encapsulation the external information of member is carried out the normalizing mapping to member, the component model of formation system, standard, thus the consistance that realizes member is visited.

Next is on above-mentioned encapsulation basis, and heterogeneous component is unified Access Management Access.Above-mentioned patent provides a kind of feasible method for the visit of the component resource consistance between the polytype.But, using the final purpose of member is to create new application system in order to assemble by member, this just need be on foregoing member encapsulation and consistance access method basis, component base is set to be come existing component resource is unified to describe and effectively organize, from component base, retrieve and have access to required member according to application demand, form the management method of unified support heterogeneous component, for the heterogeneous component of various standards is created unified development and application platform.Design and realization support the technology emphasis and the difficult point of the unified structure element library management method of heterogeneous component mainly to be:

1) consistency problem of solution component classification.Component classification is based on natural language, from function, multiplex layer time equal angles member is carried out the refinement location process, fundamental purpose be convenient to the member user more convenient, find needed member more accurately.The different component standard causes taxonomic hierarchies express on the complete difference of each component base to member, therefore needs a kind of energy unification of design and standard ground to describe the component classification architecture of various members, and various members can both be mapped in this taxonomic hierarchies space.

2) solve the consistency problem that member is stored.The quality of member storage architecture model has determined the efficient height that component base manages member.Heterogeneous component is stored in the different component bases after being developed by different tissues, and its memory module has nothing in common with each other.In the unified structure element management system, need store information integrals such as the entity of heterogeneous component, encapsulation description the relevant position of component base into, and consistance accessing operation interface is provided.

3) consistency problem that solves the component base visit and manage.The unified visit of component base and management are to realize on the member isomerism basis consistent by taxonomic organization's system of shielding and member fully, the unified mechanism of describing according to member, realization is to consistency operations such as the warehouse-in of heterogeneous component, retrieval, deletions, for further member is used and assembling provides operate services.

Summary of the invention

The objective of the invention is for overcoming existing weak point at heterogeneous component library management technology, a kind of component base unified management method of supporting heterogeneous component is proposed, shield each class A of geometric unitA " isomerism " characteristics, mainly may further comprise the steps: on existing unified structure element package structure basis, create the System Framework of a kind of netted index structure that combines with XML and SQL Server database as component base at heterogeneous component; On this platform, realize the classification and the enterprise schema of heterogeneous component; Analyze the descriptor of each class A of geometric unitA, encapsulate and shield its original external information, normalization is stored in the component retrieval storehouse that defines with this classification enterprise schema; On the basis of unified classification of member and storage, realize consistance visit and retrieval to component base.Effectively finish each member and be acquired this locality and checking, information mapping standard, descriptor and operations such as entity warehouse-in, component retrieval visit, and form unified data encapsulation, transmission and parsing standard from Internet.The present invention can improve the multiplexing and efficiency of software of network software in applications such as finance, education, ecommerce, E-Government, health care, provide support for further realizing program mining related in the personalized on-demand service of Internet and member assembling.

The present invention proposes a kind of component base unified management method of supporting heterogeneous component, and its operating process as shown in Figure 2.The invention is characterized in that described method contains following steps successively:

Step (1): on one or more computing machine component base is set, entity of all members of storage forms the component base computing machine on it;

Step (2): on another computing machine, component directory library is set, safeguards a unified structure element packaging part storehouse, be used for the set of means of storage descriptor, form the component directory library computing machine;

Step (3): on the component directory library computing machine, design the unified component classification organizational framework of a kind of isomery successively according to the following steps, construct reticular component information index structural table with this, and create component classification key based on SQL Server database based on XML:

Step (3.1): component base is divided into following three facet fields by structure attribute: element type, member function and multiplexing level, this multiplexing level are the multiplexing level of member at program mining and each process stage of software repeated usage;

Step (3.2): the XML information index structural table of constructing the cancellated sky of many facets, in described reticulate texture, each leaf node is corresponding to a descriptor and the interior member explanation that is identified at that indicates member entity position that comprises member, the corresponding one group of meta-directory that the member explanation is constituted by identical category of each nonleaf node contains the title that comprises meta-directory, the index information that is defined in interior descriptor and the explanation of the member under this meta-directory;

Step (3.3): the key word information of traversal and extraction component base facet field and term space, generation comprises the member index structure with the outline formal description of facet field, one-level term, secondary term, then according to XML Schema standard, the member index structure is written in the XML information index structural table of the described sky of step (3.2) with tree-shaped form, three facet field nodes are described in this table, comprise experimental process field term node under each node, the bottom is each component node and ID thereof;

Step (3.4): create the component classification key in the SQL of component directory library computing machine Server database, list item comprises that member ID, member facet field and member describe substantially;

Step (4): will go up each professional component base download heterogeneous component from Internet and be kept at the temporary folder, and classify according to descriptor, the self information of each member that is extracted with unified XML formal description, form unified member packaging part through mapping, be kept in the unified structure element packaging part storehouse, described descriptor is meant member file extension and the inner identification field that carries of judging that element type is used;

Step (5): according to the unified structure element packaging part information of member, carry out local member and go into library storage and set up index operation, may further comprise the steps successively:

Step (5.1): from the unified structure element packaging part of waiting to put in storage member, obtain component classification information and the basic descriptor of member;

Step (5.2): according to the facet domain classification of component base, extract effective keyword in corresponding field successively, obtain function, type, the corresponding respectively description keyword in each field of multiplexing level of member;

Step (5.3): utilize the natural language processing module set, be described information mapping, by coupling the most completely principle determine the standard facet attribute of member;

Step (5.4): open the XML information index structural table of on the component directory library computing machine, creating;

Step (5.5): according to the member facet standard terms at different levels of step (3.3) acquisition, term node location in XML information index structural table under this member of location, and unique ID of this member is packaged into the XML node describes, hang over above-mentioned term intranodal, same node is described need hang over a plurality of corresponding term intranodals;

Step (5.6): again with the facet of this member standard terms at different levels with member ID, the basic descriptor of member, integrate to generate the SQL record and add order, recording member ID, element type, member function, multiplexing level and the basic descriptor of member;

Step (5.7): connect SQL Server database, and the record interpolation order of execution in step (5.6) generation, the classified information of this member and basic descriptor are saved in the component classification key with the record form;

Step (5.8): under the catalogue of component base preservation member entity, create a file, the member entity in the original temporary folder is deposited to this ID file with member ID name;

Step (5.9): in the member packaging part, the member address is updated to local address in the component base;

Step (5.10): the member packaging part of having revised with member ID name, is put into the component description message file folder of component directory library;

Step (5.11): repeating step (5.1)~(5.10), up to member warehouse-in all to be put in storage, close XML information index structural table file, finish the step that member warehouse-in and index are set up;

Step (6): component base is carried out unified retrieval and Access Management Access, may further comprise the steps:

Step (6.1): obtain the member demand condition that the member user proposes, form comprises facet field term feature, keyword, the interface message of appointment, with form transmission and the preservation of XML;

Step (6.2): from the member demand, extract retrieval facet field term and term space thereof;

Step (6.3):,, carry out SQL Server data base querying in conjunction with its facet realm information for the retrieval facet term that has obtained;

Step (6.4): the result of facet retrieval is kept among the temporary data set DataSet1;

Step (6.5): from the member demand of step (6.1), extract search key;

Step (6.6): the crucial term to user's input splits, and separates preservation with the form of chained list;

Step (6.7): the number design cycle body of pressing keyword in the chained list, from chained list, take out keyword successively, the basic descriptor of member territory at the temporary data set DataSet1 that obtains in the preceding step (6.4) is scanned, and all records that comprise this keyword are all excavated;

Step (6.8): repeating step (6.7), in previous excavation result, search for again successively, till having retrieved the record of summary info that last keyword obtains comprising all keywords;

Step (6.9): the result of keyword retrieval is kept among the temporary data set DataSet2, has obtained all simultaneously and satisfied the member ID of search condition;

Step (6.10):, from the component information storehouse, extract with the component information of these ID names and describe the unified structure element packaging part according to the member ID among the DataSet2;

Step (6.11): for each packaging part, scan its interface descriptor, after confirming the consistent and data type coupling of the interface requirement that proposes with the user, the unified structure element packaging part that satisfies search condition is returned to the user with the form of XML, confession party in request carries out finer inspection;

Step (6.12):, from member entity storehouse, download needed member entity and preservation according to the local address information in the component information description.

The present invention can make full use of software reuse technology for guaranteeing in personalized on-demand service of Internet and program mining process, provide one to comprise a large amount of reusable and the member of assembling and the local resource component bases (Local ResourceComponent Warehouse) of complete component information, be all kinds, effective tissue of various building blocks of functions has proposed a kind of netted level of information index structure based on XML and SQLServer database, and realize going into library storage with member at this component base, functions such as component retrieval visit are the member consistance Access Management Access of main body, form unified data encapsulation, transmission and parsing standard.The present invention mainly contains following concrete characteristics:

1) stratification architecture clearly.This component Library Management System is based on that the three-layer architecture pattern (that is: user interface layer, applied logic layer, database layer) of Browser/Server creates.User interface can adopt simple Web form, reduces the requirement of client, the security that improves system simultaneously; The applied logic layer mainly provides member to go into component management operations such as library storage, retrieval visit according to member Access Management Access agreement; Database layer is to adopt the netted level of information index structure of XML with the binding pattern in length and breadth that SQL Server database is associated member to be stored.

2) multiple search mechanism combines.This component base system provides more complete search mechanism, carries out incorporate serial retrieval according to basic descriptor, keyword, component classification information and the component interface information of member.Because the heterogeneous component describing mode is different, so we have realized unified and standard to its classified information on the one hand, can carry out the systematic searching based on facet, be to guarantee the information of member is had than more comprehensive covering for the basic descriptor of member and the retrieval of keyword on the other hand.Simultaneously, because carry out when multiplexing at member, the coupling of the input of member, output interface information is of crucial importance, so also must carry out the coupling retrieval of component interface quantity and type on request.Above-mentioned component retrieval mode serial is realized what both guaranteed to retrieve puts in place, reduces as far as possible and omits member; Also guarantee retrieval accurately, remove with retrieval and require the low member of the degree of correlation, for component reusing and assembling provide effective support.

3) shirtsleeve operation flow process can be simultaneously towards developer and domestic consumer.The application of this method does not need complicated manually-operated, but both developers of software-oriented also can be the ordinary terminal user and use, carry out reusing and assembling of member.

Technique effect of the present invention and use as follows:

1, adopts method of the present invention, the component description storage system framework that combines is wanted in establishment with netted index structure of XML and SQL Server database, and by unified encapsulation to member, under the operation control of component base Access Management Access agreement, realization is to the consistance visit of different component, making needs the CLIENT PROGRAM of the multiple member of visit to visit dissimilar members according to uniform way, not only simplify the running program of client greatly, also significantly improved the integrated dirigibility of software.

2, the present invention so not only can improve the efficient of further development service platform of software developer and member (program) digging system for software developer and terminal user provide abundant, unified component management platform; Can also make simultaneously the terminal user according to its demand directly find, customized user needs and selected member assembling application program, realize that user oriented personalization takes the initiative in offering a hand.

3, the present invention can improve the multiplexing and efficiency of software of network software in applications such as finance, education, ecommerce, E-Government, health care, provides support for further realizing program mining related in the personalized on-demand service of Internet and member assembling.The present invention will unify encapsulation and description from each class A of geometric unitA of different suppliers, different models, and various members are carried out consistance visit, thereby can support neatly and should and dynamically adjust and the customization of user oriented personalized application program and integrated with the formation of the operation flow in field by component base Access Management Access agreement.

4, use the security that the present invention can improve software systems.The user can be according to the needs of network environment and application safety, at any time adopt the inventive method to choose member, replace employed security member of software systems and assembling mode thereof neatly, can play an important role as the security protection aspect in fields such as finance, E-Government.

Description of drawings

Fig. 1 is the element structure synoptic diagram.

Fig. 2 is for supporting the component base unified management method flow diagram of heterogeneous component.

Fig. 3 is for supporting many facets net structure exemplary plot of heterogeneous component among the present invention.

Fig. 4 is based on the netted architecture frame synoptic diagram of many facets of XML among the present invention.

Fig. 5 puts synoptic diagram in storage for the member node based on XML among the present invention.

Fig. 6 is for supporting the component retrieval schematic flow sheet of heterogeneous component among the present invention.

Fig. 7 among the present invention based on the component retrieval demand synoptic diagram of XML.

Embodiment

A kind of component base unified management method of supporting heterogeneous component that the present invention proposes reaches embodiment in conjunction with the accompanying drawings and is described in detail as follows:

The first step is provided with component base on one or more computing machine, entity of all members of storage forms the component base computing machine on it.

Second step was provided with component directory library on another computing machine, safeguards that a member unifies the packaging part storehouse, was used for the set of means of storage descriptor, formation component directory library computing machine.

In the 3rd step, design a kind of isomery unified component classification organizational framework on the component directory library computing machine is constructed reticular component information index structural table based on XML with this, creates SQL Server database component classification key.

The detailed process of this step is described below:

At first component base is divided facet.According to simplify, facet quadrature, comprehensive and these four principles of consistance, can choose that those often use in user search, the attribute that meets mentioned above principle again is as facet.In the present invention, following three structure attributes have been selected as facet.

Facet 1: element type (CT:Component Type).This facet is set according to existing multiple member form.For example JavaBean, EJB, ActiveX etc.

Table 1: the term vocabulary of element type facet (CT)

The term classification The term vocabulary .Net member ????.NET?WinForm ????.NET?WebForm ????.NET?Class ????.NET?Web?Service The ActiveX/COM member ????ActiveX?OCX ????ActiveX?DLL ????ActiveX?EXE ????ActiveX?Designer ????ActiveX.NET?Ready The Java member ????JavaBean ????Java?Class ????Java?Applet ????Java?Servlet ????Enterprise?JavaBean ????BEA?WebLogic?Workshop?JWS?Control The CORBA member ????CORBA ??Others ????C++/MFC ????VBX ????VCL ????CLX ????Visual?Basic?Class?Library ????Windows?Static?Link?Library ????Windows?Foundation?Class(WFC) ????CA?Advantage?Gen?Component ????Other?Component?Type

Facet 2: member function (CF:Component Functionality).The function of member is the software feature set that this member is provided in original or possible software systems.For example user interface design, network function, file operation, graphics process or the like.Any member all must provide one or more functions in the component base.This facet is divided into ecommerce (E-Commerce) according to the concrete function of member and the effect in software development, E-Government (E-Government), education (E-Learning), developing instrument (Development Tools), multimedia (Multimedia), file processing (File Manipulation), science is calculated (Scientific Computing), network tool (Network Tools), network security (Network Security), miscellaneous (Miscellaneous), other (Others) are totally 11 classifications, and each classification further is subdivided into a plurality of subclasses as term space.

Facet 3: multiplexing level (LR:Level ofReusing).The multiplexing level of member is the application level of member at program mining and each process stage of software repeated usage.As some member itself is exactly a complete application, and its multiplexing level just is in " application " level; And for the source code member, its multiplexing level just is in " coding " level.Present multiplexing level term has Application-Level (application), Component-Level (member), Code-Level (coding) etc.

More than three attributes isolate fully mutually to each other and independent, and member and multiplexing relevant characteristic have been embodied more fully, also can adapt to program mining system and the development from now on of local resource component base, therefore above three attributes are defined as the facet system of LCRW component base.

Then construct cancellated XML information index structural table.Reticulate texture is a kind of improvement to tree.The place identical with tree is that in reticulate texture, each leaf node illustrates (ComponentDescription) corresponding to a member, and it comprises descriptor and a sign that indicates the piece code position of member.The corresponding one group of meta-directory (Metacategory) that the member explanation is constituted by identical category of each nonleaf node, it comprises the index information of member explanations all under the descriptor such as title, definition of meta-directory and this meta-directory.

After having adopted many facets pattern, component base is just classified to member from different perspectives, retrieves the visit member from different perspectives to make things convenient for the user.Each classification angle is all divided a corresponding tree component resource in the organization component storehouse.This makes the explanation of same member will be organized in simultaneously under a plurality of meta-directories in the different trees, and like this, a leaf node will belong to several different nonleaf nodes simultaneously, thereby constitutes a netted institutional framework.

Because the local resource component base comes organization component from element type, member function, these three angles of component reusage level simultaneously, member belongs under the meta-directory different in corresponding three trees in fact simultaneously.Be example still, organize that it belongs to the JavaBean meta-directory from the element type angle with FTP Protocol member; Organize from the member function angle, it belongs to the Network Transmission meta-directory under the Network; Organize from component reusage level angle, it belongs to the code-level meta-directory.Like this, the explanation of the pairing FTP Protocol of FTP Protocol member member will be linked under these three different meta-directories of JavaBean, Network Transmission and code-level simultaneously, thereby form a reticulate texture, as shown in Figure 3.

The XML information index structural table file designation of a sky of structure is ComponentTable.xml on the component directory library computing machine then, the key word information of traversal and extraction component base facet field and term space, generation comprises the member index structure with the outline formal description such as facet field, one-level term, secondary term, according to XML Schema standard, the member index structure is written in the above-mentioned XML information index structural table with tree-shaped form.Describe three primary territory nodes in this table, comprise experimental process field term node under each node, the bottom is each component node, describes the ID of member.The framework of this information index structural table is described as shown in Figure 4.

Finish above-mentioned to the XML file editor and fill in after, in the SQL of component directory library computing machine Server database, create component classification key ComponrntTable, list item comprises that member ID, member facet field and member describe substantially.

The 4th step, obtain multiple heterogeneous component the professional component base of each from Internet, be kept in the temporary folder.File extension and the inner identification field that carries according to this member are judged the element type that will encapsulate, for example distinguish is JavaBean member, ActiveX member or other types member, then at the different component type, extract the member self information, adopt corresponding mapping method, this member self information is filled into the appropriate section of package structure, forms unified structure element packaging part, promptly with the XML file of this member ID name with this member self information of unified XML formal description.This step detailed process referenced patent " method of a kind of encapsulation of member and consistance visit " (ZL200410030654.5).

The 5th step, unified packaging part information according to member, carrying out local member goes into library storage and sets up index operation: be organized in the member index information storehouse according to wherein classified information, form a node in the reticulate texture, as shown in Figure 5, simultaneously the member entity is saved in the component base, and in the unified structure element packaging part, the local address of member is upgraded, then utilize the crossover tool of XML and SQL Server database, the classified information of each member and the basic descriptor form with record intactly is kept in the SQL database.

With component classification information with after descriptor is mapped on the facet term space substantially, form with record, be kept in the database, this mainly is to utilize facet term space standardization and determinacy, and give full play to the advantage of SQL Server database aspect keyword retrieval, the retrieval of acceleration longitudinal member is complemented each other with the horizontal navigation mechanism of showing based on member index structure XML, is convenient to align member more accurately.

The specific operation process of this step is as follows:

(1) from the unified structure element packaging part of waiting to put in storage member, obtains component classification information and basic descriptor;

(2) according to the facet classification of component base, extract effective keyword in corresponding field successively, obtain function, type, the multiplexing level difference corresponding descriptor of member;

(3) utilize existing natural language processing module, be described information mapping, by coupling the most completely principle determine the standard facet attribute of member;

(4) if do not open the XML information index structural table of on the component directory library computing machine, having created as yet, then open this index structure list file;

(5) according to the member facet standard terms at different levels that obtain in the 3rd step, term node location under XML information index structural table is located this member, and unique ID of this member is packaged into the XML node describes, hang over above-mentioned term intranodal, because member has the term in a plurality of fields, then the description of the node of this member will hang in a plurality of corresponding terms, as shown in Figure 5 in the information index structural table;

(6) again with the facet of this member standard terms at different levels with member ID, the basic descriptor of member, integrate to generate the SQL record and add order, the form of this SQL statement is:

Insert into ComponentTable (member ID, member classification, member function, multiplexing level, component description information) Values (' member ID ', ' member classification term ', ' member function term ', ' multiplexing level term ', the basic descriptor of ' member ');

(7) connect SQL Server database, and the record interpolation order of execution in step (6) generation, the classified information of this member and basic descriptor are saved in the component classification key with the record form;

(8) under the catalogue of component base preservation member entity, create a file, the member entity in the original temporary folder is deposited to this ID file with member ID name;

(9) in the unified structure element packaging part, the member address is updated to local address in the component base;

(10) member of having revised is unified packaging part with member ID name, put into the component description message file folder of directory information base;

(11) if also have other members to be put in storage, then get back to step (1) and repeat this process, otherwise close XML information index structural table file, finish the method that member is gone into library storage and index foundation.

In the 6th step, the component description information that integrating step 5 is obtained on the unified structure element taxonomic organization system basis of step 2 design, realizes the unified retrieval and the Access Management Access of component base.

Component retrieval and access method are the search conditions that provides according to the user, and the list item in the index structure in combination member index information storehouse and the SQL Server database writes down searches member.Component retrieval is one of key modules of component base realization, and can the member that it directly has influence in the component base finally obtain multiplexing.Whether good search method is provided is to weigh the outstanding feature of component Library Management System success or not.

The component base system generally will provide several different methods to make things convenient for the software repeated usage personnel to use and improve recall precision, takes the method for different retrievals at different requirements.The component retrieval method of being set forth among the present invention is mainly for further member encapsulation and personalized service design, comprise based on the retrieval of facet domain classification with based on the retrieval of component information keyword, need also at last to check whether component interface information meets the requirements.

The flow process of unified retrieval of heterogeneous component and access method specifically may further comprise the steps as shown in Figure 6:

(1) obtain the member demand condition that the member user proposes, with form transmission and the preservation of XML, file layout as shown in Figure 7;

(2) from the member demand, extract term and the corresponding term space thereof of retrieving facet;

(3) for the term of effective retrieval facet, in conjunction with its realm information, carry out SQL Server data base querying, its SQL statement form is:

Select member ID, component description information f rom ComponentTable where+ search condition

Search condition comprises: element type=' the element type term '

Member function=' the member function term '

Multiplexing level=' multiplexing level term '

One or more in these three conditions, between connect with " and " operational character;

(4) result with the facet retrieval is kept among the temporary data set DataSet1;

(5) from the member demand, extract search key, and carry out validity check, the empty or illegal querying condition of deletion;

(6) split according to a plurality of keywords of conditions such as space or punctuate, and separate preservation with the form of chained list with user's input;

(7) press the number design cycle body of keyword in the chained list, from chained list, take out keyword successively, the basic descriptor of member territory at the temporary data set DataSet1 that obtains in the preceding step (4) is scanned, and all records that comprise this keyword are all excavated;

(8) for each keyword, constantly repeating step (7) is searched in previous excavation result successively once again, till having retrieved the record of summary info that last keyword obtains comprising all keywords;

(9) result with keyword retrieval is kept among the temporary data set DataSet2, i.e. in store all member ID that satisfy condition among the DataSet2;

(10), from the component information storehouse, extract with the component information of these ID names and describe the unified structure element packaging part according to the member ID among the DataSet2;

(11) for each packaging part, scan its interface descriptor, whether the main member input and output interface quantity that checks is consistent with the interface requirement of user's proposition respectively, and whether the data type of each interface can mate, then all unified packaging parts that satisfy the member of search condition among the result who further chooses are returned to the user with the form of XML, carry out finer retrieval for developer or terminal user,, be convenient to the multiplexing of member as the essential information of member, interface definition or the like;

(12) member that obtains for the final needs of determining according to the local address information in the component information description, is downloaded the member entity and is also preserved from member entity storehouse.

After finishing above step, can retrieve and obtain the member that satisfies the member assembling condition, comprise that member unifies descriptor and member entity.

Claims (1)

1, a kind of component base unified management method of supporting heterogeneous component is characterized in that described method contains following steps successively:
Step (1): on one or more computing machine component base is set, entity of all members of storage forms the component base computing machine on it;
Step (2): on another computing machine, component directory library is set, safeguards a unified structure element packaging part storehouse, be used for the set of means of storage descriptor, form the component directory library computing machine;
Step (3): on the component directory library computing machine, design the unified component classification organizational framework of a kind of isomery successively according to the following steps, construct reticular component information index structural table with this, and create component classification key based on SQL Server database based on XML:
Step (3.1): component base is divided into following three facet fields by structure attribute: element type, member function and multiplexing level, this multiplexing level are the multiplexing level of member at program mining and each process stage of software repeated usage;
Step (3.2): the XML information index structural table of constructing the cancellated sky of many facets, in described reticulate texture, each leaf node is corresponding to a descriptor and the interior member explanation that is identified at that indicates member entity position that comprises member, the corresponding one group of meta-directory that the member explanation is constituted by identical category of each nonleaf node contains the title that comprises meta-directory, the index information that is defined in interior descriptor and the explanation of the member under this meta-directory;
Step (3.3): the key word information of traversal and extraction component base facet field and term space, generation comprises the member index structure with the outline formal description of facet field, one-level term, secondary term, then according to the XMLSchema standard, the member index structure is written in the XML information index structural table of the described sky of step (3.2) with tree-shaped form, three facet field nodes are described in this table, comprise experimental process field term node under each node, the bottom is each component node and ID thereof;
Step (3.4): create the component classification key in the SQL of component directory library computing machine Server database, list item comprises that member ID, member facet field and member describe substantially;
Step (4): will go up each professional component base download heterogeneous component from Internet and be kept at the temporary folder, and classify according to descriptor, the self information of each member that is extracted with unified XML formal description, form unified member packaging part through mapping, be kept in the unified structure element packaging part storehouse, described descriptor is meant member file extension and the inner identification field that carries of judging that element type is used;
Step (5): according to the unified structure element packaging part information of member, carry out local member and go into library storage and set up index operation, may further comprise the steps successively:
Step (5.1): from the unified structure element packaging part of waiting to put in storage member, obtain component classification information and the basic descriptor of member;
Step (5.2): according to the facet domain classification of component base, extract effective keyword in corresponding field successively, obtain function, type, the corresponding respectively description keyword in each field of multiplexing level of member;
Step (5.3): utilize the natural language processing module set, be described information mapping, by coupling the most completely principle determine the standard facet attribute of member;
Step (5.4): open the XML information index structural table of on the component directory library computing machine, creating;
Step (5.5): according to the member facet standard terms at different levels of step (3.3) acquisition, term node location in XML information index structural table under this member of location, and unique ID of this member is packaged into the XML node describes, hang over above-mentioned term intranodal, same node is described need hang over a plurality of corresponding term intranodals;
Step (5.6): again with the facet of this member standard terms at different levels with member ID, the basic descriptor of member, integrate to generate the SQL record and add order, recording member ID, element type, member function, multiplexing level and the basic descriptor of member;
Step (5.7): connect SQL Server database, and the record interpolation order of execution in step (5.6) generation, the classified information of this member and basic descriptor are saved in the component classification key with the record form;
Step (5.8): under the catalogue of component base preservation member entity, create a file, the member entity in the original temporary folder is deposited to this ID file with member ID name;
Step (5.9): in the member packaging part, the member address is updated to local address in the component base;
Step (5.10): the member packaging part of having revised with member ID name, is put into the component description message file folder of component directory library;
Step (5.11): repeating step (5.1)~(5.10), up to member warehouse-in all to be put in storage, close XML information index structural table file, finish the step that member warehouse-in and index are set up;
Step (6): component base is carried out unified retrieval and Access Management Access, may further comprise the steps:
Step (6.1): obtain the member demand condition that the member user proposes, form comprises facet field term feature, keyword, the interface message of appointment at least, with form transmission and the preservation of XML;
Step (6.2): from the member demand, extract retrieval facet field term and corresponding term space thereof;
Step (6.3):,, carry out SQL Server data base querying in conjunction with its facet realm information for the retrieval facet term that has obtained;
Step (6.4): the result of facet retrieval is kept among the temporary data set DataSet1;
Step (6.5): from the member demand of step (6.1), extract search key;
Step (6.6): each the crucial term that passes through through validity check to user's input splits, and separates preservation with the form of chained list;
Step (6.7): the number design cycle body of pressing keyword in the chained list, from chained list, take out keyword successively, the basic descriptor of member territory at the temporary data set DataSet1 that obtains in the preceding step (6.4) is scanned, and all records that comprise this keyword are all excavated;
Step (6.8): repeating step (6.7), in previous excavation result, search for again successively, till having retrieved the record of summary info that last keyword obtains comprising all keywords;
Step (6.9): the result of keyword retrieval is kept among the temporary data set DataSet2, has obtained all simultaneously and satisfied the member ID of search condition;
Step (6.10):, from the component information storehouse, extract with the component information of these ID names and describe the unified structure element packaging part according to the member ID among the DataSet2;
Step (6.11): for each packaging part, scan its interface descriptor, after confirming the consistent and data type coupling of the interface requirement that proposes with the user, the unified structure element packaging part that satisfies search condition is returned to the user with the form of XML, confession party in request carries out finer inspection;
Step (6.12):, from member entity storehouse, download needed member entity and preservation according to the local address information in the component information description.
CN 200610089387 2006-06-23 2006-06-23 Method for unified management of component library supporting heterogeneous component CN1333336C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610089387 CN1333336C (en) 2006-06-23 2006-06-23 Method for unified management of component library supporting heterogeneous component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610089387 CN1333336C (en) 2006-06-23 2006-06-23 Method for unified management of component library supporting heterogeneous component

Publications (2)

Publication Number Publication Date
CN1877523A CN1877523A (en) 2006-12-13
CN1333336C true CN1333336C (en) 2007-08-22

Family

ID=37509971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610089387 CN1333336C (en) 2006-06-23 2006-06-23 Method for unified management of component library supporting heterogeneous component

Country Status (1)

Country Link
CN (1) CN1333336C (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408897B (en) * 2008-10-10 2011-03-30 清华大学 Personalized enquiry expanding method based on collaboration filtering
CN101446903B (en) * 2008-12-19 2011-06-08 北京大学 Automatic component classification method
CN102163195B (en) * 2010-02-22 2013-04-24 北京东方通科技股份有限公司 Query optimization method based on unified view of distributed heterogeneous database
CN101894155A (en) * 2010-07-06 2010-11-24 中兴通讯股份有限公司 Classification method, system and terminal of widget
CN101996257B (en) * 2010-11-30 2012-08-22 中国人民解放军信息工程大学 Method for searching reconfigurable route exchange platform component
CN102646040B (en) * 2012-04-19 2015-08-26 贾志东 The method for producing software set based on merit part and merit part and device
CN104102477A (en) * 2013-04-08 2014-10-15 腾讯科技(深圳)有限公司 Method and frame platform system for changing mobile terminal application into plugin
CN103678575B (en) * 2013-12-11 2016-03-02 四川九洲电器集团有限责任公司 By the method and system of the unified process of Middleware implementation several data database data
CN104111998A (en) * 2014-07-09 2014-10-22 江西理工大学 Method and device for sorting coding and integrated exchange and management of heterogeneous data of enterprise
EP3195147A4 (en) 2014-09-18 2018-03-14 Google LLC Clustering communications based on classification
CN104615425A (en) * 2015-01-16 2015-05-13 贾志东 Method and system for developing software system based on features and feature tree
CN106777327A (en) * 2017-01-11 2017-05-31 铁道第三勘察设计院集团有限公司 A kind of BIM ATLs management method
CN106980695A (en) * 2017-04-05 2017-07-25 国网四川省电力公司宜宾供电公司 A kind of electric power neighborhood component retrieval method and its storage method
CN108170846B (en) * 2018-01-17 2018-12-11 清华大学 Extensive multi-source heterogeneous data persistence method based on elastic table model

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999027447A1 (en) * 1997-11-20 1999-06-03 Crosskeys Systems Corporation Knowledge module
CN1564129A (en) * 2004-04-02 2005-01-12 清华大学 Method of packing member and consistent visit
CN1581163A (en) * 2004-05-20 2005-02-16 北京大学 Inquiring method of operation system member storehouse
CN1744038A (en) * 2005-09-28 2006-03-08 清华大学 Member assembling method based on united member package structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999027447A1 (en) * 1997-11-20 1999-06-03 Crosskeys Systems Corporation Knowledge module
CN1564129A (en) * 2004-04-02 2005-01-12 清华大学 Method of packing member and consistent visit
CN1581163A (en) * 2004-05-20 2005-02-16 北京大学 Inquiring method of operation system member storehouse
CN1744038A (en) * 2005-09-28 2006-03-08 清华大学 Member assembling method based on united member package structure

Also Published As

Publication number Publication date
CN1877523A (en) 2006-12-13

Similar Documents

Publication Publication Date Title
Williams et al. Web Database Applications with PHP and MySQL: Building Effective Database-Driven Web Sites
US8234308B2 (en) Deliver application services through business object views
Ceri et al. Model-driven development of context-aware Web applications
US9009195B2 (en) Software framework that facilitates design and implementation of database applications
Gómez et al. Conceptual modeling of device-independent web applications
US8607139B2 (en) System and process for managing content organized in a tag-delimited template using metadata
US7792817B2 (en) System and method for managing complex relationships over distributed heterogeneous data sources
US6298354B1 (en) Mechanism and process to transform a grammar-derived intermediate form to an object-oriented configuration database
CA2390440C (en) System and method for multiple level architecture by use of abstract application notation
US7366717B2 (en) Method and apparatus for mapping between XML and relational representations
US6289501B1 (en) Method for generating simple document type definitions
Bernstein et al. Microsoft repository version 2 and the open information model
CN100416567C (en) Sharable two way method and system for switching between object model and XML
US7543268B2 (en) Development environment for developing applications using a metamodel and a metadata API
US6684222B1 (en) Method and system for translating data associated with a relational database
US6356920B1 (en) Dynamic, hierarchical data exchange system
US7055134B2 (en) Service provider integration framework in object oriented programming environment
US7240330B2 (en) Use of ontologies for auto-generating and handling applications, their persistent storage, and user interfaces
US7266565B2 (en) Table-oriented application development environment
Wang et al. Flexible interface matching for web-service discovery
US6061515A (en) System and method for providing a high level language for mapping and accessing objects in data stores
DE69937332T2 (en) Method and device for software development
CA2246940C (en) Method and means for encoding storing and retrieving hierarchical data processing information for a computer system
US8255888B2 (en) API derivation and XML schema derivation for developing applications
US5987247A (en) Systems, methods and computer program products for building frameworks in an object oriented environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant