CN103198070A - Service data accessing and processing method and device - Google Patents

Service data accessing and processing method and device Download PDF

Info

Publication number
CN103198070A
CN103198070A CN201210003670XA CN201210003670A CN103198070A CN 103198070 A CN103198070 A CN 103198070A CN 201210003670X A CN201210003670X A CN 201210003670XA CN 201210003670 A CN201210003670 A CN 201210003670A CN 103198070 A CN103198070 A CN 103198070A
Authority
CN
China
Prior art keywords
service data
interest
data
record
point
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.)
Granted
Application number
CN201210003670XA
Other languages
Chinese (zh)
Other versions
CN103198070B (en
Inventor
乔扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Navinfo Co Ltd
Original Assignee
Navinfo Co Ltd
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 Navinfo Co Ltd filed Critical Navinfo Co Ltd
Priority to CN201210003670.XA priority Critical patent/CN103198070B/en
Publication of CN103198070A publication Critical patent/CN103198070A/en
Application granted granted Critical
Publication of CN103198070B publication Critical patent/CN103198070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a service data accessing and processing method and device. The method comprises the following steps: obtaining service data of various formats; automatically generating service data records according to the formats of the service data; and storing the service data records into a data base of an electronic map. The scheme of the invention can support various CP (Content Provider) service data formats and connector forms, so as to facilitate service data processing and data storage.

Description

A kind of service data access processing method and device
Technical field
The present invention relates to the electronic map data process field, refer to a kind of service data access processing method and device especially.
Background technology
Present electronic chart industry competition fierceness, the user not only has been satisfied with POI (Point ofInterest, point of interest) Back ground Information (generally including: title, address, phone), for hotel, the such point of interest in hotel, the user also wishes to know lodging price, star, comment, the even depth information of whether can stopping, whether can surf the Net.
This depth information is then by CP (Content Provider, content supplier) provides, the access way of CP generally offers partner by CP, be responsible for inserting data and service externally is provided by partner, because interface and the unified standard of data layout neither one of present CP, so interface and data requirement that inserting the CP data still provides at some CP at present carry out stand-alone development, each access all will drop into lot of manpower and material resources.Though the solution of network information gathering is a lot of at present, be to gather portal website, news media, company information etc. mostly, mainly be to obtain content by HTTP, and resolve the html text that obtains, deposit database in, can not satisfy the demand that CP inserts fully.
For the data that the network information gathering system acquisition arrives, also need to carry out again artificial matching addresses, perhaps secondary development will insert data and mate with POI, consume manpower and increase data processing time.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of service data and inserts matching process and device, supports multiple CP service data form and interface shape, makes things convenient for processing and the data loading of service data.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of service data access processing method, comprising:
Obtain the service data of multiple form;
Form according to described service data generates the service data record automatically;
Described service data record is deposited in the database of electronic chart.
Wherein, also comprise after the step of the described database that described service data record is deposited in electronic chart:
The attribute information of described service data record in the described database with point of interest mated, obtain a matching result;
If described matching result is coupling fully, then set up the related of described service data record and described point of interest, described service data is recorded be added in the depth attribute information bank of described point of interest;
If described matching result is similar coupling, then revise affirmation after, described service data record is added in the depth attribute information bank of described point of interest;
If described matching result is not for matching, then generates new point of interest according to described service data record, and described service data is recorded in the depth attribute information bank that is added into described new point of interest.
Wherein, the described step of obtaining the service data of multiple form comprises:
Obtain the service data of multiple form by the service data interface of multiple form.
Wherein, described form according to the described service data step that generates service data record automatically comprises:
The service data of described multiple form is resolved to data class;
Automatically generate the service data record of class file form according to described data class.
Wherein, the described step that deposits described service data record the database of electronic chart in comprises:
Set up the service data table according to described service data record;
Set up the mapping relations between described data class and the described service data table;
Described mapping relations are preserved into described service data table;
Described service data table is deposited in the database of electronic chart.
Wherein, describedly also comprise after setting up the service data table according to described service data record:
Set up the backup services tables of data of described service data table according to described service data record.
Wherein, the described step of setting up the backup services tables of data of described service data table according to described service data record also comprises afterwards:
Obtain the service data of the up-to-date multiple form that once obtains;
Service data in described service data table record is deposited in the described backup services tables of data;
The service data of the described up-to-date multiple form that once obtains is deposited in the described service data table;
More described service data table and described backup services tables of data obtain newly-increased service data tables of data, revise service data tables of data and deletion service data tables of data.
Wherein, the described step that obtains newly-increased service data tables of data, modification service data tables of data and deletion service data tables of data also comprises afterwards:
With the newly-increased service data in the described newly-increased service data tables of data, be added in the depth attribute information bank of the point of interest that is complementary with described service data record;
With the modification service data in the described modification service data tables of data, be added in the depth attribute information bank of the point of interest that is complementary with described service data record;
According to the deletion service data in the described deletion service data tables of data, the respective service data in the depth attribute information bank of the point of interest that deletion and described service data record are complementary, and delete the matching relationship of described service data record and described point of interest.
Wherein, described data class is the JAVA data class.
Embodiments of the invention also provide a kind of service data to insert treating apparatus, comprising:
Obtain module, be used for obtaining the service data of multiple form;
Processing module is used for generating the service data record automatically according to the form of described service data;
Preserve module, be used for described service data record is deposited in the database of electronic chart.
Wherein, above-mentioned treating apparatus also comprises:
Judge module is used for the described service data record of described database and the attribute information of point of interest are mated, and obtains matching result;
The first result treatment module is used at matching result when mating fully, sets up the related of described service data record and described point of interest, described service data is recorded be added in the depth attribute information bank of described point of interest;
The second result treatment module is used for when matching result is similar coupling, revise affirmation after, described service data recorded be added in the depth attribute information bank of described point of interest.
The beneficial effect of technique scheme of the present invention is as follows:
In the such scheme, by obtaining the service data of multiple form, this service data is the service data that is provided by content supplier, form according to service data generates the service data record automatically, and this service data record is deposited in the database of electronic chart, thereby can support the service data of multiple interfaces form, need not be the data layout of each service data interface definition special use, reduce the development amount; And mate by the attribute information with point of interest, expand the depth attribute information of point of interest.
Description of drawings
Fig. 1 is service data access processing method schematic flow sheet of the present invention;
Fig. 2 is the particular flow sheet of service data access processing method shown in Figure 1;
Fig. 3 is another realization flow figure of service data access processing method of the present invention;
Fig. 4 is the particular flow sheet of service data access processing method shown in Figure 3;
Fig. 5 is that service data of the present invention inserts the treating apparatus structured flowchart.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, embodiments of the invention provide a kind of service data access processing method, comprising:
Step 11 is obtained the service data of multiple form;
Step 12 generates the service data record automatically according to the form of described service data;
Step 13 records described service data the database that deposits electronic chart in.
This embodiment of the present invention is by obtaining the service data of multiple form, this service data is the service data that is provided by content supplier, form according to service data generates the service data record automatically, and this service data record is deposited in the database of electronic chart, thereby can support the service data of multiple interfaces form, need not be the data layout of each service data interface definition special use, reduce the development amount.
Particularly, above-mentioned steps 11 specifically can comprise: the service data that obtains multiple form by the service data interface of multiple form.
Step 12 can specifically comprise: the service data of described multiple form is resolved to data class; Automatically generate the service data record of class file form according to described data class; The data class here is as being the JAVA class;
Correspondingly, above-mentioned steps 13 can specifically comprise: set up the service data table according to described service data record; Set up the mapping relations between described data class and the described service data table; Described mapping relations are preserved into described service data table; Described service data table is deposited in the database of electronic chart.
Preferably, describedly can also comprise after setting up the service data table according to described service data record: the backup services tables of data of setting up described service data table according to described service data record.Further, after setting up the backup services tables of data, can further include: the service data that obtains the up-to-date multiple form that once obtains; Service data in described service data table record is deposited in the described backup services tables of data; The service data of the described up-to-date multiple form that once obtains is deposited in the described service data table; More described service data table and described backup services tables of data obtain newly-increased service data tables of data, revise service data tables of data and deletion service data tables of data.
As shown in Figure 2, be a specific implementation flow process of method shown in Figure 1:
Step 21, data acquisition, obtain service data by CP (content supplier) data-interface (HTTP, WebService or RSS), particularly, the configuration page is provided, dispose CP interface IP address, interface parameters and renewal frequency by the user, system can pass through the interface IP address of configuration and the service data of parameter acquiring correspondence, and according to the renewal frequency regular update Analysis Service data that dispose.
Step 22 judges whether this obtains service data is to obtain for the first time, if, then enter step 23, otherwise, step 28 entered;
Step 23, the analysis service data layout, create the JAVA class, particularly, the service data that analysis is obtained is the JAVA class with the format analysis of service data, and program can be identified the data layout (XML, JSON) that obtains automatically, form according to correspondence generates the JAVA class, uses the on-the-flier compiler of JAVA to generate corresponding class file here.
Step 24 according to the JAVA class that above-mentioned steps 23 generates, is set up corresponding service data table, table name is class name, and the literary name section is generic attribute, (this shows hereinafter referred to as the CP tables of data), the CP data backup table of foundation and CP tables of data same structure uses during replacement analysis simultaneously;
Step 25 is set up the mapping relations of JAVA class and service data table; The JAVA class of above-mentioned steps 23 generations and the service data table of step 24 generation are set up mapping relations, use hibernate to shine upon herein, automatically generating configuration file (or note) will show to shine upon with the JAVA class, and dynamic load Map Profile (or the JAVA class of having added note), do not need to restart server;
Step 26 is converted into the JAVA object with service data;
Step 27 deposits the JAVA object that transforms in the service data table;
Step 28, if not obtaining for the first time, then the update service tables of data when upgrading, will be obtained whole service datas from the CP interface again at every turn, and the backup services tables of data will be gone in the service data unloading that the last time obtains;
Step 29 deposits newly downloaded service data in the service data table afterwards again;
Step 30, treating that total data is obtained finishes, backup services tables of data and service data table are compared, analyze data newly-increased, that revise, delete, and these data are deposited in newly-increased service data table respectively, revise the service data table, delete the service data table.
In another embodiment of the present invention, as shown in Figure 3, comprise on the basis of above-mentioned steps 11-13, also comprise:
Step 14 is mated the attribute information of the described service data record in the described database with point of interest;
Step 15 if matching result is coupling fully, is then set up the related of described service data record and described point of interest, described service data is recorded be added in the depth attribute information bank of described point of interest;
Step 16, if matching result is similar coupling, then revise affirmation after, described service data record is added in the depth attribute information bank of described point of interest;
Step 17 if matching result is not for matching, then generates new point of interest according to described service data record, and described service data is recorded in the depth attribute information bank that is added into described new point of interest.
This embodiment is by mating the service data record attribute information with point of interest, extendible POI (point of interest) data and enrich POI depth attribute information.
Concrete, as also comprising after the above-mentioned step that obtains newly-increased service data tables of data, modification service data tables of data and deletion service data tables of data:
With the newly-increased service data in the described newly-increased service data tables of data, be added in the depth attribute information bank of the point of interest that is complementary with described service data record;
With the modification service data in the described modification service data tables of data, be added in the depth attribute information bank of the point of interest that is complementary with described service data record;
According to the deletion service data in the described deletion service data tables of data, the respective service data in the depth attribute information bank of the point of interest that deletion and described service data record are complementary, and delete the matching relationship of described service data record and described point of interest.
As shown in Figure 4, in embodiment illustrated in fig. 3, with the specific implementation process of the attribute information of the service data in the service data table and POI point of interest coupling:
The matching addresses technology is mated with POI by title, address, phone, the coordinate information of CP service data are next.This flow process in two kinds of situation, first kind of situation when obtaining service data for the first time, need be mated whole service datas, second kind of situation during the update service data, carried out corresponding processing according to analysis result (newly-increased, revise, deletion).When newly-increased, need walk the flow process identical with first download; During modification, only need upgrade the data in the POI depth attribute information bank; During deletion, only need delete the data in the POI depth attribute information bank.
The first flow process of downloading mainly comprises following step:
Step 31 is taken out the CP service data that has imported from CP service data table;
Step 32 uses title, address, phone, the coordinate information of CP service data to mate with POI;
Step 33, judge whether the coupling, matching result is divided into 3 classes: existence can with the POI of its coupling, exist the POI similar to it to be confirmed, do not have POI can with its coupling;
Step 34, existence can with the POI of its coupling, for these type of data, directly with POI therewith service data set up related;
Step 35 deposits the result in POI depth attribute information bank;
Step 36, judge existing can the POI similar to it;
Step 37 exists the POI similar to it to be confirmed, for this type of service data, need manually confirm, will confirm result feedback after, but import system and set up relatedly with POI and deposits the result in POI depth attribute information bank;
Step 38, do not have POI can with its coupling, for this type of service data, use geocoding to generate coordinate, at first with it as newly-increased POI expansion POI storehouse, again it is deposited in POI depth attribute information bank afterwards.
In the above embodiment of the present invention, by with various ways interface service data importing database, the service data that interface is obtained is converted into the JAVA object, makes things convenient for data to handle and data loading; And timing update service data, the freshness of maintenance service data; Each renewal back and service data table contrast last time analyze data newly-increased, that revise and delete, reduce the data volume of matching addresses.And further title, phone, address and the coordinate information by data mates with electronic chart POI, extendible POI data and enrich POI depth attribute information.
As shown in Figure 5, embodiments of the invention also provide a kind of service data to insert treating apparatus 50, comprising:
Obtain module 51, be used for obtaining the service data of multiple form;
Processing module 52 is used for generating the service data record automatically according to the form of described service data;
Preserve module 53, be used for described service data record is deposited in the database of electronic chart.
Further, said apparatus also comprises:
Judge module 54 is used for the described service data record of described database and the attribute information of point of interest are mated, and obtains matching result;
The first result treatment module 55 is used at matching result when mating fully, sets up the related of described service data record and described point of interest, described service data is recorded be added in the depth attribute information bank of described point of interest;
The second result treatment module 56 is used for when matching result is similar coupling, revise affirmation after, described service data recorded be added in the depth attribute information bank of described point of interest.
Need to prove that all implementations among the said method embodiment all are applicable among the embodiment of this device, also can reach the technique effect identical with method embodiment, do not repeat them here.
The above is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (11)

1. a service data access processing method is characterized in that, comprising:
Obtain the service data of multiple form;
Form according to described service data generates the service data record automatically;
Described service data record is deposited in the database of electronic chart.
2. service data access processing method according to claim 1 is characterized in that, also comprises after the step of the described database that described service data record is deposited in electronic chart:
The attribute information of described service data record in the described database with point of interest mated, obtain a matching result;
If described matching result is coupling fully, then set up the related of described service data record and described point of interest, described service data is recorded be added in the depth attribute information bank of described point of interest;
If described matching result is similar coupling, then revise affirmation after, described service data record is added in the depth attribute information bank of described point of interest;
If described matching result is not for matching, then generates new point of interest according to described service data record, and described service data is recorded in the depth attribute information bank that is added into described new point of interest.
3. service data access processing method according to claim 2 is characterized in that, the described step of obtaining the service data of multiple form comprises:
Obtain the service data of multiple form by the service data interface of multiple form.
4. service data access processing method according to claim 3 is characterized in that, the step that described form according to described service data generates the service data record automatically comprises:
The service data of described multiple form is resolved to data class;
Automatically generate the service data record of class file form according to described data class.
5. service data access processing method according to claim 4 is characterized in that, the described step that deposits described service data record the database of electronic chart in comprises:
Set up the service data table according to described service data record;
Set up the mapping relations between described data class and the described service data table;
Described mapping relations are preserved into described service data table;
Described service data table is deposited in the database of electronic chart.
6. service data access processing method according to claim 5 is characterized in that, describedly also comprises after setting up the service data table according to described service data record:
Set up the backup services tables of data of described service data table according to described service data record.
7. service data access processing method according to claim 6 is characterized in that, the described step of setting up the backup services tables of data of described service data table according to described service data record also comprises afterwards:
Obtain the service data of the up-to-date multiple form that once obtains;
Service data in described service data table record is deposited in the described backup services tables of data;
The service data of the described up-to-date multiple form that once obtains is deposited in the described service data table;
More described service data table and described backup services tables of data obtain newly-increased service data tables of data, revise service data tables of data and deletion service data tables of data.
8. service data access processing method according to claim 7 is characterized in that, the described step that obtains newly-increased service data tables of data, modification service data tables of data and deletion service data tables of data also comprises afterwards:
With the newly-increased service data in the described newly-increased service data tables of data, be added in the depth attribute information bank of the point of interest that is complementary with described service data record;
With the modification service data in the described modification service data tables of data, be added in the depth attribute information bank of the point of interest that is complementary with described service data record;
According to the deletion service data in the described deletion service data tables of data, the respective service data in the depth attribute information bank of the point of interest that deletion and described service data record are complementary, and delete the matching relationship of described service data record and described point of interest.
9. according to each described service data access processing method of claim 4-8, it is characterized in that described data class is the JAVA data class.
10. a service data inserts treating apparatus, it is characterized in that, comprising:
Obtain module, be used for obtaining the service data of multiple form;
Processing module is used for generating the service data record automatically according to the form of described service data;
Preserve module, be used for described service data record is deposited in the database of electronic chart.
11. service data according to claim 10 inserts treating apparatus, it is characterized in that, also comprises:
Judge module is used for the described service data record of described database and the attribute information of point of interest are mated, and obtains matching result;
The first result treatment module is used at matching result when mating fully, sets up the related of described service data record and described point of interest, described service data is recorded be added in the depth attribute information bank of described point of interest;
The second result treatment module is used for when matching result is similar coupling, revise affirmation after, described service data recorded be added in the depth attribute information bank of described point of interest.
CN201210003670.XA 2012-01-06 2012-01-06 A kind of service data access processing method and device Active CN103198070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210003670.XA CN103198070B (en) 2012-01-06 2012-01-06 A kind of service data access processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210003670.XA CN103198070B (en) 2012-01-06 2012-01-06 A kind of service data access processing method and device

Publications (2)

Publication Number Publication Date
CN103198070A true CN103198070A (en) 2013-07-10
CN103198070B CN103198070B (en) 2019-07-09

Family

ID=48720639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210003670.XA Active CN103198070B (en) 2012-01-06 2012-01-06 A kind of service data access processing method and device

Country Status (1)

Country Link
CN (1) CN103198070B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299126A (en) * 2018-11-21 2019-02-01 金蝶软件(中国)有限公司 Method of data synchronization, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013438A (en) * 2007-02-08 2007-08-08 张越青 Method for extending and inquiring graph and multimedia data of electronic map
US20080307512A1 (en) * 2007-05-26 2008-12-11 Pankaj Tandon Property Centric Real Estate Maps with Personalized Points of Interest
CN101677472A (en) * 2008-09-19 2010-03-24 中国移动通信集团辽宁有限公司 Mobile communication navigation method, system and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013438A (en) * 2007-02-08 2007-08-08 张越青 Method for extending and inquiring graph and multimedia data of electronic map
US20080307512A1 (en) * 2007-05-26 2008-12-11 Pankaj Tandon Property Centric Real Estate Maps with Personalized Points of Interest
CN101677472A (en) * 2008-09-19 2010-03-24 中国移动通信集团辽宁有限公司 Mobile communication navigation method, system and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299126A (en) * 2018-11-21 2019-02-01 金蝶软件(中国)有限公司 Method of data synchronization, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103198070B (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN102917061B (en) Resource synchronization method and system
CN104158886B (en) Flow-type performing method for applications
CN102289484B (en) Method for scanning multimedia files of storage equipment based on android system
CN101364979B (en) Downloaded material parsing and processing system and method
CN103164435B (en) A kind of acquisition method of network data and system
CN102904960B (en) A kind of information synchronization system and method based on RSS
CN102521232B (en) Distributed acquisition and processing system and method of internet metadata
CN102521257B (en) Method and device for providing corresponding on-line picture according to thumbnail
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN109299157A (en) A kind of data export method and device of distributed big single table
CN102193798B (en) Method for automatically acquiring Open application programming interface (API) based on Internet
CN101441629A (en) Automatic acquiring method of non-structured web page information
CN102436503A (en) Data condition filtering and screening method and screener
CN102314437B (en) A kind of method and apparatus that multiple format resource is browsed for support
CN106503158A (en) Method of data synchronization and device
CN101833580A (en) Report inquiring system and data acquisition method and device thereof
CN102222112B (en) Resource management device and resource management method
CN102486748A (en) Method and device for performance test
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
CN101315629B (en) Downloading method and system for web page dynamic contents
CN107239568B (en) Distributed index implementation method and device
CN103914465A (en) User interest graph based intelligent customization audio listening implementation system and method
CN104219271B (en) Based on the asynchronous multiserver synchronous method for downloading the page of multithreading
CN103198070A (en) Service data accessing and processing method and device
CN102411577A (en) Method and equipment for analyzing generalization keywords based on benchmark

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant