CN101908269A - System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language) - Google Patents

System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language) Download PDF

Info

Publication number
CN101908269A
CN101908269A CN2009100852797A CN200910085279A CN101908269A CN 101908269 A CN101908269 A CN 101908269A CN 2009100852797 A CN2009100852797 A CN 2009100852797A CN 200910085279 A CN200910085279 A CN 200910085279A CN 101908269 A CN101908269 A CN 101908269A
Authority
CN
China
Prior art keywords
information
demand
xml
traffic
service
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
CN2009100852797A
Other languages
Chinese (zh)
Other versions
CN101908269B (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.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
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 Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN2009100852797A priority Critical patent/CN101908269B/en
Publication of CN101908269A publication Critical patent/CN101908269A/en
Application granted granted Critical
Publication of CN101908269B publication Critical patent/CN101908269B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a system and a method for identifying public traffic information service demands based on XML (Extensive Makeup Language) for realizing a plurality of traffic information Web services executed by an original transportation mapping. The system comprises a storage device for storing an XML demand identification template and XML traffic service description documents, a traffic information service demand acquisition device, a traffic information service demand decomposition device, a traffic information service demand mapping device and an XML document generation device. The invention adopts an XML language which is a pure data descriptive language with good openness as an information description method, provides a friendly interaction interface for travelers, provides a clear Web service demand list for the matching and synthesis of Web services and further improves the efficiency of a public traffic information service system.

Description

Traffic-information service demand identification system and method based on XML
Technical field
The invention belongs to intelligent transportation field, particularly a kind of traffic-information service demand identification system and method based on XML.
Background technology
Along with socio-economic development, the demand to transport information when the public goes on a journey is also increasing.A series of information query systems have been built up in fields such as highway in China, railway, aviation, water transport, urban transportation at present, and the user can inquire about corresponding information respectively respectively in these information query systems.
The present application people finds that the demand identification of efficiently and accurately provides the guarantee of multi-source trip information service, is based on one of public's traffic-information service Study on Technology emphasis of WebService.Its reason is, the traffic Back ground Information based on public's transportation information service systems of WebService provides by processing all kinds of traffic-information service suppliers provides traffic trip information to traveler, and system need relate to multiple Web service in this process.For dissimilar travelers, its trip characteristics, purpose difference, the demand to traffic-information service also is not quite similar accordingly, and required Web service is also changing thereupon.For clear and definite all kinds of travelers in the trip process real needs and provide reliable Web service demand inventory to the service matching module, must carry out identification to the transport information demand of traveler, simultaneously identification result is mapped to institute's correspondence and can carries out in the Web service, can clearly show according to the transport services demand the concrete Web service that should adopt.
In sum, be necessary to provide a kind of public's traffic-information service demand identification technique, thereby real needs and the feature thereof of clear and definite all kinds of traveler in the trip process provides the Web service that can discern demand based on XML.
Summary of the invention
The invention provides a kind of public's traffic-information service demand identification system and method, be used to realize that original traffic trip demand shines upon executable a plurality of transport information Web service based on XML.
A kind of traffic-information service demand identification system based on XML comprises:
Memory storage, be used for storing X ML demand identification template and XML transport services and describe document, described XML demand identification template is according to user's travel behaviour feature, by the tree hierarchy of XML language definition, wherein at least one leaf node and higher level thereof put node and have described one type of traffic-information service demand that the user needs; Described XML transport services are described each leaf node of corresponding described tree hierarchy in the document and higher level thereof and are put nodal community and described first service, and described first service can be mapped as at least one executable transport information Web service;
Traffic-information service demand deriving means is used to obtain the original traffic trip demand information that the user submits to by the webpage of setting form;
Traffic-information service demand decomposer, be used for the XML demand identification template of preserving according to memory storage, the original traffic trip demand information that traffic-information service demand deriving means is obtained decomposes, and determines the various traffic-information service demands that the user needs;
Traffic-information service demand mapping device, document is described in the XML transport services that are used for preserving according to memory storage, and each demand of user is mapped as a plurality of transport information Web services;
The XML document generating apparatus is used for a plurality of transport information Web service, these a plurality of XML transport information Web service documents of carrying out the transport information Web service of generation description carried out that map out according to traffic-information service demand mapping device.
Described traffic-information service demand deriving means specifically comprises:
Path induction information acquisition module is used to obtain the constraint condition information of user by origin and destination, path, mode of transportation and the inquiry of the webpage submission of setting form;
Traffic information obtains subelement, is used to obtain the road condition information inquiry demand information that the user submits to by the webpage of setting form;
The traffic value-added information obtains subelement, is used to obtain the value-added information query demand information that the user submits to by the webpage of setting form.
Described traffic-information service demand decomposer specifically comprises:
Web form information modular converter, the original demands information type and the original demands value of information that are used for the user is submitted to are saved in original demands information array row;
The demand decomposing module, be used for traveling through all leaf nodes of XML demand identification template, and the original demands information that the pairing user of each leaf node of search submits in original demands information array row, and in the related needs information of the relevant information data library searching leaf node of setting, thereby the demand of finishing is decomposed;
The XML document generation module, generate and the corresponding multiway tree of affiliated demand identification template, and the related needs information assignment of the original demands information submitted to of the pairing user of each leaf node that described demand decomposing module is searched and retrieval is in this multiway tree, and is that parameter generates demand information XML document and the output that the user submits to this multiway tree.
Described XML document generating apparatus specifically comprises:
Information requirement and Web service mapping block, be used to travel through the demand information XML document of described XML document generation module output, according to the assignment of each leaf node with and the attribute information of the father node at place, grandfather's node determine the unit service of its pairing XML transport services in describing, and, demand is mapped to a plurality of transport information Web services of carrying out according to the classification in the XML transport services description;
The XML document generation module, be used to generate one and describe corresponding multiway tree with the XML transport services, and with information requirement and the resultant a plurality of transport information Web service assignment of carrying out of Web service mapping block in this multiway tree, be that parameter generates transport services demand XML document with this multiway tree at last, describe corresponding transport services demand inventory thereby set up with the XML transport services.
A kind of traffic-information service demand discrimination method based on XML comprises:
Obtain the original traffic trip demand information that the user submits to by the webpage of setting form;
According to predefined XML demand identification template, original traffic trip demand information is decomposed, determine the various traffic-information service demands that the user needs, described XML demand identification template is according to user's travel behaviour feature, by the tree hierarchy of XML language definition, wherein at least one leaf node and higher level thereof put node and have described one type of traffic-information service demand that the user needs;
According to predefined XML transport services document is described, each demand of user is mapped as a plurality of executable transport information Web service that can not be split, described XML transport services are described each leaf node of corresponding described tree hierarchy in the document and higher level thereof and are put nodal community and described first service, and described first service can be mapped as at least one executable transport information Web service;
According to a plurality of transport information Web service, these a plurality of XML transport information Web service documents of carrying out the transport information Web service of generation description carried out that map out.
Described original traffic trip demand information specifically comprises: the constraint condition information of path starting point and terminating point, mode of transportation, inquiry, road condition information inquiry demand information, and value-added information query demand information.
Describedly original traffic trip demand information is decomposed, determines the various traffic-information service demands that the user needs, specifically comprise according to predefined XML demand identification template:
The original demands information type and the original demands value of information that the user is submitted to are saved in the original demands information array row;
Travel through all leaf nodes in the described XML demand identification template, in original demands information array row, search for the original demands information that the pairing user of each leaf node submits to simultaneously, and in the related needs information of the relevant information data library searching leaf node of setting, thereby the demand of finishing is decomposed;
Generate and the corresponding multiway tree of affiliated demand identification template, and will before the decomposition result assignment that obtain in this multiway tree, be parameter call XML document generating apparatus with this multiway tree at last, generate the demand information XML document of user's submission.
Described basis maps out a plurality ofly carries out the transport information Web service, generates and describes these a plurality of XML transport information Web service documents of carrying out the transport information Web service, specifically comprises:
Travel through the demand information XML document of described XML document generation module output, determine the unit service of its pairing XML transport services in describing according to the attribute information of the father node at the value of each leaf node and its place, grandfather's node;
Describe document according to the XML transport services, demand is mapped to a plurality of transport information Web services of carrying out;
Generate one and describe corresponding multiway tree with the XML transport services, and according to a plurality of these multiway trees of transport information Web service assignment of carrying out;
With this multiway tree is that parameter generates transport services demand XML document.
The present invention adopts has the clear data descriptive language XML language of good open as information description method, for traveler provides friendly interactive interface, more the coupling of Web service, synthetic provide well-known Web service demand inventory, thereby improved the efficient of public's transportation information service systems.
Description of drawings
Fig. 1 is the public's traffic-information service demand identification system structural representation based on XML;
Fig. 2 is a kind of concrete structure synoptic diagram of the public's traffic-information service demand identification system based on XML;
Fig. 3 is the treatment scheme flow process figure of traffic-information service demand acquisition module;
Fig. 4 is the treatment scheme flow process figure of traffic-information service demand decomposing module;
Fig. 5 is the treatment scheme flow process figure of traffic-information service demand mapping block;
Fig. 6 is the last transport services demand XML document part sectional drawing that generates of the invention process.
Embodiment
Traffic-information service demand identification system and method that the embodiment of the invention provides based on XML, it is a kind of comprehensive public's transportation information service systems based on WebService, be intended to integrate angle from the commercial applications and the existing traffic-information service of multi-source traffic information, whole process provides dynamically, personalized, intelligentized consulting service for the public goes on a journey.And the demand identification of efficiently and accurately provides the guarantee of multi-source trip information service, is based on one of public's traffic-information service Study on Technology emphasis of WebService.Its reason is, the traffic Back ground Information that provides by processing all kinds of traffic-information service suppliers based on public's transportation information service systems of WebService, provide traffic trip information to what the user submitted to, system need relate to multiple Web service in this process.Submit to for dissimilar user, its trip characteristics, purpose difference, the demand to traffic-information service also is not quite similar accordingly, and required Web service also changing thereupon.Provide reliable Web service demand inventory for the real needs in the trip process of clear and definite all types of user submission and to service matching device, must carry out identification to the original traffic trip demand that the user submits to, simultaneously identification result is mapped to institute's correspondence and can carries out in the Web service, forming Web service demand inventory is transport services demand XML document.Thereby real needs in the trip process and feature thereof that clear and definite all types of user is submitted to, the Web service demand inventory that provides computing machine to discern.
For realizing technique scheme, the embodiment of the invention at first provides XML demand identification template, this XML demand identification template is to analyse in depth all types of user separately travel behaviour feature under the comprehensive traffic background, the tree hierarchy of the comprehensive traffic information service demand by XML Schema language definition.XML demand identification template is classified to the customer group that the user submits to by mode of transportation, identification all types of user to before travel, the trip in the traffic-information service demand, analyze the operation flow and the information flow of existing various traffic-information service, sound attitude data, the interactive operation process of decomposing every traffic-information service demand correspondence from the logic aspect, the final tree hierarchy of setting up the transport need of forming by webpage path induction information, traffic information and traffic value-added information three category informations, and successively segment up to the metamessage demand.Wherein, one or more leaf nodes of XML demand identification template and higher level thereof put node and have described one type of traffic-information service demand that the user needs, path query demand for example, weather query demand etc.
Can divide separately independently traffic-information service demand according to the original traffic trip demand for services that relates to a plurality of traffic-information service of user's input easily according to XML demand identification template, and then the embodiment of the invention is according to the descriptor of Web transport services document, will be separately independently the traffic-information service demand shine upon, be decomposed in the former service of each executable transport information.The XML transport services are described each leaf node of corresponding XML demand identification template tree hierarchy in the document and higher level thereof and are put nodal community and described the service of a corresponding unit, according to executable transport information Web service, unit's service can be mapped as at least one executable transport information Web service according to the feature of the occurrence of leaf node.The for example weather of traffic trip inquiry unit service need be divided into two weather inquiry services etc. according to starting point and city, terminal point place.
Describe with a concrete example, the comprehensive traffic information on services that the user need inquire about comprises: when selecting the public transport mode trip, outbeach how from official garden, Pekinese bridge to Shanghai, need simultaneously to inquire about within the next few days Beijing and the Weather information in Shanghai, and the ticket information of public transport.The user submits following key word of the inquiry to according to the form of setting:
From: Beijing;
Starting point node: Guan Yuanqiao;
Terminal point city: Shanghai City;
Peripheral node: outbeach;
Mode of transportation: public transport;
The public transport preference: expense is minimum;
Traffic information demand: do not have;
Value-added service demand: Weather information, ticket information.
According to XML demand identification template, at first the demand to the user resolves into following several sub-demands:
Sub-demand one: the outbeach from official garden, Pekinese bridge to Shanghai, public transport mode;
Sub-demand two: the Weather information in Beijing and Shanghai;
Sub-demand three: the ticket information corresponding with sub-demand one.
For sub-demand one, according to starting point node and peripheral node information in different cities, needing should sub-demand one to be decomposed into three executable transport information Web services (is transport information Web service one, transport information Web service four and transport information Web service six), according to sub-demand two, according to sub-demand two, need inquire about Beijing and Shanghai Urban weather respectively, then being decomposed into two executable transport information Web services (is transport information Web service two, transport information Web service seven), according to sub-demand three, three transport information Web services that need corresponding respectively sub-demand one to be decomposed are carried out respectively, then to be decomposed into three executable transport information Web services (be transport information Web service three to correspondence, the transport information Web service does not have and transport information Web service eight), specifically comprise:
Transport information Web service one: Beijing Guan Yuanqiao arrives gateway, Beijing, public traffic path information.
Transport information Web service two: the Weather information of information request Beijing on the same day.
Transport information Web service three: the ticket information corresponding with transport information Web service one.
Transport information Web service four: gateway, Beijing is to the gateway, Shanghai City, public traffic path information.
Transport information Web service five: the ticket information corresponding with transport information Web service four.
Transport information Web service six: the gateway, Shanghai City is to the outbeach, Shanghai, public traffic path information.
Transport information Web service seven: the Weather information in information request Shanghai City on the same day.
Transport information Web service eight: the ticket information corresponding with sub-demand six.
Wherein, not subdivisible transport information Web service is meant the service of a certain category information that can once obtain from single Information Provider, but not composite services.Because the information that a lot of providers provide is all at a certain city, thereby generally be that unit shines upon with the city with demand.
Describe technical scheme provided by the invention in detail below in conjunction with accompanying drawing.
As shown in Figure 1, a kind of public's traffic-information service demand identification system based on the XML language for inventive embodiments provides comprises:
Memory storage 101 is used for storing X ML demand identification template and XML transport services and describes document;
Traffic-information service demand deriving means 102 is used to obtain the original traffic trip demand information that the user submits to by the webpage of setting form;
Traffic-information service demand decomposer 103, be used for the XML demand identification template of preserving according to memory storage, the original traffic trip demand information that traffic-information service demand deriving means is obtained decomposes, and determines the various traffic-information service demands that the user needs;
Traffic-information service demand mapping device 104 is used for describing document according to the XML transport services that memory storage 101 is preserved, and each demand of user is mapped as can not be split a plurality of carries out the transport information Web service;
XML document generating apparatus 105 is used for a plurality of transport information Web service, these a plurality of XML traffic-information service documents of carrying out the transport information Web service of generation description carried out that map out according to traffic-information service demand mapping device.
The XML traffic-information service document of Sheng Chenging can be set form and present to the user on webpage at last, perhaps exports to other computing machines and carries out.
Unit's service of the demand correspondence of submitting to according to the user has been described in the XML traffic-information service document, for example path query, weather are inquired about, ticket query, even comprising the inquiry etc. of fuel station information, each unit's service can be divided at least one executable transport information Web service according to the feature of searching keyword again.
Its course of work is as follows:
The webpage of User login comprehensive traffic information on services inquiry system, traffic-information service demand for services deriving means prompting user imports its original traffic trip demand information, the user progressively also submits to according to the keyword of prompting input inquiry demand according to the interface formats of setting, traffic-information service demand for services deriving means is after confirming that the user submits original traffic trip demand information to, the original traffic trip demand information of submitting to according to the user generates the Web list, and the Web list is sent to traffic-information service demand decomposer;
The original traffic trip demand that traffic-information service demand decomposer is submitted the user to according to received Web list and XML demand identification template is decomposed into the various traffic-information service demands of user's needs, and decomposition result is sent to traffic-information service demand mapping device; Preferable, traffic-information service demand decomposer call XML document Core Generator forms the demand information XML document that the user submits to, and the demand information XML document that the user is submitted to sends to traffic-information service demand mapping device;
Traffic-information service demand mapping device is according to user's traffic-information service demand and XML service description document after decomposing, carry out demand to the mapping of Web service, user's traffic-information service demand is mapped as can not be split a plurality of carries out the transport information Web service;
The XML document generating apparatus generates describes these a plurality of XML transport information Web service documents of carrying out the transport information Web service, so far finishes public's traffic-information service demand identification system and all works.
As shown in Figure 2, traffic-information service demand deriving means 102 is with B/S (browser/server, being browser and server) tactic pattern obtains the original demands information that the user submits to by the asp.net webpage, the asp.net webpage is for setting form, the user can be according to each keyword of prompting input transport services demand, the input mode of pull-down menu is generally adopted in the input of keyword, all keywords in the pull-down menu are to be accustomed to according to user's trip in advance, administrative area that each transport information Web service is contained belongs to zone name, and the vehicles of selecting according to the user in each administrative region information settings such as trip circuit that can decomposite.According to the transport information Web service the relevant transport information that can provide, can set flexibly needs the user to import different keywords, general, at first need to import the keyword of routing information, secondly need need indicate whether other services and input associative key, for example road condition information inquiry, Weather information inquiry etc. is based on this, in the concrete example, traffic-information service demand deriving means 102 can comprise as lower module:
Path induction information demand acquisition module, traffic information demand acquisition module and traffic value-added information demand acquisition module.
Path induction information demand acquisition module is the core of this device, is used to obtain the information such as origin and destination, path, mode of transportation and constraint condition of user's trip, the preference information etc. of for example going on a journey.Further: the origin and destination, path comprise from, starting point node, terminal point city and peripheral node composition again; Mode of transportation is divided into self driving and transit trip two classes; The trip preference is divided into public transport preference and self driving preference.
Public transport comprises: bus, subway, light rail, railway, aviation, long-distance passenger transportation;
Self driving is the conventional self driving of understanding; The self driving preference is for example: distance is the shortest, expense is minimum, advanced road;
The trip preference refers to constraint condition when carrying out path planning, for example: change to minimum, distance is the shortest, expense is minimum, the most comfortable etc.;
The traffic information deriving means obtains the traffic information type of the needs of user's submission: some traffic information or circuit condition information, wherein: the some traffic information refers to the road conditions of a certain node, as Xizhimen Qiao Chu road conditions, circuit condition information refers to the road conditions in stretch footpath, as the road conditions of Xizhimen bridge to Fuchengmen.
Whether what traffic value-added information demand acquisition module judged that the user submits to also needs other value-added services, mainly comprises: parking lot information, fuel station information, weather information and ticket information etc.
As shown in Figure 3, described the main flow process that traffic-information service demand acquisition module 102 obtains information: path induction information demand acquisition module at first obtains path induction information demand and specifically comprises origin and destination information, mode of transportation and trip preference relevant information; Then, traffic information demand acquisition module obtains the traffic information demand; Last traffic value-added information demand acquisition module obtains the traffic value-added information, comprises refuelling station's demand information, parking lot demand information, weather demand information and ticket information.Traffic-information service demand acquisition module according to this order with the user submit to demand be converted to the Web list and export to traffic-information service demand decomposer 103.
Still referring to shown in Figure 2, traffic-information service demand decomposer 103 mainly comprises with lower module:
Web form information modular converter, demand decomposing module and XML document generation module.
Wherein, Web form information modular converter is used for the original demands information of user's submission of Web list form is saved in original demands information array broomrape, comprises original demands information type and the original demands value of information, i.e. associative key.The original demands information type is a kind of demand that defines in the XML demand identification template, keyword input frame or choice box according to correspondence are determined, for example in the start node of path query and peripheral node input frame, imported corresponding keyword, shown that then the user has the demand of path query;
All leaf nodes in the demand decomposing module traversal XML demand identification template, in original demands information array row, search for the original demands information that the pairing user of each leaf node submits to simultaneously, and obtain more demand information (for example province, city numbering etc. under node serial number, the city by City table in the retrieval ACCESS database and Point table, in order to each demand further is mapped as a plurality of executable transport information Web service that can not be split), thus the demand disintegration finished.
The XML document generation module generate one with the corresponding multiway tree of demand identification template, and will before the decomposition result assignment that obtain in this multiway tree, be parameter call XML document generating apparatus with this multiway tree at last, generate the demand information XML document of user's submission.Need to prove, in XML demand identification template, a transport information demand may be by one or more leaf nodes and superior node definition thereof, the original demands information that the user of leaf node correspondence submits to, the superior node attribute information of leaf node has defined the effect in the demand in the leaf node.Generating a multiway tree corresponding with demand identification template is exactly identification template according to demand, with each keyword of user input and the relevant information assignment obtained each leaf node in the XML demand identification template, when for example start node is Beijing Guan Yuanqiao, determine that according to the input frame of official garden bridge the demand type is a path query, and official garden bridge is a start node, then the start node assignment with this query demand in the XML demand identification template of correspondence is an official garden bridge, the upper level father node attribute information of official garden bridge shows it is node, and more the attribute information of upper level grandfather node shows start node for the path query demand.Attribute information is the name of node, and for example the father node of pointName node is that point, grandfather's node are Origin.
PointName: Guan Yuanqiao;
Father node: point;
Grandfather's node: Origin;
Great grandfather's node is root node: routeRequest;
According to the attribute information of father node, grandfather's node and great grandfather's node, can determine that " Guan Yuanqiao " this key word information is starting point node name in the path query service.
If also have the Weather information inquiry, then need urban information assignment with the urban information of trip start node and terminal node to the leaf node of weather query demand.
Finally, be the various traffic-information service demands that the user needs in XML demand identification template by the demand of the leaf node correspondence of assignment, all the other are not the traffic-information service demands that the user needs by the demand of the leaf node correspondence of assignment.
As shown in Figure 4, described the main flow process of traffic-information service demand decomposing module: at first the original demands information that the user of Web list form is submitted to is saved in the original demands information array broomrape, and preservation information comprises the original demands information type and the original demands value of information.Travel through all leaf nodes in " XML demand identification template " then, in original demands information array row, search for the original demands information that the pairing user of each leaf node submits to simultaneously, and obtain more demand information (for example province, city numbering etc. under node serial number, the city), thereby finish the demand disintegration by City table in the retrieval ACCESS database and Point table.Use the array row realize one with " demand identification template " corresponding multiway tree, and with the decomposition result assignment that obtain before in this multiway tree.Last traffic-information service demand decomposing module can be a parameter call XML document generation module with this multiway tree, generates the demand information XML document of user's submission and sends to traffic-information service demand mapping device.
Still referring to as shown in Figure 2, traffic-information service demand mapping device mainly comprises with lower module: information requirement and Web service mapping block and XML document generation module.
The demand information XML document that information requirement and Web service mapping block traversal user submit to, determine the unit service of its pairing XML transport services in describing according to the attribute information of the father node at the value of each leaf node and its place, grandfather's node, classification in describing according to the XML transport services again is mapped to a plurality of transport information Web services of carrying out with demand.
The XML document generation module generate one with the corresponding multiway tree of XML transport services description, and will go up the resultant Web service assignment of a module in this multiway tree.Be parameter call XML document generating apparatus with this multiway tree at last, generate transport services demand XML document.Thereby set up and " XML transport services description " corresponding transport services demand inventory.
The XML document generating apparatus travels through resulting multiway tree with level traversal method, use in the .NET platform System.Xml class simultaneously and generate and the corresponding XML document of above-mentioned multiway tree, for traffic-information service demand decomposer and traffic-information service demand mapping device used.
As shown in Figure 5, the main flow process of traffic-information service demand mapping block has been described: at first travel through the demand information XML document that the user submits to, determine unit's service in its pairing " XML transport services description " according to the attribute information of the value of each leaf node and its father node of place, grandfather's node, according to the classification in " XML transport services description ", demand is mapped to the needed Web service that the user submits to again.Use one of array column-generation and " XML transport services description " corresponding multiway tree, and be parameter call XML document generation module, generation XML transport information Web service document with this multiway tree.
For flow process and the result that this system of explanation utilization more intuitively carries out the identification of traffic-information service demand, be example with one section traffic-information service request down from official garden, Beijing bridge to the outbeach, Shanghai City, the implementation process of demand identification is described.Particular content is as follows:
The first step: obtain the traffic-information service original demands that the user submits to.
The webpage that the user provides by comprehensive traffic information service website, in pull-down menu, select real needs to comprise:
From: Beijing;
Starting point node: Guan Yuanqiao;
Terminal point city: Shanghai City;
Peripheral node: outbeach;
Mode of transportation: public transport;
The public transport preference: expense is minimum;
Traffic information demand: do not have;
Value-added service demand: Weather information, ticket information.
After the demand information setting is finished, the user confirms and submits to and ask, traffic-information service demand deriving means obtains the original traffic trip demand information of user's submission and exports to traffic-information service demand decomposing module with the form of web list, triggers traffic-information service demand decomposing module and carries out the demand decomposition.
Second step: decompose the traffic-information service demand.
At first Web form information modular converter generates the Web form information with previous step and dumps among the array row needArrayList.
Traffic-information service demand decomposing module traversal " XML demand identification template " atisMessage searches for the object among the pairing needArrayList of each leaf node then.Leaf node for example: type is the object of originPointName among the pairing needArrayList of atisMessage-routeRequest-routeOutLine-origin-point-pintN ame, and its value is an official garden bridge.This module is connected to the relevant information of Access data base querying node " Guan Yuanqiao " afterwards.
Generate multiway tree needTree according to " XML demand identification template " atisMessage at last, the call XML document creation module generates " demand information XML document ".
The 3rd step: the mapping of transport information demand and Web service.
At first traffic-information service demand mapping block travels through the transport services requirement documents, determine transport information Web service in its pairing " XML transport services description " according to the attribute information of the father node at the value of each leaf node and its place, grandfather's node, according to the classification in " XML transport services description ", demand is mapped to the needed Web service that the user submits to again.
Generate then one with " XML transport services description " corresponding multiway tree serviceTree, be parameter call XML document generation module with this multiway tree at last, generate transport services demand XML document, as shown in Figure 6.
So far just finish all processes of demand identification, and generated last transport services demand XML document.
Need illustrate, according to executable transport information Web service, and user's travel behaviour feature, those skilled in the art can adjust XML demand identification template flexibly as required and document is described in the XML transport services, the application only describes the document example with a concrete XML demand identification template and XML transport services and describes, but and not exclusive implementation.
Obviously, those skilled in the art can carry out various changes and modification to the embodiment of the invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1. the traffic-information service demand identification system based on XML is characterized in that, comprising:
Memory storage, be used for storing X ML demand identification template and XML transport services and describe document, described XML demand identification template is according to user's travel behaviour feature, by the tree hierarchy of XML language definition, wherein at least one leaf node and higher level thereof put node and have described one type of traffic-information service demand that the user needs; Described XML transport services are described each leaf node of corresponding described tree hierarchy in the document and higher level thereof and are put nodal community and described first service, and described first service can be mapped as at least one executable transport information Web service;
Traffic-information service demand deriving means is used to obtain the original traffic trip demand information that the user submits to by the webpage of setting form;
Traffic-information service demand decomposer, be used for the XML demand identification template of preserving according to memory storage, the original traffic trip demand information that traffic-information service demand deriving means is obtained decomposes, and determines the various traffic-information service demands that the user needs;
Traffic-information service demand mapping device, document is described in the XML transport services that are used for preserving according to memory storage, and each demand of user is mapped as a plurality of transport information Web services;
The XML document generating apparatus is used for a plurality of transport information Web service, these a plurality of XML transport information Web service documents of carrying out the transport information Web service of generation description carried out that map out according to traffic-information service demand mapping device.
2. the system as claimed in claim 1 is characterized in that, described traffic-information service demand deriving means specifically comprises:
Path induction information acquisition module is used to obtain the constraint condition information of user by origin and destination, path, mode of transportation and the inquiry of the webpage submission of setting form;
Traffic information obtains subelement, is used to obtain the road condition information inquiry demand information that the user submits to by the webpage of setting form;
The traffic value-added information obtains subelement, is used to obtain the value-added information query demand information that the user submits to by the webpage of setting form.
3. system as claimed in claim 2 is characterized in that, described traffic-information service demand decomposer specifically comprises:
Web form information modular converter, the original demands information type and the original demands value of information that are used for the user is submitted to are saved in original demands information array row;
The demand decomposing module, be used for traveling through all leaf nodes of XML demand identification template, and the original demands information that the pairing user of each leaf node of search submits in original demands information array row, and in the related needs information of the relevant information data library searching leaf node of setting, thereby the demand of finishing is decomposed;
The XML document generation module, generate and the corresponding multiway tree of affiliated demand identification template, and the related needs information assignment of the original demands information submitted to of the pairing user of each leaf node that described demand decomposing module is searched and retrieval is in this multiway tree, and is that parameter generates demand information XML document and the output that the user submits to this multiway tree.
4. system as claimed in claim 3 is characterized in that, described XML document generating apparatus specifically comprises:
Information requirement and Web service mapping block, be used to travel through the demand information XML document of described XML document generation module output, according to the assignment of each leaf node with and the attribute information of the father node at place, grandfather's node determine the unit service of its pairing XML transport services in describing, and, demand is mapped to a plurality of transport information Web services of carrying out according to the classification in the XML transport services description;
The XML document generation module, be used to generate one and describe corresponding multiway tree with the XML transport services, and with information requirement and the resultant a plurality of transport information Web service assignment of carrying out of Web service mapping block in this multiway tree, be that parameter generates transport services demand XML document with this multiway tree at last, describe corresponding transport services demand inventory thereby set up with the XML transport services.
5. the traffic-information service demand discrimination method based on XML is characterized in that, comprising:
Obtain the original traffic trip demand information that the user submits to by the webpage of setting form;
According to predefined XML demand identification template, original traffic trip demand information is decomposed, determine the various traffic-information service demands that the user needs, described XML demand identification template is according to user's travel behaviour feature, by the tree hierarchy of XML language definition, wherein at least one leaf node and higher level thereof put node and have described one type of traffic-information service demand that the user needs;
According to predefined XML transport services document is described, each demand of user is mapped as a plurality of executable transport information Web service that can not be split, described XML transport services are described each leaf node of corresponding described tree hierarchy in the document and higher level thereof and are put nodal community and described first service, and described first service can be mapped as at least one executable transport information Web service;
According to a plurality of transport information Web service, these a plurality of XML transport information Web service documents of carrying out the transport information Web service of generation description carried out that map out.
6. method as claimed in claim 5, it is characterized in that, described original traffic trip demand information specifically comprises: the constraint condition information of path starting point and terminating point, mode of transportation, inquiry, road condition information inquiry demand information, and value-added information query demand information.
7. method as claimed in claim 6 is characterized in that, describedly according to predefined XML demand identification template original traffic trip demand information is decomposed, and determines the various traffic-information service demands that the user needs, and specifically comprises:
The original demands information type and the original demands value of information that the user is submitted to are saved in the original demands information array row;
Travel through all leaf nodes in the described XML demand identification template, in original demands information array row, search for the original demands information that the pairing user of each leaf node submits to simultaneously, and in the related needs information of the relevant information data library searching leaf node of setting, thereby the demand of finishing is decomposed;
Generate and the corresponding multiway tree of affiliated demand identification template, and will before the decomposition result assignment that obtain in this multiway tree, be parameter call XML document generating apparatus with this multiway tree at last, generate the demand information XML document of user's submission.
8. method as claimed in claim 7 is characterized in that, described basis maps out a plurality ofly carries out the transport information Web service, generates and describes these a plurality of XML transport information Web service documents of carrying out the transport information Web service, specifically comprises:
Travel through the demand information XML document of described XML document generation module output, determine the unit service of its pairing XML transport services in describing according to the attribute information of the father node at the value of each leaf node and its place, grandfather's node;
Describe document according to the XML transport services, demand is mapped to a plurality of transport information Web services of carrying out;
Generate one and describe corresponding multiway tree with the XML transport services, and according to a plurality of these multiway trees of transport information Web service assignment of carrying out;
With this multiway tree is that parameter generates transport services demand XML document.
CN2009100852797A 2009-06-05 2009-06-05 System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language) Expired - Fee Related CN101908269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100852797A CN101908269B (en) 2009-06-05 2009-06-05 System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100852797A CN101908269B (en) 2009-06-05 2009-06-05 System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language)

Publications (2)

Publication Number Publication Date
CN101908269A true CN101908269A (en) 2010-12-08
CN101908269B CN101908269B (en) 2012-08-08

Family

ID=43263720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100852797A Expired - Fee Related CN101908269B (en) 2009-06-05 2009-06-05 System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language)

Country Status (1)

Country Link
CN (1) CN101908269B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685615A (en) * 2018-12-21 2019-04-26 司空科技股份有限公司 Handle system, method, apparatus and the storage medium of demand for services

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1217277C (en) * 2002-04-01 2005-08-31 上海网上乐园信息技术有限公司 Compasite distributed information processing system and implementation method thereof
US7962470B2 (en) * 2006-06-01 2011-06-14 Sap Ag System and method for searching web services
CN1889110B (en) * 2006-07-14 2012-03-21 中山大学 Intelligent prompting system for weather and traffic state
CN101246646A (en) * 2008-03-03 2008-08-20 北京航空航天大学 E-Police system structure based on Web service
CN101441570B (en) * 2008-11-21 2011-07-20 南京恩瑞特实业有限公司 Line allocation tool implementing method based on rail traffic

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685615A (en) * 2018-12-21 2019-04-26 司空科技股份有限公司 Handle system, method, apparatus and the storage medium of demand for services

Also Published As

Publication number Publication date
CN101908269B (en) 2012-08-08

Similar Documents

Publication Publication Date Title
CN102395965B (en) Method for searching objects in a database
Auer et al. Linkedgeodata: Adding a spatial dimension to the web of data
Eiter et al. Towards a semantically enriched local dynamic map
CN101996247B (en) Method and device for constructing address database
CN100573506C (en) A kind of space-time fusion method of natural language expressing dynamic traffic information
CN102024024B (en) Method and device for constructing address database
Xu et al. Taxi-RS: Taxi-hunting recommendation system based on taxi GPS data
CN101980208A (en) Address query method and system
CN107491561A (en) A kind of urban transportation heterogeneous data integrated system and method based on body
CN102456050B (en) Method and device for extracting data from webpage
CN102169591B (en) Line selecting method and drawing method of text note in drawing
US20200334246A1 (en) Information processing device, combination condition generation method, and combination condition generation program
CN103198151A (en) Index inquiry system and method for running information of regional urban buses
CN107122415B (en) The integrated system of place name address library data fusion
CN106446242B (en) A kind of efficient multiple-fault diagnosis optimal path inquiry method
CN106097060A (en) A kind of university students is left unused Cycle Hire software screening method system and its implementation
CN104598548B (en) A kind of method and device of anal yzing agricul products price space relevance
CN115292507A (en) Traffic travel analysis method, device, equipment and medium based on knowledge graph
CN104765763B (en) A kind of semantic matching method of the Heterogeneous Spatial Information classification of service based on concept lattice
CN114595302A (en) Method, device, medium, and apparatus for constructing multi-level spatial relationship of spatial elements
CN101908269B (en) System and method for identifying public traffic information service demands based on XML (Extensive Makeup Language)
Essid et al. Query processing in a geographic mediation system
Wang et al. In-depth learning layout and path optimization of energy service urban distribution sites under e-commerce environment
CN115982329A (en) Intelligent generation method and system for engineering construction scheme compilation basis
Li Travel Information Service system for public travel based on SOA

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120808

Termination date: 20140605