CN111435297A - Automatic service adaptation method based on semantics - Google Patents
Automatic service adaptation method based on semantics Download PDFInfo
- Publication number
- CN111435297A CN111435297A CN201910031383.1A CN201910031383A CN111435297A CN 111435297 A CN111435297 A CN 111435297A CN 201910031383 A CN201910031383 A CN 201910031383A CN 111435297 A CN111435297 A CN 111435297A
- Authority
- CN
- China
- Prior art keywords
- service
- semantic
- document
- semantics
- network
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Machine Translation (AREA)
Abstract
The invention relates to an automatic service adaptation method based on semantics. The invention generates a normalized service description document by multiplexing the description of the existing service in the service network and the body information thereof, and generates the service adaptation components of the client and the server based on the description document in a code instrumentation mode so as to automatically realize service adaptation and eliminate semantic conflict.
Description
Technical Field
The invention relates to a semantic-based automatic service adaptation method, and belongs to the technical field of software.
Background
In the traditional service computing mode, the services are isolated from each other, the cooperation relation between the services is omitted, and the service combination is carried out in the inefficient passivity. Therefore, service combination based on semantics and service relations becomes a premise of rapid and efficient automatic service combination and is also a key for constructing semantic-aware Web services. However, service composition is still challenged by the following constraints:
first, service composition may be limited by syntax mismatch between services. In order to realize business linkage and cooperation, Web services participating in service combination have semantic relevance, but also meet the matching of grammar rules. That is, the output parameters of the previous service in the combination are consistent with the input parameters of the next service in terms of number, type, format, sequence, etc. However, in the service combination process, often due to the limitation of such parameter syntax, services that are originally semantically related cannot be combined. For example, the operation "ipquery" acquires the corresponding geographic location information according to the IP address, and outputs the information including the location city, the location zip code, the latitude and longitude, and the like. The operation "getweather byzipcode" provides a service of acquiring weather forecast information according to a zip code, and inputs it as a regional zip code. When the demand is to obtain the weather forecast of the location of a certain IP address, the service combination fails due to the mismatching of the number of parameters. One possible solution is to add a service adapter between two services, translating the syntax of the mismatch, possible operations including: adding default parameter values, parameter type conversion, parameter format conversion, parameter location adjustment, and removing unnecessary parameters, etc.
Second, the combination of services is hampered by functional shortfalls in addition to the grammatical constraints described above. Two combined chains or business processes belonging to the same or similar fields often exist, and due to the lack of a certain part of functions, two business flows cannot be linked to form a business unit with larger granularity, so that more complex business requirements are met. If an adaptation service can be added between two related combining chains to make up for the difference in function between the two service chains, a combination of greater granularity will be achieved. For example, the operation "GetCityByZip" provides a service for acquiring a city corresponding to a zip code, outputs longitude and latitude coordinates of the city, and the operation "getweather bycity" provides a service for inquiring weather of the city, and inputs the service as a city name. The combination between the two services is limited due to the lack of functionality to obtain the corresponding city from latitude and longitude. If an adapter is present, the missing function is provided, so that the function difference between the two service flows can be made up, and the linkage of the service flows is realized.
In the development process of the two adapters, the main idea is to multiplex the output of the previous service and the input of the next service as the input and output parameters of the adapter. If the automatic multiplexing of the input and output of the Web service can be realized to construct the adapter, the development workload can be greatly reduced, and the error probability can be reduced. Finally, when the service is constructed, if the service can be developed in a multiplexing mode, some existing interface semantics and grammar information are reused, and the two combination obstacles can be greatly reduced in the service combination process. This is because the service constructed by multiplexing maintains the grammar rule of the original service in grammar and semantically multiplexes the semantic information related to the original service and the relationship with other services.
Disclosure of Invention
The purpose of the invention is as follows: for the reasons stated above, the present invention has been devised and achieves the objects of the present invention: based on the reasons, the invention discloses an automatic service adaptation method based on semantics. A semantic Web service development tool is integrated on the existing Eclipse development platform, the tool can reduce development workload and simplify the subsequent semantic labeling and relation mining processes. Moreover, the service adapter can be quickly and conveniently developed according to the tool, so that the grammar and function difference among services is made up, and the potential service combination is realized.
The principle of the invention is that the invention combines a service development mode of WSD L2 Code (WSD L2 Code is a WSD L document which firstly creates service, abstracts out a service interface class according to document definition, and then implements the coding of service logic. WSD L is a WEB service description language), and on the existing integrated development platform Eclipse, a Web service development tool based on multiplexing idea is implemented in a plug-in mode.
The technical scheme of the invention is as follows: a method is characterized by comprising the following implementation steps:
firstly, developing a service description document in a multiplexing mode, and generating a normalized service description document by multiplexing the description of the existing Web service in a service network and an ontology concept thereof;
secondly, generating Java language code piles from the documents;
thirdly, the developer implements specific codes;
and fourthly, releasing the service and registering the service to the service network.
Compared with the prior art, the invention has the following advantages: the method can be used for creating the adapter service, and also fully utilizes the existing semantic annotation and relationship mining results in the service network, enriches the nodes in the service network, and has positive significance for eliminating service semantic conflict and ambiguity in the service network.
Drawings
Fig. 1 is a system configuration diagram.
Detailed Description
The present invention is described in detail below with reference to specific embodiments and accompanying drawings, as shown in fig. 1, a method flow of the embodiments of the present invention:
the development tool of the invention comprises three major parts, namely a search module, a service creation module and a publishing and registering module as shown in figure 1. The search module comprises service discovery and ontology structure display, searches a plurality of semantic dimensions of services in the service network through a joint multi-condition search mode, returns basic information of the services and semantic documents with 5 dimensions, and displays the ontology structure in the service network in a visual mode; the service development module is a core part of the tool and provides a set of complete service development processes, including engineering creation, operation or parameter reuse, document and code generation and the like; and the issuing and registering module is used for finishing service issuing, registering the new service into the service network, and finally establishing the semantic relationship between the newly issued service and the existing service by utilizing the relationship of the existing service in the service network.
Through interaction with the services network, developers can lock interface information that needs to be multiplexed. The reuse process also relates to automatic project creation, document generation and synchronization, stub code generation, registration and release and the like. The description is as follows:
1. newly building a Java project at a position selected by a developer, and naming the Java project as a service name input by the developer;
2. generating a WEB service description language (WSD L) document and a multi-dimensional semantic description language (MSD L) document of a new service under a project catalog;
3. dynamically updating WEB services description language (WSD L) and multi-dimensional semantic description language (MSD L) documents of a service according to user reuse or reuse cancellation operations;
4. editing WEB service description language (WSD L) and multi-dimensional semantic description language (MSD L) documents by a user;
5. repeating the steps 3 and 4 until the user selects a Java code option;
6. automatically synchronizing a WEB services description language (WSD L) document and a multi-dimensional semantic description language (MSD L) document to compensate for document inconsistencies due to user overlooking;
7. generating Java language codes in a reverse direction under an engineering source file directory by the description documents;
8. after the developer realizes the realization of the specific business logic code, service deployment is carried out;
9. analyzing a WEB service description language (WSD L) document and a multi-dimensional semantic description language (MSD L) document, recording the syntactic information and the semantic information of the new service in a service network, and finishing the registration of the new service in the service network;
10. establishing a semantic relationship between a newly issued service and an existing service by using an existing service relationship in a service network;
11. and (6) ending.
The user only needs to select and complete the coding realization of the business logic in the process of utilizing the tool to develop the service, and the rest is automatically completed by the tool.
Claims (1)
1. An automatic service adaptation method based on semantics is characterized by comprising the following implementation steps:
firstly, generating a service description document: searching multi-dimensional semantic information from a service network by using joint multi-condition search to form a semantic ontology structure and generate a normalized service description document;
and step two, realizing service adaptation: creating an adapter development project according to the service description document, adapting the service through code instrumentation, and multiplexing the operation and interface of the service to generate a service code and a document;
step three, releasing service: and registering the new service into the service network, and establishing a semantic relationship between the newly issued service and the existing service by utilizing the existing service relationship.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910031383.1A CN111435297A (en) | 2019-01-14 | 2019-01-14 | Automatic service adaptation method based on semantics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910031383.1A CN111435297A (en) | 2019-01-14 | 2019-01-14 | Automatic service adaptation method based on semantics |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111435297A true CN111435297A (en) | 2020-07-21 |
Family
ID=71580456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910031383.1A Pending CN111435297A (en) | 2019-01-14 | 2019-01-14 | Automatic service adaptation method based on semantics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111435297A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605141A (en) * | 2008-08-05 | 2009-12-16 | 天津大学 | Web service relational network system based on semanteme |
CN103577931A (en) * | 2013-10-28 | 2014-02-12 | 北京邮电大学 | Reusable-software-service management system based on semanteme and implementation method thereof |
CN103699391A (en) * | 2013-12-30 | 2014-04-02 | 天津大学 | Web service transformation method from traditional web services to multi-dimensional semantic models |
CN104239068A (en) * | 2014-09-30 | 2014-12-24 | 天津大学 | Multi-dimension semantic web service development method |
-
2019
- 2019-01-14 CN CN201910031383.1A patent/CN111435297A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101605141A (en) * | 2008-08-05 | 2009-12-16 | 天津大学 | Web service relational network system based on semanteme |
CN103577931A (en) * | 2013-10-28 | 2014-02-12 | 北京邮电大学 | Reusable-software-service management system based on semanteme and implementation method thereof |
CN103699391A (en) * | 2013-12-30 | 2014-04-02 | 天津大学 | Web service transformation method from traditional web services to multi-dimensional semantic models |
CN104239068A (en) * | 2014-09-30 | 2014-12-24 | 天津大学 | Multi-dimension semantic web service development method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107291523B (en) | Web front-end message bus system | |
CN101046810B (en) | System for automatic setting relation model and its method | |
CN101799826B (en) | Networking data sharing system and method based on virtual view | |
US20060206883A1 (en) | Semantic system for integrating software components | |
US8453105B2 (en) | Device and method for automatically building applications from specifications and from off-the-shelf components selected by semantic analysis | |
JP2004259271A (en) | Method and system for language translation | |
Marcos et al. | Representing web services with uml: A case study | |
CN102158516B (en) | Service composition realization method compiler | |
CN101146105A (en) | Discovery web service | |
CA2443447A1 (en) | System and method for conversion between graph-based representations and structural text-based representations of business processes | |
CN101605141A (en) | Web service relational network system based on semanteme | |
CN104881285A (en) | Code snippet marking and reusing system based on body | |
CN101526898A (en) | Representing and processing method for semantic data of semantic-oriented web service program design | |
CN103699746B (en) | CADDS5 piping three-dimensional design method based on data base and system | |
CN111435297A (en) | Automatic service adaptation method based on semantics | |
CN112783836A (en) | Information exchange method, device and computer storage medium | |
CN100583926C (en) | Telecommunication traffic forming method and system facing position service | |
Pernici et al. | Conceptual modeling and software components reuse: towards the unification | |
CN104239068A (en) | Multi-dimension semantic web service development method | |
JP2012528367A (en) | Method and associated system for adapting data in a data transmission system | |
Tang et al. | WISE: A prototype for ontology driven development of web information systems | |
Miller et al. | Wsdl-s: Adding semantics to wsdl | |
Radeck et al. | Semantic mediation techniques for composite web applications | |
Miller et al. | WSDL-S: A Proposal to W3C WSDL 2.0 Committee | |
CN109032569A (en) | A kind of RESTful service method for automatically releasing based on attribute tags |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200721 |