CN104636446B - A kind of legacy Web application mobile edition method for transformation based on cloud computing mode - Google Patents
A kind of legacy Web application mobile edition method for transformation based on cloud computing mode Download PDFInfo
- Publication number
- CN104636446B CN104636446B CN201510026078.5A CN201510026078A CN104636446B CN 104636446 B CN104636446 B CN 104636446B CN 201510026078 A CN201510026078 A CN 201510026078A CN 104636446 B CN104636446 B CN 104636446B
- Authority
- CN
- China
- Prior art keywords
- page
- template
- atom
- classification
- action sequence
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of legacy Web application mobile edition method for transformation based on cloud computing mode.The method include the steps that 1) preset a template respectively to the setting atom classification in web application page, the template corresponding one of each atom classification obtains the action sequence of data cell;2) each PC editions Web page to be transformed is automatically analyzed using the template, identifies the atomic data unit for wherein corresponding to setting atom classification, and generate the action sequence for obtaining data cell;3) data that the action sequence obtains will be executed to be filled into the template of corresponding atom classification, generates the mobile edition page;4) the mobile edition page after conversion is generated into new URL, and redirects sentence in the PC editions Web page addition, for when the PC editions Web page of mobile terminal accessing, server can be redirected to the mobile edition page.Present invention conversion quality with higher and transfer efficiency, and flexibility is stronger.
Description
Technical field
The present invention is a kind of legacy Web application mobile edition method for transformation based on cloud computing mode, belongs to software technology neck
Domain.
Background technique
" the 31st China Internet network state of development statistical report form " display: mobile phone has become the first big online eventually
End, accounts for the 74.5% of whole netizen's quantity using netizen's quantity of surfing Internet with cell phone.However most of applications at present are designed for PC,
User experience on the mobile apparatus is influenced, because mobile device screen size is small, mode of operation is different from PC, and network bandwidth has
Limit.
In view of the above-mentioned problems, most direct solution is to develop the completely new Web application an of facing mobile apparatus again.
For example, the owner of Web application can be directed to based on popular response type user interface (Responsive UI) design method
Screen size, mode of operation and the communication modes of mobile device, developing a mobile edition corresponding with original application again should
With.Although the effect of this implementation is best, there are two problems for this implementation: on the one hand, exploitation movement again
Version Web is applied for personal or medium-sized and small enterprises, is needed to rewrite a set of HTML, CSS, JavaScript code, is opened
It sends out cost and cost is larger;On the other hand, the PC editions application versions different with two frameworks of mobile edition also bring higher dimension
Cost is protected, when needing to modify application content, it is necessary to while the PC editions applications different with mobile edition two are modified, this can undoubtedly increase
The maintenance cost of big Web application.
It can be seen that being opened although the application for developing a mobile version again will use family and obtain best experience
It is all larger to send out cost, maintenance cost;And automatically changing effect is bad.How semi-automatically legacy Web application to be switched to as a result,
Mobile edition is a technical problem urgently to be resolved.
Summary of the invention
Aiming at the problems existing in the prior art, the object of the present invention is to provide a kind of legacy based on cloud computing mode
Web application mobile edition method for transformation MobiTran.Its core concept are as follows: (following simple using owner for legacy Web in exploitation
Claim developer) the page editing tool of semi-automatic transformation technology and What You See Is What You Get is provided, two sets of deployment sides are provided at runtime
Case supports the access of mobile edition application.
The technical solution of the present invention is as follows:
A kind of legacy Web application mobile edition method for transformation based on cloud computing mode, the steps include:
1) template is preset respectively to the setting atom classification in web application page, the template of each atom classification is corresponding
One obtains the action sequence of data cell;
2) each PC editions Web page to be transformed is automatically analyzed using the template, identify wherein correspond to set
Determine the atomic data unit of atom classification, and generates the action sequence for obtaining data cell;
3) data that the action sequence obtains will be executed to be filled into the template of corresponding atom classification, generates mobile edition
The page;
4) the mobile edition page after conversion is generated into new URL, and redirects sentence in the PC editions Web page addition, used
In when the PC editions Web page of mobile terminal accessing, server can be redirected to the mobile edition page.
A kind of legacy Web application mobile edition method for transformation based on cloud computing mode, the steps include:
1) template is preset respectively to the setting atom classification in web application page, the template of each atom classification is corresponding
One obtains the action sequence of data cell;
2) each PC editions Web page to be transformed is automatically analyzed using the template, identify wherein correspond to set
Determine the atomic data unit of atom classification, and generates the action sequence for obtaining data cell;
3) data that the action sequence obtains will be executed to be filled into the template of corresponding atom classification, generates mobile edition
The page;
4) proxy server is set on a web browser, when proxy server judgement accesses setting for the PC editions Web page
When standby type is mobile terminal, the mobile edition page is returned.
Further, the specific method of the step 2) includes: to preset series of features to each atom classification, by the PC
Version Web page in each region and all atom class another characteristics carry out similarity mode, obtain each region classification and
Corresponding template and its action sequence;The mould for all atom classifications that the Page Template of the PC editions Web page is obtained according to matching
Board group at.
Further, a URL regular expression is created to every a kind of similar pages, Web is grabbed according to the regular expression
Using interior all pages for meeting the regular expression, conversion of page then is carried out using the corresponding Page Template of such page,
Generate the corresponding mobile edition page.
Further, obtained classification is marked in a manner of What You See Is What You Get, and the marking operation is converted to
Corresponding action sequence is saved together with the action sequence of the template of corresponding atom classification, obtains final action sequence.
Further, the template in the Page Template change page is modified in a manner of What You See Is What You Get, with corresponding original
The template of subclass is saved together, and obtains final Page Template.
The present invention mainly includes four steps:
1, automatic conversion.Tool first automatically analyzes the page according to the URL that developer inputs, and generates automatic conversion
Results page and transformation rule.
2, it modifies by hand.Tool provides the mode of What You See Is What You Get for developer, supports it to the page after automatic conversion
Hand labeled page area type, page change pattern increase the element with mobile edition characteristic, while amendment step 1 generates
Transformation rule.
3, grab simultaneously conversion page.The URL regular expression crawl Web that tool is inputted according to developer is using interior all full
The page of the foot regular expression, and converted using the rule that step 2 generates.Action sequence and corresponding templates merging are
Corresponding transformation rule.
4, deployment.After developer completes above-mentioned steps using the interior all pages for needing to convert to Web, tool is exploitation
Person provides two sets of deployment way, supports the access of mobile edition application.
The specific technical solution of above-mentioned steps is as follows:
1. automatic conversion.The automatic conversion page will make the preliminary display screen for adapting to mobile device of Web application and using habit
It is used.Automatic conversion works firstly the need of a series of unit classifications of determination, such as list, grid, paragraph, table, picture, button
Deng for each atom classification, manually according to its feature and default template.Then parent page is analyzed, identifies it
In correspond to above-mentioned classification atomic data unit, and generate from the unit obtain data action sequence, finally by movement sequence
Column interpreter executes action sequence and obtains data, and data are filled into the template of corresponding atom classification by template engine, raw
At the mobile edition page.The method that identification data take similarity mode presets series of features first against each classification, by page
Each region and all atom class another characteristics in face carry out similarity mode, and the classification in the region is determined with this.From turn
The whole work changed are completed in cloud platform, and the content finally stored includes the action sequence and Page Template for obtaining data,
Middle Page Template is made of the template of atom classifications all in the page.
2. modification by hand.Tool supports developer to edit in a manner of What You See Is What You Get.In the automatic conversion stage, turn
The result changed may not be able to enable developer be entirely satisfactory, such as list is unidentified, Table recognition mistake, and user wishes to replace template
Etc..In manual editing's stage, developer can be with the element type in the hand labeled page, it can by the element mark in the page
It is denoted as grid, paragraph, table etc., which will be converted to corresponding action sequence and the action sequence of automatic conversion saves
Together, final action sequence is obtained;Meanwhile the template of corresponding atom classification can be also stored in the template of automatic conversion
Together, final template is obtained.Developer can also change the template of the atom classification in the page, such as switching has figure, without figure
List, template after change will correspond to the template of atom classification in cover page template, which will come into force immediately.All volumes
It collects work to carry out in a manner of What You See Is What You Get, the mapping that developer operates action sequence, model modification is carried out by tool.
3. grabbing simultaneously conversion page.If Web has a similar structure using interior multiple pages, i.e., they can be used
Identical action sequence and template are converted, then this multiple page is claimed to be similar, such as news website is all
News details page is all similar.The similar page is usually constructed with similar URL, these pages can be only matched with manual construction
Regular expression, tool grabs Web according to the regular expression and applies interior all pages for meeting the regular expression, and make
The template and action sequence generated with step 2 is converted.
4. deployment.This tool provides two sets of deployment schemes for developer.All mobile edition pages in scheme one, after conversion
New URL is generated, the mobile edition page is accessed by new URL.Program needs add in developer in all original Web pages
Orientation sentence is aggravated, is guaranteed when the PC editions pages of mobile terminal accessing, server can be redirected to the mobile edition page of generation.Side
In case two, tool provides proxy server and has packed the mobile application of browser, and proxy server is arranged in browser, and homepage is
Former Web application homepage.Terminal user judges device type by mobile application accession page at proxy server, thus
The mobile edition page is returned, so that terminal user may browse through the mobile edition page.Above two scheme is for terminal user
Be it is transparent, terminal without doing anything, all completes beyond the clouds by conversion work.
Compared with prior art, the positive effect of the present invention are as follows:
The present invention ensure that higher conversion quality and conversion effect by semi-automatically completing Web application mobile
Rate.Two sets of deployment schemes select developer according to actual needs when operation, and flexibility is stronger.
Detailed description of the invention
Attached drawing is flow chart of the method for the present invention.
Specific embodiment
This section provides use with Beijing college information science and technology institute website (http://eecs.pku.edu.cn)
The example that MobiTran carries out Web application mobile, processing method process are as shown in the figure.The website is Peking University's Information Center
The portal website for learning technical college includes the modules such as institute's news, notice bulletin, educational administration's notice, lecture information.
Firstly, generating transformation rule for every a kind of page.For example, being used for a certain institute's news list page
When MobiTran tool, the URL of input page first, system can automatically analyze the page, identify the list of page-out, and generate certainly
Turn changes results page, Page Template and action sequence.
User's template that modification generates by hand is supported later.User operates in the results page of automatic conversion, is
Operation is translated as action sequence by system, while template is modified.For example, if certain a line news does not have in automatic conversion process
There is the row for being identified as list, then can be configured manually to it, correspondingly, Page Template and action sequence also be will do it
Modification.
At this point, the template and action sequence of institute's news list page has been obtained, can be adapted for all
Institute's news list page, regular expression, which can be used, indicates the URL of this kind of page.For example, first list of institute's news
Does is the URL of the page http://eecs.pku.edu.cn/index.aspx? menuid=4&type=article&lanmuid
=63&page=1&language=cn, the URL of second original list are http://eecs.pku.edu.cn/
Index.aspx? menuid=4&type=article&lanmuid=63&page=2&language=cn.It at this time can be with
Construct regular expression http://eecs .pku .edu .cn /index .aspx? menuid=4&type=
Article&lanmuid=63&page=(d)+&language=cn.The regular expression that system is inputted according to user, it is right
The page for meeting the regular expression is grabbed and is converted.
Finally, when Web using it is interior institute conversion in need the page convert after, tool will generation mobile edition application,
It can be disposed using scheme one or scheme two;User passes through the application, the accessible mobile edition page.
Claims (8)
1. a kind of legacy Web application mobile edition method for transformation based on cloud computing mode, the steps include:
1) template is preset respectively to the setting atom classification in web application page, the template corresponding one of each atom classification obtains
Take the action sequence of data cell;The atom classification includes list, grid, paragraph, table, picture, button;
2) series of features is preset to each atom classification, by each region in each PC editions Web page to be transformed and owns
Atom class another characteristic carries out similarity mode, obtains the classification and corresponding template and its action sequence in each region;The PC
The template for all atom classifications that the Page Template of version Web page is obtained according to matching forms;
3) data that the action sequence obtains will be executed to be filled into the template of corresponding atom classification, generates mobile edition page
Face;
4) the mobile edition page after conversion is generated into new URL, and redirects sentence in the PC editions Web page addition, for working as
When the PC editions Web page of mobile terminal accessing, server can be redirected to the mobile edition page.
2. the method as described in claim 1, which is characterized in that marked in a manner of What You See Is What You Get to obtained classification
Note, and the marking operation is converted into corresponding action sequence, one is stored in the action sequence of the template of corresponding atom classification
It rises, obtains final action sequence.
3. the method as described in claim 1, which is characterized in that the Page Template is modified in a manner of What You See Is What You Get, with
The template of corresponding atom classification is saved together, and obtains final Page Template.
4. the method as claimed in claim 1 or 2 or 3, which is characterized in that the atom template includes: list atom template, net
Lattice atom template, paragraph atom template, table atom template, picture atom template, button atom template.
5. the method as described in claim 1, which is characterized in that create a URL regular expression, root to every a kind of similar pages
Interior all pages for meeting the regular expression are applied according to regular expression crawl Web, it is then corresponding using such page
Page Template carries out conversion of page, generates the corresponding mobile edition page.
6. a kind of legacy Web application mobile edition method for transformation based on cloud computing mode, the steps include:
1) template is preset respectively to the setting atom classification in web application page, the template corresponding one of each atom classification obtains
Take the action sequence of data cell;The atom classification includes list, grid, paragraph, table, picture, button;
2) series of features is preset to each atom classification, by each region in each PC editions Web page to be transformed and owns
Atom class another characteristic carries out similarity mode, obtains the classification and corresponding template and its action sequence in each region;The PC
The template for all atom classifications that the Page Template of version Web page is obtained according to matching forms;
3) data that the action sequence obtains will be executed to be filled into the template of corresponding atom classification, generates mobile edition page
Face;
4) proxy server is set on a web browser, when the proxy server judges the equipment class of the PC editions Web page of access
When type is mobile terminal, the mobile edition page is returned.
7. method as claimed in claim 6, which is characterized in that create a URL regular expression, root to every a kind of similar pages
Interior all pages for meeting the regular expression are applied according to regular expression crawl Web, it is then corresponding using such page
Page Template carries out conversion of page, generates the corresponding mobile edition page.
8. method as claimed in claim 6, which is characterized in that marked in a manner of What You See Is What You Get to obtained classification
Note, and the marking operation is converted into corresponding action sequence, one is stored in the action sequence of the template of corresponding atom classification
It rises, obtains final action sequence;The template in the Page Template change page is modified in a manner of What You See Is What You Get, and it is right
It answers the template of atom classification to be saved together, obtains final Page Template.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510026078.5A CN104636446B (en) | 2015-01-19 | 2015-01-19 | A kind of legacy Web application mobile edition method for transformation based on cloud computing mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510026078.5A CN104636446B (en) | 2015-01-19 | 2015-01-19 | A kind of legacy Web application mobile edition method for transformation based on cloud computing mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104636446A CN104636446A (en) | 2015-05-20 |
CN104636446B true CN104636446B (en) | 2019-05-21 |
Family
ID=53215192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510026078.5A Active CN104636446B (en) | 2015-01-19 | 2015-01-19 | A kind of legacy Web application mobile edition method for transformation based on cloud computing mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104636446B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105938490B (en) * | 2016-04-14 | 2020-01-03 | 北京思特奇信息技术股份有限公司 | Intelligent switching method and system for web application system connection data source |
CN108255534B (en) * | 2016-12-27 | 2021-10-01 | 北京京东尚科信息技术有限公司 | PC (personal computer) end application processing method, processing device, electronic equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101772196A (en) * | 2008-12-30 | 2010-07-07 | 中国移动通信集团公司 | Method and system for processing message sent by mobile terminal and acting server |
CN101815093A (en) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | Method for adapting webpage to mobile terminal and mobile terminal page adaptation device |
CN103942211B (en) * | 2013-01-21 | 2019-04-26 | 腾讯科技(深圳)有限公司 | A kind of recognition methods of text page and device |
CN104035753B (en) * | 2013-03-04 | 2018-11-02 | 优视科技有限公司 | A kind of method and system of double WebView displayings customized web pages |
-
2015
- 2015-01-19 CN CN201510026078.5A patent/CN104636446B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104636446A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105580384B (en) | Touch the operable content of screen display | |
US10108715B2 (en) | Transformation and presentation of on-demand native application crawling results | |
CN104461484B (en) | The implementation method and device of front-end template | |
US8196035B2 (en) | Adaptation of a website to mobile web browser | |
US20100324887A1 (en) | System and method of online user-cycled web page vision instant machine translation | |
JP2019533205A (en) | User keyword extraction apparatus, method, and computer-readable storage medium | |
CN102446169B (en) | The translation system serviced using translation on line | |
CN109145078A (en) | The application page of the machine application is indexed | |
JP6693582B2 (en) | Document abstract generation method, device, electronic device, and computer-readable storage medium | |
KR101950126B1 (en) | Mathematical formula processing method, device, apparatus and computer storage medium | |
WO2014154033A1 (en) | Method and apparatus for extracting web page content | |
CN101963992A (en) | Method and browser for increasing webpage display speed | |
CN109299448A (en) | Resume intelligence filling method, system, server and storage medium | |
CN103970898A (en) | Method and device for extracting information based on multistage rule base | |
CN103902736A (en) | System and method for finger click word-capturing search of words displayed on mobile information equipment screen | |
CN103034496B (en) | Based on the Locally-static portal generation method of template | |
CN116992081A (en) | Page form data processing method and device and user terminal | |
CN104636446B (en) | A kind of legacy Web application mobile edition method for transformation based on cloud computing mode | |
CN103279275B (en) | Analyze method and the portable electric device of document content | |
Mangiatordi et al. | Farfalla project: browser-based accessibility solutions | |
CN103064967B (en) | A kind of method and apparatus for establishing user's binary crelation library | |
JP2023010805A (en) | Method for training document information extraction model and extracting document information, device, electronic apparatus, storage medium and computer program | |
US9996511B2 (en) | Free form website structure design | |
CN104268246B (en) | Generation accesses the method and access method and device of internet sites command script | |
CN110222144A (en) | Method for extracting content of text, device, electronic equipment and storage medium |
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 |