CN110007998B - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN110007998B
CN110007998B CN201910301717.2A CN201910301717A CN110007998B CN 110007998 B CN110007998 B CN 110007998B CN 201910301717 A CN201910301717 A CN 201910301717A CN 110007998 B CN110007998 B CN 110007998B
Authority
CN
China
Prior art keywords
model
resources
resource
theme
keyword
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
Application number
CN201910301717.2A
Other languages
Chinese (zh)
Other versions
CN110007998A (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.)
Chengdu Sefon Software Co Ltd
Original Assignee
Chengdu Sefon Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Sefon Software Co Ltd filed Critical Chengdu Sefon Software Co Ltd
Priority to CN201910301717.2A priority Critical patent/CN110007998B/en
Publication of CN110007998A publication Critical patent/CN110007998A/en
Application granted granted Critical
Publication of CN110007998B publication Critical patent/CN110007998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a page generation method and a page generation device, which relate to the technical field of page generation and can be used for counting the types of keyword labels of data resources when acquiring the keyword labels corresponding to the items of a page to be generated and the prestored data resources; inquiring a theme menu matched with the keyword labels corresponding to the keyword label types and the items in a prestored theme menu template table; searching a model resource, an art resource and a task data resource which are matched with the items in the data resource according to the theme menu; the searched model resources and art resources are configured in a pre-constructed scene model, and the searched task data resources are configured in a pre-constructed report model to generate a scene and a report corresponding to a page to be generated; the method and the device for generating the page combine the scene and the report corresponding to the page to be generated to obtain the page to be generated, so that the automatic generation of the page is realized, and the problems of long project construction period and inaccurate page configuration are effectively solved.

Description

Page generation method and device
Technical Field
The present invention relates to the field of page generation technologies, and in particular, to a page generation method and apparatus.
Background
With the development of the three-dimensional visualization project market, the market demands the three-dimensional visualization project more and more. The existing page generation process is as follows: 1. a theme menu is created. 2. A blank page is created under the theme menu. 3. A blank scene is created, then model resources and art resources are manually selected, and then the scene is bound to a page. 4. And creating a blank report, using the created charts of one data set in the data source, adjusting the style and the size of the charts, and dragging the charts to the specified position of the report. And binding the report to a page after the report is created. 5. And saving the page data to a database.
At present, a three-dimensional visualization project still needs a project implementer to manually configure a page, and particularly when a report is configured, a corresponding data set needs to be searched in a data source first, and then a chart style needs to be manually adjusted.
Disclosure of Invention
In view of the above, the present invention provides a page generating method and apparatus to alleviate the above problems.
In a first aspect, an embodiment of the present invention provides a page generation method, where the method includes: acquiring a keyword tag corresponding to a project of a page to be generated and pre-stored data resources, wherein the data resources comprise model resources, art resources and task data resources; counting the keyword tag types of the data resources; inquiring a theme menu matched with the keyword labels corresponding to the keyword label types and the items in a prestored theme menu template table; searching a model resource, an art resource and a task data resource which are matched with the items in the data resource according to the theme menu; the found model resources and art resources are configured in a pre-constructed scene model, and the found task data resources are configured in a pre-constructed report model to generate a scene and a report corresponding to a page to be generated; and combining the scene corresponding to the page to be generated and the report to obtain the page to be generated.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the method further includes: and configuring the generated page to be generated under the theme menu, and storing the generated page to be generated in a database.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of querying, in a pre-stored theme menu template table, a theme menu that matches a keyword tag corresponding to a keyword tag type and an item includes: searching a theme category matched with the keyword label corresponding to the item in a pre-stored theme menu template table according to the keyword label corresponding to the item, wherein the theme menu template table comprises a plurality of theme categories, and each theme category comprises a plurality of theme menus with different themes; calculating the matching weight corresponding to each theme menu according to the type of the keyword label; and screening the theme menus of the page to be generated from the plurality of theme menus according to the preset screening rule according to the matching weight corresponding to each theme menu.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of calculating a matching weight corresponding to each theme menu according to a keyword tag type includes: matching the keyword label corresponding to each theme menu with the type of the keyword label respectively; and determining the matching number of the keyword label and the keyword label type corresponding to each theme menu as the matching weight corresponding to the theme menu.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of searching for the model resource, the art resource, and the task data resource, which are matched with the item, in the data resource according to the theme menu includes: matching the keyword label corresponding to the theme menu with the keyword label corresponding to the model resource, the art resource and the task data resource which are included in the data resource; and if at least one keyword label in the keyword labels corresponding to the model resources, the art resources and the task data resources is matched with the keyword label corresponding to the theme menu, determining the model resources, the art resources and the task data resources as the model resources, the art resources and the task data resources matched with the project.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where after searching for a model resource, an art resource, and a task data resource, which are matched with an item, in a data resource according to a theme menu, the method further includes: and calculating matching weights corresponding to the searched model resources, art resources and task data resources according to the keyword labels corresponding to the theme menu.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the step of calculating matching weights corresponding to the found model resource, art resource, and task data resource according to the keyword tag corresponding to the theme menu includes: matching the keyword labels corresponding to the theme menu with the keyword labels corresponding to the found model resources, art resources and task data resources respectively; determining the matching number of the keyword labels corresponding to the theme menu and the keyword labels corresponding to the model resources as the matching weight of the theme menu and the model resources; determining the matching number of the keyword labels corresponding to the theme menu and the keyword labels corresponding to the art resources as the matching weight of the theme menu and the art resources; and determining the matching number of the corresponding keyword labels of the theme menu and the keyword labels corresponding to the data resources as the matching weight of the theme menu and the data resources.
With reference to the sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the step of configuring the found model resources and art resources in a pre-constructed scene model, and configuring the found task data resources in a pre-constructed report model, so as to generate a scene and a report corresponding to a page to be generated includes: configuring the model resources in corresponding positions of a pre-constructed scene model according to the matching weights corresponding to the model resources and the types of the model resources; according to the matching weight of the art resources and the types of the art resources, the art resources are configured in the corresponding positions of the pre-constructed scene model; and according to the matching weight of the task data resources and the types of the task data resources, configuring the task data resources in corresponding positions of a report model constructed in advance.
With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, where the method further includes: and when the model resource and the art resource which are matched with the theme menu cannot be found in the plurality of model resources and the plurality of art resources according to the keyword label corresponding to the theme menu, generating the empty scene.
In a second aspect, an embodiment of the present invention further provides a page generating apparatus, where the apparatus includes: the system comprises an acquisition module and a processing module, wherein the acquisition module is used for acquiring a keyword tag corresponding to a project of a page to be generated and pre-stored data resources, and the data resources comprise model resources, art resources and task data resources; the statistical module is used for counting the keyword tag types of the data resources; the query module is used for querying a topic menu matched with the keyword tag type and the keyword tag corresponding to the item in a prestored topic menu template table; the searching module is used for searching the model resource, the art resource and the task data resource which are matched with the items in the data resource according to the theme menu; the configuration module is used for configuring the searched model resources and art resources in a pre-constructed scene model and configuring the searched task data resources in a pre-constructed report model so as to generate a scene and a report corresponding to a page to be generated; and the generating module is used for combining the scene corresponding to the page to be generated and the report to obtain the page to be generated.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes: a processor and a memory; wherein, the memory is used for storing computer programs; the processor is configured to implement the method steps of the first aspect when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium for storing computer program instructions, which, when executed by a computer, perform the method according to the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the page generation method and device provided by the embodiment of the invention, the keyword tag types of the data resources can be counted when the keyword tags corresponding to the items of the page to be generated and the pre-stored data resources are acquired; inquiring a theme menu matched with the keyword labels corresponding to the keyword label types and the items in a prestored theme menu template table; searching a model resource, an art resource and a task data resource which are matched with the items in the data resource according to the theme menu; the found model resources and art resources are configured in a pre-constructed scene model, and the found task data resources are configured in a pre-constructed report model to generate a scene and a report corresponding to a page to be generated; the method and the device for generating the page combine the scene and the report corresponding to the page to be generated to obtain the page to be generated, so that the automatic generation of the page is realized, and the problems of long project construction period and inaccurate page configuration are effectively solved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a page generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of another page generation method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of resource matching according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a page generation apparatus according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, a three-dimensional visualization project still needs a project implementer to manually configure a page, and the page configuration process easily causes problems of long project construction period and inaccurate page configuration.
To facilitate understanding of the embodiment, a page generation method disclosed in the embodiment of the present invention is first described in detail.
The first embodiment is as follows:
an embodiment of the present invention provides a page generation method, such as a flowchart of a page generation method shown in fig. 1, where the method includes the following steps:
step S102, acquiring a keyword tag corresponding to a project of a page to be generated and pre-stored data resources, wherein the data resources comprise model resources, art resources and task data resources;
in specific implementation, the model resources include well-constructed model resources such as a city white model, a ground model, a road network model, a school model, a railway station model, a hospital model, a bus station model, a river model, an important building model, a vegetation model, a Geographic Information System (GIS) block layer, a sky box and the like; the art resources comprise animation, special effects, pastels and other art resources capable of rendering scenes, such as automobile animation, road streamer and other art resources; the task data resources comprise data resources of various information such as ground, road network, river, city, station, geographical position and the like.
Step S104, counting the keyword label types of the data resources;
in the embodiment of the present invention, what types of the keyword labels of the model resource, the art resource, and the task data resource in the data resource need to be counted include, for example, a road network model, a train station model, a bus station model, a hospital model, and a school model in the model resource, a road streamer special effect and a car animation in the art resource, and a keyword label counted together in the river data resource and the station data resource in the task data resource include: traffic, cars, roads, stations, high-speed rail, vehicles, buses, hospitals, medical, civilian, educational, and rivers, these 12 different keyword tag types.
Step S106, inquiring a theme menu matched with the keyword label type and the keyword label corresponding to the item in a prestored theme menu template table;
in a specific implementation, the theme menu template table stores a plurality of theme categories, for example, three theme categories of "smart city", "smart campus", and "smart public security" are stored in the theme menu template table, and each theme category further includes a plurality of theme menus, for example, the theme category of "smart city" includes a plurality of different theme menus such as traffic situation, public safety, education, and the like.
Specifically, in step S106, the theme menu matched with the keyword tag corresponding to the keyword tag type and the item is searched in the pre-stored theme menu template table, which can be implemented by steps 11 to 13:
step 11, according to the keyword tag corresponding to the item, searching a theme category matched with the keyword tag corresponding to the item in a pre-stored theme menu template table, wherein the theme menu template table comprises a plurality of theme categories, and each theme category comprises a plurality of theme menus with different themes;
in practical application, for example, a page of a "smart city" project is to be generated, so a keyword tag corresponding to the project of the page to be generated is the "smart city"; matching the keyword label 'smart city' corresponding to the item with three major subject categories of 'smart city', 'smart garden' and 'smart public security' stored in the subject menu template table, and obtaining a plurality of subject menus of the category of 'smart city' from the subject menu template table.
Step 12, calculating the matching weight corresponding to each theme menu according to the type of the keyword label;
and step 13, screening the theme menus of the page to be generated from the plurality of theme menus according to the preset screening rule and the matching weight corresponding to each theme menu.
When the method is concretely implemented, each theme menu in the theme menu template table has a corresponding keyword label and is stored in the theme menu template table; for example, the topic category of "smart city" includes a traffic situation, which corresponds to a keyword tag: traffic, roads; the key word label corresponding to the theme of public safety is as follows: safety; the keyword labels corresponding to this theme of education are: education and school. In the embodiment of the present invention, 12 different keyword tag types are respectively matched with the keyword tags corresponding to the three theme menus of traffic situation, public safety, and education according to the statistics, for example, two tags are shared by the traffic and the road of the keyword tags corresponding to the traffic situation in the 12 keyword tag types, one tag is shared by the education of the keyword tags corresponding to the education, and the keyword tag corresponding to the theme menu of public safety does not have the tag matched with the 12 keyword tag types. In the implementation of the invention, the number of the matching labels is taken as the matching weight, so that the matching weight corresponding to the traffic situation is 2, the matching weight corresponding to the education is 1, and the matching weight corresponding to the public safety is 0.
Further, the theme menus of the page to be generated are screened out from the theme menus according to a preset screening rule, wherein the screening rule can be used for screening the theme menus according to a rule with the highest matching weight, or screening the theme menus according to a rule that the matching weight takes the first N theme menus from high to low. If the theme menu is screened according to the rule with the highest matching weight, the traffic situation is the theme menu of the item 'smart city'. In the embodiment of the present invention, the filtering rule and the calculation method of the matching weight are not limited.
Step S108, searching the model resource, the art resource and the task data resource matched with the project in the data resource according to the theme menu;
during specific implementation, searching a model resource, an art resource and a task data resource which are matched with a keyword identifier corresponding to a traffic situation in a model resource, an art resource and a task data resource which are included in the data resource; the found model resource, art resource and task data resource matched with the keyword identifier corresponding to the traffic situation are the data resources required for generating the theme menu page of the traffic situation.
Step S110, the found model resources and art resources are configured in a pre-constructed scene model, and the found task data resources are configured in a pre-constructed report model, so as to generate a scene and a report corresponding to a page to be generated;
and step S112, combining the scene corresponding to the page to be generated and the report to obtain the page to be generated.
The pre-constructed scene model is an empty scene configuration file, and interfaces of models such as a GIS block layer, a sky box, an urban white model, a ground model, a road network model, a river model, a key building model and a vegetation model and art resources such as animation, special effects and a map are reserved; the pre-constructed report model is the same as the scene model, and interfaces of various information data resources such as the ground, a road network, a river, a city, a station, a geographical position and the like are reserved. And configuring the searched model resources and the searched art resources at the interface corresponding to the pre-constructed scene model, and configuring the searched task data resources at the interface corresponding to the pre-constructed report model to generate the scene and the report of the page corresponding to the theme menu, namely the traffic situation. And combining the scene and the report to obtain a page corresponding to the theme menu of the traffic situation.
According to the page generation method provided by the embodiment of the invention, the keyword tag types of the data resources can be counted when the keyword tags corresponding to the items of the page to be generated and the pre-stored data resources are acquired; inquiring a theme menu matched with the keyword labels corresponding to the keyword label types and the items in a prestored theme menu template table; searching a model resource, an art resource and a task data resource which are matched with the items in the data resource according to the theme menu; the found model resources and art resources are configured in a pre-constructed scene model, and the found task data resources are configured in a pre-constructed report model to generate a scene and a report corresponding to a page to be generated; the method and the device for generating the page combine the scene and the report corresponding to the page to be generated to obtain the page to be generated, so that the automatic generation of the page is realized, and the problems of long project construction period and inaccurate page configuration are effectively solved.
Further, based on the process of the page generation method, fig. 2 shows a flowchart of another page generation method, where the process from step S202 to step S212 may refer to the process from step S102 to step S112 in fig. 1, and is not described herein again. As shown in fig. 2, the method further comprises the steps of:
step S214, the generated page to be generated is configured under the theme menu, and the generated page to be generated is stored in the database.
In the concrete implementation, when pages of a plurality of theme menus are generated, the generated pages can be configured under corresponding theme menus, meanwhile, the generated pages are converted into JSON format character strings to be stored in a database, when a client plays the pages, the JSON character strings configured by the scene model of the pages are inquired from the database of the server, configuration files of the scene model are analyzed, corresponding resource files are loaded according to the resource names of model resources and art resources in the configuration of the scene model, then scene rendering of the pages is carried out, similarly, the configuration files of the report model are analyzed, corresponding resource files are loaded according to the resource names of task data resources in the configuration of the report model, and then scene description analysis of the pages is carried out.
In practical application, it is only necessary to determine the model resource, the art resource, and the task data resource that are matched with the theme menu among the plurality of model resources, the plurality of art resources, and the plurality of task data resources to generate the page corresponding to the theme menu, and therefore, in step S108, the model resource, the art resource, and the task data resource that are matched with the project are searched in the data resource according to the theme menu, which can be realized by steps 21 to 22:
step 21, matching the keyword labels corresponding to the theme menu with the keyword labels corresponding to the model resources, the art resources and the task data resources included in the data resources;
and step 22, if at least one keyword label in the keyword labels corresponding to the model resources, the art resources and the task data resources is matched with the keyword label corresponding to the theme menu, determining the model resources, the art resources and the task data resources as the model resources, the art resources and the task data resources matched with the project.
During specific implementation, each model resource, each art resource, and each task data resource have corresponding keyword tags, for example, the keyword tags corresponding to the road network model are: traffic, automobiles, roads; the keyword labels corresponding to the railway station model are as follows: traffic, station, high-speed rail; the keyword labels corresponding to the bus stop model are as follows: automobiles, buses, traffic; the keyword labels corresponding to the hospital models are: hospitals, medical treatments, civilians; the keyword labels corresponding to the school models are: civil life and education; the keyword label corresponding to the road streamer special effect is as follows: roads, traffic; the corresponding keyword labels of the automobile animation are as follows: vehicles, traffic; the keyword labels corresponding to the river data resources are as follows: a river; the keyword label corresponding to the station data resource is as follows: station, traffic. In the embodiment of the invention, the keyword tag corresponding to each model resource, each art resource and each task data resource can be calibrated according to actual conditions, and the keyword tag corresponding to each model resource, each art resource and each task data resource is not limited.
And then, matching the traffic situation corresponding to keyword labels of traffic and roads with the keyword labels corresponding to each model resource, each art resource and each task data resource one by one, and if at least one keyword label in the keyword labels corresponding to the model resource, the art resource and the task data resource is matched with the keyword label corresponding to the theme menu, determining the model resource, the art resource and the task data resource as the model resource, the art resource and the task data resource matched with the project. Fig. 3 shows a resource matching diagram, as shown in fig. 3, two keyword tags in the keyword tags corresponding to the road network model are matched with the keyword tags corresponding to the traffic situation, one keyword tag in the keyword tags corresponding to the train station model, the bus station model, the road streamer special effect, the car animation and the station data resource is matched with the keyword tag corresponding to the traffic situation, while none of the keyword tags corresponding to the hospital model, the school model and the river data resource is matched with the keyword tag corresponding to the traffic situation, in fig. 3, the theme menu of the traffic situation can be matched with the model resource, the art resource and the task data resource indicated by the arrow.
Usually, a plurality of same model resources, art resources or task data resources may be matched in a plurality of model resources, a plurality of art resources and a plurality of task data resources, and at this time, matching weights corresponding to the searched model resources, art resources and task data resources need to be calculated according to a keyword tag corresponding to a theme menu. And then configuring the model resources, the art resources or the task data resources into a pre-constructed scene model and a pre-constructed report model according to the rule with the maximum matching weight.
Specifically, for example, there are two road network models in the model resource, namely road network model 1 and road network model 2, where the keyword labels corresponding to road network model 1 are: traffic, automobiles, roads; the keyword labels corresponding to the road network model 2 are as follows: traffic, cars, stations; according to the method for calculating the matching weight, the keyword labels corresponding to the traffic situation are respectively matched with the keyword labels corresponding to the road network model 1 and the road network model 2, and it can be known that two labels are matched with the road network model 1 in the traffic situation and one label is matched with the road network model 2, the matching weight corresponding to the road network model 1 is 2, the matching weight corresponding to the road network model 2 is 1, and the road network model 1 is configured in a pre-constructed scene model.
After the searched model resource, art resource and task data resource matched with the project are configured, the model resource, art resource and task data resource are configured into a pre-constructed scene model and a pre-constructed report model to generate a scene and a report corresponding to the page to be generated, specifically, in step 110, the searched model resource and art resource are configured into the pre-constructed scene model, and the searched task data resource is configured into the pre-constructed report model to generate the scene and the report corresponding to the page to be generated, which can be realized by steps 31 to 33:
step 31, configuring the model resources in corresponding positions of a pre-constructed scene model according to the matching weights corresponding to the model resources and the types of the model resources;
step 32, configuring the art resources in corresponding positions of a pre-constructed scene model according to the matching weight of the art resources and the types of the art resources;
and step 33, configuring the task data resources in corresponding positions of the pre-constructed report model according to the matching weights of the task data resources and the types of the task data resources.
Generally, the determined model resources and art resources are configured in corresponding positions of a scene model according to the types of the model resources and the art resources, for example, the resource name of the road streamer special effect is configured at a special effect interface in the scene model, in turn, a scene and a report corresponding to a page to be generated are generated, and the scene and the report are combined to finally generate a page corresponding to a theme menu.
As shown in fig. 2, the method further comprises the steps of:
and step S216, generating an empty scene when the model resource and the art resource which are matched with the theme menu cannot be found in the plurality of model resources and the plurality of art resources according to the keyword label corresponding to the theme menu.
In specific implementation, when there are no model resources and art resources matched with the theme menu, an empty scene may be generated, and the generated empty scene is combined with the report to obtain a page corresponding to the theme menu.
Example two:
on the basis of the foregoing embodiment, an embodiment of the present invention further provides a page generating apparatus, as shown in fig. 4, which includes:
an obtaining module 402, configured to obtain a keyword tag corresponding to a project of a page to be generated, and a pre-stored data resource, where the data resource includes a model resource, an art resource, and a task data resource;
a statistic module 404, configured to count types of keyword tags of the data resources;
a query module 406, configured to query a pre-stored theme menu template table for a theme menu matching the keyword tag types and the keyword tags corresponding to the items;
the searching module 408 is configured to search the item-matched model resource, art resource, and task data resource in the data resource according to the theme menu;
the configuration module 410 is configured to configure the found model resources and art resources in a pre-constructed scene model, and configure the found task data resources in a pre-constructed report model, so as to generate a scene and a report corresponding to a page to be generated;
the generating module 412 is configured to combine the scene and the report corresponding to the page to be generated to obtain the page to be generated.
The page generation device provided by the embodiment of the invention has the same technical characteristics as the page generation method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
Further, an embodiment of the present invention further provides a server, where the server includes: a processor and a memory; wherein, the memory is used for storing computer programs; the processor is configured to implement the steps of the page generation method shown in fig. 1 when executing the program stored in the memory.
Embodiments of the present invention also provide a computer storage medium for storing computer program instructions, which when executed by a computer, perform the method shown in fig. 1.
The computer program product of the page generation method and device provided by the embodiments of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and details are not described here.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A page generation method, characterized in that the method comprises:
acquiring a keyword tag corresponding to a project of a page to be generated and pre-stored data resources, wherein the data resources comprise model resources, art resources and task data resources;
the model resources comprise an urban white model, a ground model, a road network model, a school model, a railway station model, a hospital model, an automobile station model, a river model, an important building model, a vegetation model, a GIS block layer and a sky box; the art resources comprise animations, special effects and pictures; the task data resources comprise the ground, a road network, a river, a city, a station and a geographical position;
counting the keyword tag types of the data resources;
inquiring a theme menu matched with the keyword label type and the keyword label corresponding to the item in a prestored theme menu template table;
searching the model resource, the art resource and the task data resource matched with the project in the data resource according to the theme menu;
the found model resources and the art resources are configured in a pre-constructed scene model, and the found task data resources are configured in a pre-constructed report model to generate a scene and a report corresponding to the page to be generated;
combining the scene corresponding to the page to be generated and the report to obtain the page to be generated;
the step of inquiring the theme menu matched with the keyword tag type and the keyword tag corresponding to the item in a pre-stored theme menu template table comprises the following steps:
according to the keyword tag corresponding to the item, a theme category matched with the keyword tag corresponding to the item is searched in a pre-stored theme menu template table, wherein the theme menu template table comprises a plurality of theme categories, and each theme category comprises a plurality of theme menus with different themes;
calculating the matching weight corresponding to each theme menu according to the keyword label type;
and screening the theme menus of the page to be generated from the plurality of theme menus according to the preset screening rule according to the matching weight corresponding to each theme menu.
2. The method of claim 1, further comprising:
and configuring the generated page to be generated under the theme menu, and storing the generated page to be generated in a database.
3. The method according to claim 1, wherein the step of calculating the matching weight corresponding to each theme menu according to the keyword tag type comprises:
matching the keyword label corresponding to each theme menu with the type of the keyword label respectively;
and determining the matching number of the keyword label corresponding to each theme menu and the keyword label type as the matching weight corresponding to the theme menu.
4. The method of claim 3, wherein the step of searching the data resources for the item-matching model resource, art resource and task data resource according to the theme menu comprises:
matching the keyword label corresponding to the theme menu with the keyword label corresponding to the model resource, the art resource and the task data resource which are included in the data resource;
and if at least one keyword label in the keyword labels corresponding to the model resource, the art resource and the task data resource is matched with the keyword label corresponding to the theme menu, determining the model resource, the art resource and the task data resource as the model resource, the art resource and the task data resource matched with the project.
5. The method of claim 1, wherein after finding the item-matching model, art, and task data assets in the data asset according to the theme menu, the method further comprises:
and calculating matching weights corresponding to the searched model resource, the art resource and the task data resource according to the keyword label corresponding to the theme menu.
6. The method as claimed in claim 5, wherein the step of calculating the matching weights corresponding to the found model resource, the found art resource and the found task data resource according to the keyword tag corresponding to the theme menu comprises:
matching the keyword labels corresponding to the theme menu with the found keyword labels corresponding to the model resource, the art resource and the task data resource respectively;
determining the matching number of the keyword labels corresponding to the theme menu and the keyword labels corresponding to the model resources as the matching weight of the theme menu and the model resources;
determining the matching number of the keyword labels corresponding to the theme menu and the art resources as the matching weight of the theme menu and the art resources;
and determining the matching number of the keyword labels corresponding to the theme menu and the keyword labels corresponding to the data resources as the matching weight of the theme menu and the data resources.
7. The method as claimed in claim 6, wherein the step of configuring the found model resources and the art resources in a pre-constructed scene model and configuring the found task data resources in a pre-constructed report model to generate the scene and the report corresponding to the page to be generated comprises:
configuring the model resources in corresponding positions of the pre-constructed scene model according to the matching weights corresponding to the model resources and the types of the model resources;
according to the matching weight of the art resources and the types of the art resources, the art resources are configured in the corresponding positions of the pre-constructed scene model;
and according to the matching weight of the task data resources and the types of the task data resources, configuring the task data resources in corresponding positions of the report model which is constructed in advance.
8. The method of claim 1, further comprising:
and generating an empty scene when the model resource and the art resource which are matched with the theme menu cannot be searched in the plurality of model resources and the plurality of art resources according to the keyword label corresponding to the theme menu.
9. An apparatus for generating a page, the apparatus comprising:
the system comprises an acquisition module and a processing module, wherein the acquisition module is used for acquiring a keyword tag corresponding to a project of a page to be generated and pre-stored data resources, and the data resources comprise model resources, art resources and task data resources;
the model resources comprise a city white model, a ground model, a road network model, a school model, a railway station model, a hospital model, a bus station model, a river model, an important building model, a vegetation model, a GIS block layer and a sky box; the art resources comprise animations, special effects and pictures; the task data resources comprise the ground, a road network, a river, a city, a station and a geographical position;
the statistic module is used for counting the keyword tag types of the data resources;
the query module is used for querying a topic menu matched with the keyword tag type and the keyword tag corresponding to the item in a prestored topic menu template table;
the searching module is used for searching the model resource, the art resource and the task data resource which are matched with the project in the data resource according to the theme menu;
the configuration module is used for configuring the searched model resources and the found art resources in a pre-constructed scene model and configuring the searched task data resources in a pre-constructed report model so as to generate a scene and a report corresponding to the page to be generated;
the generating module is used for combining the scene corresponding to the page to be generated and the report to obtain the page to be generated;
the query module is further configured to search a theme category matched with the keyword tag corresponding to the item in a pre-stored theme menu template table according to the keyword tag corresponding to the item, where the theme menu template table includes a plurality of theme categories, and each theme category includes a theme menu of a plurality of different themes;
calculating the matching weight corresponding to each theme menu according to the keyword label type;
and screening the theme menus of the page to be generated from the plurality of theme menus according to the preset screening rule according to the matching weight corresponding to each theme menu.
CN201910301717.2A 2019-04-15 2019-04-15 Page generation method and device Active CN110007998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910301717.2A CN110007998B (en) 2019-04-15 2019-04-15 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910301717.2A CN110007998B (en) 2019-04-15 2019-04-15 Page generation method and device

Publications (2)

Publication Number Publication Date
CN110007998A CN110007998A (en) 2019-07-12
CN110007998B true CN110007998B (en) 2022-05-27

Family

ID=67172036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910301717.2A Active CN110007998B (en) 2019-04-15 2019-04-15 Page generation method and device

Country Status (1)

Country Link
CN (1) CN110007998B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672836B (en) * 2021-07-16 2024-03-15 上海硬通网络科技有限公司 Method, device, equipment and storage medium for setting dynamic special effects of web pages
CN114816512B (en) * 2022-06-28 2022-09-23 广州博士信息技术研究院有限公司 Resource pool construction method and system and cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706821A (en) * 2009-12-10 2010-05-12 中兴通讯股份有限公司 Tag-based mobile internet page design system and method
CN106406835A (en) * 2015-07-30 2017-02-15 大唐软件技术股份有限公司 Report generation method and report generation apparatus
CN106886546A (en) * 2016-07-06 2017-06-23 阿里巴巴集团控股有限公司 The construction method and equipment of a kind of Data web site

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706821A (en) * 2009-12-10 2010-05-12 中兴通讯股份有限公司 Tag-based mobile internet page design system and method
CN106406835A (en) * 2015-07-30 2017-02-15 大唐软件技术股份有限公司 Report generation method and report generation apparatus
CN106886546A (en) * 2016-07-06 2017-06-23 阿里巴巴集团控股有限公司 The construction method and equipment of a kind of Data web site

Also Published As

Publication number Publication date
CN110007998A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN101350012B (en) Method and system for matching address
CN107330459B (en) Data processing method and device and electronic equipment
JP7210086B2 (en) AREA DIVISION METHOD AND DEVICE, ELECTRONIC DEVICE AND PROGRAM
CN109523186B (en) Urban area division method and device
CN107247791B (en) Parking lot map data generation method and device and machine-readable storage medium
CN110007998B (en) Page generation method and device
CN106951941A (en) It is a kind of to be used for the method for quickly and easily enquiring vehicle information
CN110442659B (en) Region division method and device
JP2002032773A (en) Device and method for processing map data
US20230273040A1 (en) System and method of creating custom dynamic neighborhoods for individual drivers
CN111190982A (en) Shared bicycle management method and system based on big data
CN112818071A (en) Traffic management field knowledge graph construction method and device based on unified road network
CN114760330B (en) Data transmission method, device, storage medium and system for Internet of vehicles
CN117252108A (en) Data rationality verification method, system and storage medium based on semantic integrity
CN107247716B (en) Method and device for increasing electronic eye information, navigation chip and server
CN113656979B (en) Road network data generation method and device, electronic equipment and storage medium
Shiravi et al. An assessment of the utility of LiDAR data in extracting base-year floorspace and a comparison with the census-based approach
CN116484116A (en) Three-dimensional map data query method and device
CN111427977A (en) Electronic eye data processing method and device
Nasir et al. Managing Indoor Movable Assets in 3D using CityGML for Smart City Applications
CN116541474B (en) Object acquisition method, device, electronic equipment and storage medium
Maieron et al. Open Data Integration in 3D CityGML-based Models Generation.
CN116861013B (en) CIM data credibility improving method
EP4060593A1 (en) Property valuation using object identification
CN117312460A (en) Vehicle portrait creation method, device, equipment and storage medium

Legal Events

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