A kind of method and apparatus of inquiry programme information and a kind of radio and television broadcast system
Technical field
The application is related to broadcasting television technology field, particularly to a kind of method and apparatus of inquiry programme information and one kind
Radio and television broadcast system.
Background technology
In multiple television system departments, there are different applications due between each department, so different departments it
Between the systems soft ware being provided by different manufacturers is provided.With the transformation of Digital Television, full court net has become general trend.
Therefore, in order to coordinate the requirement of full court net, generally require the program in a system or information transmission to another system.As
Fruit all sends the program in a system or information to another system, and the data volume of its transmission is very huge, institute
To be to send inquiry from system A needing programme information to system B that there may be described programme information to ask under normal circumstances
Ask, carry out the transmission of programme information further according to Query Result.
The applicant, during realizing the embodiment of the present application, finds that at least there are the following problems for prior art:
The two systems carrying out program inquiry if necessary belong to different producers, then be to enter between two systems
Row program inquiry.
In addition, being related to the higher department of security requirement, such as general editting office, when scheduling programs, not only will
Inquiry tape library, media resource, standby broadcasting etc. information, sometimes in addition it is also necessary to the data base in inquiry broadcast system saves
Mesh information, due to due to television broadcast system framework, broadcast system will not be open for data base to general editting office, normal conditions
Under, the modes such as telephonic communication can only be adopted to carry out the inquiry of data base's programme information, thus can reduce the efficiency of work, to work
Bring inconvenience.
Content of the invention
The present invention provides a kind of method of inquiry programme information, in order to solve present in prior art between different system
The technical problem of programme information inquiry can not be carried out.
On the one hand, the application passes through an embodiment of the application, provides following technical scheme:
A kind of method of inquiry programme information, applies in radio and television broadcast system, at least includes the in described system
One system, second system and the interface polls service module being connected with described the first system and described second system respectively, described
Program inquiry can not be carried out, wherein, including first in described the first system should between the first system and described second system
With program module, in described second system, include the data base of be stored with program or programme information, methods described includes:
Receive the inquiry request that described first application program module sends, wherein, described inquiry request is based on described first
Communication protocol between application program module and described interface polls service module;
Based on described inquiry request, inquired about in the database by described interface polls service module, obtained
Programme information corresponding with described inquiry request;
Based on described communication protocol, described programme information is returned to described first application program module.
Preferably, receive based on logical between described first application program module and described interface polls service module described
Letter agreement and by described first application program module transmission inquiry request before, methods described also includes:
Based on the communication protocol between described first application program module and described interface polls service module, described first
Set up between application program module and described interface polls service module and be connected.
Preferably, described foundation between described first application program module and described interface polls service module is connected, tool
Body includes:
Set up 422 in described first application program module with described interface polls intermodule to be connected;Or
Set up double netcard cross-network segment in described first application program module with described interface polls intermodule to be connected.
Preferably, described reception is based on the communication between described first application program module and described interface polls service module
Agreement the inquiry request being sent by described first application program module, specially:
Receive based on the XML protocol form between described first application program module and described interface polls service module and logical
Cross the inquiry request based on described XML protocol form that described first application program module sends.
Preferably, described based on described inquiry request, entered in the database by described interface polls service module
Row inquiry, obtains programme information corresponding with described inquiry request, specifically includes:
The inquiry request based on described XML protocol form for the parsing, obtains content to be checked;
Based on described content to be checked, generate the query statement to data base in described second system;
Based on described query statement, in the data base from described second system, obtain section corresponding with described inquiry request
Mesh information.
On the other hand, the application provides following technical scheme by another embodiment of the application:
A kind of device of inquiry programme information, applies in radio and television broadcast system, at least includes the in described system
One system, second system and the interface polls service module being connected with described the first system and described second system respectively, described
Program inquiry can not be carried out, wherein, including first in described the first system should between the first system and described second system
With program module, in described second system, include the data base of be stored with program or programme information, described device includes:
Receiving unit, for receiving the inquiry request that described first application program module sends;
Query unit, for based on described inquiry request, by described interface polls service module in the database
Inquired about, obtained programme information corresponding with described inquiry request;
Returning unit, for based on described communication protocol, described programme information being returned to described first application program mould
Block.
Preferably, described device also includes:
Set up connection unit, for based on logical between described first application program module and described interface polls service module
Letter agreement, sets up between described first application program module and described interface polls service module and is connected.
Preferably, described set up connection unit specifically for:
Set up 422 in described first application program module with described interface polls module to be connected;Or
Set up double netcard cross-network segment in described first application program module with described interface polls module to be connected.
Preferably, described transmitting element specifically for:
Receive based on the XML protocol form between described first application program module and described interface polls service module and logical
Cross the inquiry request based on described XML protocol form that described first application program module sends.
Preferably, described query unit specifically includes:
Resolution unit, for the inquiry request based on described XML protocol form for the parsing, obtains content to be checked;
Signal generating unit, for based on described content to be checked, generating the query statement to data base in described second system;
Obtaining unit, for based on described query statement, obtaining in the data base from described second system and looking into described
Ask and ask corresponding programme information.
Another further aspect, by another embodiment of the application, there is provided following technical scheme:
A kind of radio and television broadcast system, including the first system and second system, described the first system and described second is
Program inquiry can not be carried out between system, wherein,
Described the first system, includes the first application program module;
Described second system, includes the data base of be stored with program or programme information;
Described system also includes:
Interface polls service module, is connected with described the first system and described second system respectively, described first application journey
There is communication protocol between sequence module and described interface polls service module;Wherein:
Described first application program module is used for, based on described communication protocol, sending to described interface polls service module and looking into
Ask request;
Described interface polls service module, for being inquired about in the database based on described inquiry request, is obtained
Programme information corresponding with described inquiry request;And described programme information is returned to described first application program module.
Preferably, described interface polls service module specifically for:
422 connections are set up between described the first system and described second system;Or
Set up double netcard cross-network segment to connect between described the first system and described second system.
Preferably, described first application program module specifically for:
Described first application program module receives based on the XML between described first application program module and described second system
Protocol format, sends the inquiry request based on described XML protocol form to described interface polls service module.
Preferably, described interface polls service module specifically includes:
Parsing module, for the inquiry request based on described XML protocol form for the parsing, obtains content to be checked;
Generation module, for based on described content to be checked, generating the query statement to data base in described second system;
Obtain module, for based on described query statement, obtaining in the data base from described second system and looking into described
Ask and ask corresponding programme information.
One or more of technique scheme technical scheme, has the following technical effect that or advantage:
First, pass through the method using the program inquiry providing in the embodiment of the present application, solve in prior art using electricity
Words are linked up and are caused the low technical problem of work efficiency, thus realizing the technique effect of efficient programme information inquiry.
2nd, the radio and television broadcast system being provided by the application, solves in prior art, due to television system architectures
The reason it is impossible to some systems are carried out with the technical problem of program inquiry, reached ensure safety on the premise of, Neng Goucha
Ask the technique effect of other system programme information.
Brief description
Fig. 1 is the method flow diagram inquiring about programme information in the embodiment of the present application;
Fig. 2 is the apparatus module figure inquiring about programme information in the embodiment of the present application;
Fig. 3 is the module map of radio and television broadcast system in the embodiment of the present application.
Specific embodiment
With reference to each accompanying drawing, by specific embodiment, the technical scheme of the application is made to describe in detail;
Refer to Fig. 1, be the method flow diagram inquiring about programme information in the embodiment of the present application;
Step 100, receives the inquiry request that described first application program module sends;
In specific implementation process, before step 100, need to connect with described based on described first application program module
Communication protocol between mouth inquiry service module, is set up even with described interface polls intermodule in described first application program module
Connect, specifically, be connected or in the described first application with setting up 422 between described enquiry module in described first application program module
Program module is set up double netcard cross-network segment with described interface polls intermodule and is connected.
Receive the inquiry request that described first application program sends, specifically, for accepting based on described first application journey
XML protocol form between sequence module and described interface polls service module, and by described first application program send based on
The inquiry request of described XML protocol form.
For example, the text of agreement adopts XML format, includes the program channel of inquiry, type, broadcasts in inquiry request
Scope etc..If not being restricted to the content of inquiry, then the inquiry request of acquiescence then can inquire about all of material.
Step 110, based on described inquiry request, is looked in the database by described interface polls service module
Ask, obtain programme information corresponding with described inquiry request;
In specific implementation process, this step receives based on described first application program module and described interface polls clothes
The XML protocol form of business intermodule and the looking into based on described XML protocol form being sent by described first application program module
Ask request.
Specifically, the process of this step is as follows:
The inquiry request based on described XML protocol form for the parsing, obtains content to be checked;
Based on described content to be checked, generate the query statement to data base in described second system;
Based on described query statement, in the data base from described second system, obtain section corresponding with described inquiry request
Mesh information.
Step 120, based on described communication protocol, described programme information is returned to described first application program module;
In specific implementation process, by the communication protocol of setting, such as using the communication protocol of XML protocol form, just
The programme information getting can be returned to described first application program
Turn next to Fig. 2, be the apparatus module figure inquiring about programme information in the embodiment of the present application;
In the present embodiment, described device is applied in radio and television broadcast system, at least includes in described system
One system, second system and the interface polls service module being connected with described the first system and described second system respectively, wherein,
Include the first application program module in described the first system, in described second system, include be stored with program or program letter
The data base of breath.In said device, also include:
Receiving unit, for receiving the inquiry request that described first application program module sends;
In specific implementation process, before accepting the inquiry request that described first application program module sends, described
Device also by setting up connection unit, based on the communication between described first application program module and described interface polls service module
Agreement, sets up between described first application program module and described interface polls service module and is connected.Specifically, set up and connect
Can be in the following way:
Set up 422 in described first application program module with described interface polls module to be connected;Or
Set up double netcard cross-network segment in described first application program module with described interface polls module to be connected.
The connected mode that those skilled in the art can also be commonly used using other industries, its application mode belongs to this Shen
Within the scope of please protecting.
In addition, described receiving unit is specifically for receiving based on described first application program module and described interface polls clothes
The XML protocol form of business intermodule and the looking into based on described XML protocol form being sent by described first application program module
Ask request.
Query unit, for based on described inquiry request, by described interface polls service module in the database
Inquired about, obtained programme information corresponding with described inquiry request;
In specific implementation process, described query unit specifically includes again:
Resolution unit, for the inquiry request based on described XML protocol form for the parsing, obtains content to be checked;
Signal generating unit, for based on described content to be checked, generating the query statement to data base in described second system;
Obtaining unit, for based on described query statement, obtaining in the data base from described second system and looking into described
Ask and ask corresponding programme information.
Returning unit, for based on described communication protocol, described programme information being returned to described first application program mould
Block.
Turn next to Fig. 3, be radio and television broadcast system module map in the embodiment of the present application;
In the present embodiment, described system includes, the first system, and wherein said the first system includes the first application program
Module, second system, include the data base of storage program or programme information, interface polls service module, respectively with described the
One system and described second system connect, and have communication protocols between described first application program module and described interface polls service module
View;
Specifically, interface polls service module is specifically for setting up between described the first system and described second system
422 connections;Or set up the connection of double netcard cross-network segment between described the first system and described second system.Described first application program
Module specifically for:Receive described first application program module and receive and based on described first application program module with described second be
XML protocol form between system, sends the inquiry request based on described XML protocol form to described interface polls service module.
In addition, described first application program module receives based between described first application program module and described second system
XML protocol form, send inquiry request based on described XML protocol form to described interface polls service module.
Described interface polls service module specifically includes:
Parsing module, for the inquiry request based on described XML protocol form for the parsing, obtains content to be checked;
Generation module, for based on described content to be checked, generating the query statement to data base in described second system;
Obtain module, for based on described query statement, obtaining in the data base from described second system and looking into described
Ask and ask corresponding programme information.
By one or more embodiments of the application, it is possible to achieve following technique effect:
First, pass through the method using the program inquiry providing in the embodiment of the present application, solve in prior art using electricity
Words are linked up and are caused the low technical problem of work efficiency, thus realizing the technique effect of efficient programme information inquiry.
2nd, the radio and television broadcast system being provided by the application, solves in prior art, due to television system architectures
The reason it is impossible to some systems are carried out with the technical problem of program inquiry, reached ensure safety on the premise of, Neng Goucha
Ask the technique effect of other system programme information.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the application to the application
God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprise these changes and modification.