CN112256992A - Native rendering method and device for information stream fusing multi-link addresses - Google Patents

Native rendering method and device for information stream fusing multi-link addresses Download PDF

Info

Publication number
CN112256992A
CN112256992A CN202010982288.2A CN202010982288A CN112256992A CN 112256992 A CN112256992 A CN 112256992A CN 202010982288 A CN202010982288 A CN 202010982288A CN 112256992 A CN112256992 A CN 112256992A
Authority
CN
China
Prior art keywords
information
native control
link address
information flow
native
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.)
Pending
Application number
CN202010982288.2A
Other languages
Chinese (zh)
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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN202010982288.2A priority Critical patent/CN112256992A/en
Publication of CN112256992A publication Critical patent/CN112256992A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The method includes the steps of obtaining at least one first information stream according to a first configuration file corresponding to a first link address, obtaining a second link address from the at least one first information stream, obtaining at least one second information stream according to a second configuration file corresponding to the second link address, respectively binding the at least one first information stream and the at least one second information stream to the corresponding at least one first native control and the at least one second native control, and rendering the at least one first native control and the at least one second native control on a current page, so that frequent page jump behaviors of a user when the user browses the webpage can be reduced, and the information obtaining efficiency can be remarkably improved.

Description

Native rendering method and device for information stream fusing multi-link addresses
Technical Field
The present application relates to the field of communications, and in particular, to a technique for native rendering of information streams that incorporate multiple link addresses.
Background
In the prior art, the presentation of web pages usually adopts the implementation of H5(HTML5) or Native App (Native application). In practical applications, there are often some links in a web page for a user to jump to other pages through the links, and if the user desires to further browse a certain link existing in the current page in the process of browsing the current page, the user needs to manually click the link to jump to a page corresponding to the link for browsing.
Disclosure of Invention
One object of the present application is to provide a method and apparatus for native rendering of information streams that incorporate multiple link addresses.
According to one aspect of the application, a method of native rendering of an information stream merging multilink addresses is provided, the method comprising:
responding to a loading trigger operation aiming at a first link address in a target application, acquiring a first configuration file corresponding to the first link address, and acquiring at least one first information flow corresponding to the first link address according to the first configuration file, wherein the first configuration file comprises at least one piece of first native control description information corresponding to the at least one first information flow;
obtaining a second link address from the at least one first information flow, obtaining a second configuration file corresponding to the second link address, and obtaining at least one second information flow corresponding to the second link address according to the second configuration file, wherein the second configuration file includes at least one piece of second native control description information corresponding to the at least one second information flow;
creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information;
binding the at least one first information flow on the at least one first native control, binding the at least one second information flow on the at least one second native control, and rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and rendering the at least one second native control according to the second configuration file on the current page.
According to one aspect of the application, there is provided a user device for native rendering of information streams that merges multilink addresses, the device comprising:
a module, configured to, in response to a load trigger operation for a first link address in a target application, obtain a first configuration file corresponding to the first link address, and obtain at least one first information stream corresponding to the first link address according to the first configuration file, where the first configuration file includes at least one piece of first native control description information corresponding to the at least one first information stream;
a second module, configured to obtain a second link address from the at least one first information stream, obtain a second configuration file corresponding to the second link address, and obtain at least one second information stream corresponding to the second link address according to the second configuration file, where the second configuration file includes at least one second native control description information corresponding to the at least one second information stream;
a third module, configured to create at least one first native control corresponding to the at least one first native control description information, and at least one second native control corresponding to the at least one second native control description information;
a fourth module for binding the at least one first information flow to the at least one first native control, binding the at least one second information flow to the at least one second native control, rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation, and rendering the at least one second native control according to the second configuration file on the current page.
According to one aspect of the application, a device for native rendering of an information stream fusing multilink addresses is provided, wherein the device comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
responding to a loading trigger operation aiming at a first link address in a target application, acquiring a first configuration file corresponding to the first link address, and acquiring at least one first information flow corresponding to the first link address according to the first configuration file, wherein the first configuration file comprises at least one piece of first native control description information corresponding to the at least one first information flow;
obtaining a second link address from the at least one first information flow, obtaining a second configuration file corresponding to the second link address, and obtaining at least one second information flow corresponding to the second link address according to the second configuration file, wherein the second configuration file includes at least one piece of second native control description information corresponding to the at least one second information flow;
creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information;
binding the at least one first information flow on the at least one first native control, binding the at least one second information flow on the at least one second native control, and rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and rendering the at least one second native control according to the second configuration file on the current page.
According to one aspect of the application, there is provided a computer-readable medium storing instructions that, when executed, cause a system to:
responding to a loading trigger operation aiming at a first link address in a target application, acquiring a first configuration file corresponding to the first link address, and acquiring at least one first information flow corresponding to the first link address according to the first configuration file, wherein the first configuration file comprises at least one piece of first native control description information corresponding to the at least one first information flow;
obtaining a second link address from the at least one first information flow, obtaining a second configuration file corresponding to the second link address, and obtaining at least one second information flow corresponding to the second link address according to the second configuration file, wherein the second configuration file includes at least one piece of second native control description information corresponding to the at least one second information flow;
creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information;
binding the at least one first information flow on the at least one first native control, binding the at least one second information flow on the at least one second native control, and rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and rendering the at least one second native control according to the second configuration file on the current page.
Compared with the prior art, the method and the device have the advantages that at least one first information stream is obtained according to the first configuration file corresponding to the first link address, the second link address is obtained from the at least one first information stream, the at least one second information stream is obtained according to the second configuration file corresponding to the second link address, the at least one first information stream and the at least one second information stream are respectively bound to the corresponding at least one first native control and the at least one second native control, the at least one first native control and the at least one second native control are rendered on the current page, frequent page jump behaviors of a user when the user browses the webpage can be reduced, and the information obtaining efficiency can be remarkably improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for native rendering of information streams that merge multilink addresses according to one embodiment of the present application;
FIG. 2 illustrates a user device structure diagram for native rendering of information streams that incorporate multiple link addresses, according to one embodiment of the present application;
FIG. 3 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (e.g., Central Processing Units (CPUs)), input/output interfaces, network interfaces, and memory.
The Memory may include forms of volatile Memory, Random Access Memory (RAM), and/or non-volatile Memory in a computer-readable medium, such as Read Only Memory (ROM) or Flash Memory. Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The device referred to in this application includes, but is not limited to, a user device, a network device, or a device formed by integrating a user device and a network device through a network. The user equipment includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an Android operating system, an iOS operating system, etc. The network Device includes an electronic Device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded Device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
FIG. 1 shows a flowchart of a method for native rendering of information streams fusing multilink addresses, the method including step S11, step S12, step S13 and step S14, according to one embodiment of the present application. In step S11, in response to a load trigger operation for a first link address in a target application, a user equipment acquires a first configuration file corresponding to the first link address, and acquires at least one first information stream corresponding to the first link address according to the first configuration file, where the first configuration file includes at least one first native control description information corresponding to the at least one first information stream; in step S12, the user equipment obtains a second link address from the at least one first information stream, obtains a second configuration file corresponding to the second link address, and obtains at least one second information stream corresponding to the second link address according to the second configuration file, where the second configuration file includes at least one second native control description information corresponding to the at least one second information stream; in step S13, the user device creates at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information; in step S14, the user device binds the at least one first information flow to the at least one first native control, binds the at least one second information flow to the at least one second native control, and renders the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and renders the at least one second native control according to the second configuration file on the current page.
In step S11, in response to a load trigger operation for a first link address in a target application, a user equipment obtains a first configuration file corresponding to the first link address, and obtains at least one first information stream corresponding to the first link address according to the first configuration file, where the first configuration file includes at least one first native control description information corresponding to the at least one first information stream. In some embodiments, the loading trigger operation may be that the user inputs the first link address in the target application, that the user clicks the first link address in the target application, or that the user clicks the first link address in another application to jump to the target application, where no limitation is imposed on the loading trigger operation. In some embodiments, the first configuration file may be a file of any format, and preferably, the first configuration file may be a file of json format. In some embodiments, the first profile may be obtained from a server corresponding to the first link address, or the first profile may also be obtained from a server corresponding to the target application, or the first profile may also be obtained locally from the user equipment, or the first link address may include a storage address of the first profile, and the first profile may be obtained according to the storage address of the first profile, where the storage address may be a storage path of the first profile locally at the user equipment, or may be an address of a third-party server storing the first profile, for example, the end of the target link address includes a storage address of an "@ first profile". In some embodiments, the first configuration file includes one or more first native control description information, the first native control description information is used for describing information such as a type and a property of a first native control required to be rendered on the current page, and the first native control can be rendered on the current page according to the first native control description information. In some embodiments, the first native control may be a preset view of the user equipment system (e.g., Button, TextView, cycleview, etc.), a preset view group of the user equipment system (e.g., one or more views or view groups are included in the view group, such as linear layout, relativlayout, etc.), and a custom view or custom view group. In some embodiments, at least one of the one or more first native control descriptors needs to obtain at least one first information stream bound to a first native control corresponding to the at least one first native control descriptor, a portion of the at least one first information stream is displayed on the corresponding first native control (e.g., title information), and another portion of the at least one first information stream is not displayed on the corresponding first native control (e.g., text size information). In some embodiments, how to obtain, for each of the at least one first native control description information, one or more first information streams (information stream parsing rule information) that need to be bound to the first native control corresponding to the first native control description information is defined in the first configuration file. In some embodiments, the first configuration file includes one or more interface addresses (e.g., ajax interface addresses), the multiple pieces of first native control description information may correspond to the same interface address, or may correspond to different interface addresses, the interface data information (e.g., json format data) corresponding to a certain piece of first native control description information is obtained by requesting (e.g., ajax request) the interface address corresponding to the first native control description information, and then the information flow parsing rule information in the first configuration file includes which interface address in the first configuration file each piece of first native control description information corresponds to, and one or more pieces of field path information (e.g., paths of one or more keys in the json format data), and the one or more pieces of first information flow corresponding to the one or more pieces of field path information are parsed from the interface data information corresponding to the first native control description information (a rule of a json a rule is) is obtained by parsing E.g., value corresponding to one or more keys in json format data), the one or more first information streams are taken as the first information streams to be bound to the first native control corresponding to the first native control description information. In some embodiments, according to the HTML page information corresponding to the first link address, Document information corresponding to the first native control description information may be obtained, where the Document is a root node of the HTML page information, all tags in the HTML page information may be accessed through the Document, then rule information is parsed through an information stream in a first configuration file, the rule information includes one or more tag path information, one or more tags corresponding to the one or more tag path information are parsed and obtained from the Document corresponding to the first native control description information, and a first information stream corresponding to the one or more tags is used as a first information stream that needs to be bound to a first native control corresponding to the first native control description information.
In step S12, the user equipment obtains a second link address from the at least one first information stream, obtains a second configuration file corresponding to the second link address, and obtains at least one second information stream corresponding to the second link address according to the second configuration file, where the second configuration file includes at least one second native control description information corresponding to the at least one second information stream. In some embodiments, one or more second link addresses are included in at least one first information stream, and the second link addresses need not be displayed on the corresponding first native controls. In some embodiments, if at least one first information stream includes only one second link address, the corresponding second native control description information and the second information stream may be directly obtained according to the second configuration file corresponding to the second link address, if at least one first information stream includes a plurality of second link addresses, the corresponding second native control description information and the second information stream may be respectively obtained according to one or more second configuration files corresponding to the plurality of second link addresses, or the corresponding second native control description information and the corresponding second information stream may be respectively obtained according to at least one second configuration file corresponding to at least one second link address of the plurality of second link addresses, and other second link addresses except the at least one second link address are ignored. In some embodiments, if a plurality of second link addresses are included in at least one first information stream, the plurality of second link addresses may correspond to a same common second profile. In some embodiments, the one or more second link addresses included in the at least one first information stream may share the first profile with the first link addresses.
In step S13, the user device creates at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information. In some embodiments, creating the first native control corresponding to the first native control description information and the second native control corresponding to the second native control description information includes, but is not limited to, creating a new native control object (e.g., calling a constructor of TextView to new a TextView object), initializing a native control object according to the native control description information (e.g., calling an init method of TextView, or calling a related method of TextView (e.g., a settextmethod or setTextSize) or directly assigning a related attribute of TextView according to attribute information of TextView in the native control description information (e.g., displaying a text attribute or a text size attribute).
In step S14, the user device binds the at least one first information flow to the at least one first native control, binds the at least one second information flow to the at least one second native control, and renders the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and renders the at least one second native control according to the second configuration file on the current page. In some embodiments, for each of at least one native control requiring a binding information flow, one or more information flows corresponding to the native control are obtained through a configuration file, and the one or more information flows are bound to the native control, where the binding may be to call a relevant method corresponding to the native control object (for example, to call a setText or setTextSize method of TextView), to transfer the one or more information flows into the native control object, or may also be to assign a value to a relevant property in the native control object directly according to the one or more information flows. In some embodiments, the at least one first native control and the at least one second native control are rendered on the current page generated based on the load trigger operation for the first link address according to the first configuration file and the second configuration file, wherein the rendering manner is based on native rendering of the user equipment operating system, and not rendering based on the browser kernel. It should be noted that, in the embodiments of the present application, an android system is taken as an example, and those skilled in the art should understand that the solution of the present application can also be applied to other systems, such as an IOS system.
According to the method and the device, at least one first information stream is obtained according to a first configuration file corresponding to a first link address, a second link address is obtained from the at least one first information stream, at least one second information stream is obtained according to a second configuration file corresponding to the second link address, the at least one first information stream and the at least one second information stream are respectively bound to at least one corresponding first native control and at least one corresponding second native control, the at least one first native control and the at least one second native control are rendered on a current page, frequent page jump behaviors of a user when the user browses the webpage can be reduced, and the information obtaining efficiency can be remarkably improved.
In some embodiments, the first configuration file includes one or more first template information, each of the one or more first template information including one or more first native control description information, at least one of all first native control description information included in the one or more first template information corresponding to the at least one first information flow; the second configuration file comprises one or more second template information, each of the one or more second template information comprising one or more second native control description information, at least one of all second native control description information comprised by the one or more second template information corresponding to the at least one second information flow; the rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and the rendering the at least one second native control according to the second configuration file on the current page includes: rendering the at least one first native control according to the one or more first template information on a current page generated based on the load trigger operation, and rendering the at least one second native control according to the one or more second template information on the current page. In some embodiments, the current page generated based on the load trigger operation for the first link address includes one or more display areas, the first configuration file includes one or more first template information, and each display area may correspond to one or more first template information. In some embodiments, each display region may correspond to different first template information, respectively, or a plurality of display regions may correspond to the same first template information. In some embodiments, the first template information may be layout style information of the corresponding display region, the layout style information includes one or more first native control description information, and one or more first native controls corresponding to the one or more first native control description information in the first template information may be rendered on the corresponding display region according to the first template information. In some embodiments, the first template information in the first configuration file may be template identification information (e.g., template name, template ID). In some embodiments, the specific first template information may be obtained from a server local to the user equipment, corresponding to the target application, or corresponding to the target link address according to the template identification information. In some embodiments, at least one of the one or more first template information needs to obtain a corresponding first information flow, at this time, for each of the at least one first template information, at least one of the one or more first native control description information included in the first template information needs to obtain a first information flow bound to a first native control corresponding to the at least one first native control description information, and how to obtain an obtaining manner (information flow parsing rule) of the one or more first information flows that need to be bound to the first native control corresponding to the first native control description information is defined in the first configuration file for each of the at least one first native control description information.
In some embodiments, said rendering said at least one second native control on said current page comprises: rendering the one or more second native controls in a vicinity of the first native control on the current page that corresponds to the second link address. In some embodiments, for each of the at least one second native control, the second native control is rendered and displayed in a vicinity of the first native control on the current page corresponding to the second link address.
In some embodiments, the obtaining the second link address from the at least one first information stream includes: obtaining a plurality of third link addresses from the at least one first information stream; determining a second link address from the plurality of third link addresses. In some embodiments, the at least one first information stream includes a plurality of third link addresses, and since the presentation space of the current page is limited, at least one third link address needs to be determined from the plurality of third link addresses and used as a second link address, at least one second information stream corresponding to the second link address is obtained, the at least one second information stream is bound to the corresponding at least one second native control, and the at least one second native control is rendered on the current page.
In some embodiments, the determining the second link address from the plurality of third link addresses comprises: for each third link address in the plurality of third link addresses, determining weight information corresponding to the third link address according to the first information flow associated with the third link address; and determining a second link address from the plurality of third link addresses according to the weight information corresponding to each third link address. In some embodiments, the first information flow associated with the third link address is a first information flow other than the third link address corresponding to the same first native control as the second link address, for example, the third link address "www.abc.com" corresponds to the first native control a, the first information flow "actor: XXX "also corresponds to the first native control a, a first information stream" actor: XXX "as third link addresswww.abc.comThe associated first information stream. In some embodiments, the weight information is used to indicate a weight corresponding to the third link address. At one endIn some embodiments, the weight information corresponding to each third link address may be determined according to the semantic content of the first information stream associated with the third link address, for example, the higher the similarity or matching degree between the semantic content of the first information stream associated with the third link address and the web page content or web page topic corresponding to the first link address is, the higher the weight of the third link address is. In some embodiments, the weight information corresponding to the third link address may be determined according to the type of the first information stream associated with the third link address, for example, the weight of the third link address associated with the first information stream of the video type is greater than the weight of the third link address associated with the first information stream of the text type. In some embodiments, the third link address with the highest weight in the plurality of third link addresses may be determined as the second link address according to the weight information corresponding to each third link address, or a predetermined number of third link addresses with the highest weight in the plurality of third link addresses may be determined as the second link address according to the weight information corresponding to each third link address.
In some embodiments, the determining, according to the first information flow associated with the third link address, weight information corresponding to the third link address includes: and determining the weight information corresponding to the third link address according to the first information flow associated with the third link address and by combining the theme type corresponding to the first link address. In some embodiments, semantic information of the first information stream associated with the third link address is matched with the topic type corresponding to the first link address, and the higher the matching degree between the semantic information and the topic type, the higher the weight corresponding to the third link address is. In some embodiments, an initial weight corresponding to a third link address is determined according to a first information stream associated with the third link address, and then the initial weight is adjusted in combination with a topic type corresponding to the first link address, so as to determine weight information corresponding to the third link address, and optionally, different adjustment coefficients correspond to different topic types.
In some embodiments, the determining, according to the first information flow associated with the third link address, weight information corresponding to the third link address includes: determining a preset keyword set corresponding to the first link address according to the theme type corresponding to the first link address; and matching the first information flow associated with the third link address with the preset keyword set, and determining the weight information corresponding to the third link address according to the matching result. In some embodiments, the predetermined set of keywords comprises a plurality of keywords that are semantically similar or associated. In some embodiments, the predetermined set of keywords comprises a plurality of keywords related to a particular topic type. In some embodiments, mapping relationships between different topic types and a plurality of predetermined keyword sets may be preset, and according to the mapping relationships, the predetermined keyword set corresponding to the topic type corresponding to the first link address is determined. In some embodiments, the first information stream associated with the third link address is matched with each keyword in a predetermined keyword set, a matching degree between the first information stream and the predetermined keyword set is determined, and then the weight information corresponding to the third link address is determined according to the matching degree, wherein the higher the matching degree is, the higher the weight indicated by the determined weight information is.
In some embodiments, the method further comprises: and determining the topic type corresponding to the first link address according to the semantic content of the at least one first information stream. In some embodiments, the semantic content of the at least one first information stream or the key content extracted from the semantic content is input into a pre-trained model, and a topic type output by the model is used as a topic type corresponding to the first link address, and optionally, the model may be obtained by training a large amount of semantic sample data labeled with the topic type. In some embodiments, sentiment analysis is performed according to semantic content of the at least one first information stream, and a topic type corresponding to the first link address is determined. In some embodiments, according to the semantic content of the at least one first information stream, a keyword with the highest frequency of occurrence in the at least one first information stream is determined, and the type of the keyword is determined as the type of the topic corresponding to the first link address.
In some embodiments, the obtaining at least one second information stream corresponding to the second link address according to the second configuration file includes: acquiring one or more third information streams corresponding to one or more second native control description information in the at least one second native control description information according to the second configuration file; determining at least one second information stream from the one or more third information streams; wherein the creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information comprises: creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information, wherein the at least one second native control does not include second native controls corresponding to other ones of the one or more third information flows other than the at least one second information flow. In some embodiments, for one or more third information streams, which are acquired according to the second configuration file and need to be bound to one or more second native controls corresponding to one or more second native control description information in the at least one second native control description information, because the presentation space of the current page is limited, it is not necessary to render and display all the third information streams on the current page, it is necessary to determine at least one second information stream from the one or more third information streams, and only render and display the at least one second information stream on the current page. In some embodiments, a second native control of a third information stream other than the at least one second information stream originally needs to be bound, and since the at least one second information stream does not need to be displayed on the current page, the portion of the second native control does not need to be created and even does not need to be rendered on the current page.
In some embodiments, each of the at least one second information stream satisfies a predetermined first association condition with the first information stream associated with the second link address. In some embodiments, at least one third information flow satisfying a predetermined first association degree condition between the first information flow associated with the second association address is determined as the second information flow from among the one or more third information flows. In some embodiments, the first association condition may be that the association between the target third information flow and the first information flow associated with the second association address is greater than or equal to a predetermined association threshold, or may also be that the association between the target third information flow and the first information flow associated with the second association address is greater than the association between any third information flow other than the target third information flow and the first information flow associated with the second association address.
In some embodiments, the topic type of each of the at least one second information flow corresponding to the first link address satisfies a predetermined second association condition. In some embodiments, at least one third information flow satisfying a predetermined second association degree condition between the topic types corresponding to the first link addresses is determined as the second information flow from among the one or more third information flows. In some embodiments, the second association condition may be that the association between the target third information stream and the topic type corresponding to the first link address is greater than or equal to a predetermined association threshold, or may also be that the association between the target third information stream and the topic type corresponding to the first link address is greater than the association between any other third information stream except the target third information stream and the topic type corresponding to the first link address.
In some embodiments, the determining at least one second information flow from the one or more third information flows comprises, for each of the one or more third information flows: and acquiring the page space occupation condition of a second native control corresponding to the third information flow, and determining the third information flow as the second information flow if the page space occupation condition meets a preset page space occupation condition. In some embodiments, for each third information flow, acquiring a page space occupation condition of a second native control corresponding to the third information flow on the current page, where the page control occupation condition includes, but is not limited to, absolute size information of the second native control, and relative size proportion information of the second native control occupying the current page. In some embodiments, if the absolute size information of the second native control is less than or equal to a predetermined size threshold, or, if the relative size proportion information of the second native control in the current page is less than or equal to the predetermined proportion threshold, if the second native control is not suitable for rendering and presenting on the current page, determining a third information stream corresponding to the second native control as the second information stream, otherwise, for the portion of the third information stream corresponding to the second native control for which the absolute size information exceeds the predetermined size threshold, or, for the portion of the third information flow corresponding to the second native control whose relative size proportion information of the current page exceeds the predetermined proportion threshold, the portion of the third information flow does not need to be displayed on the current page, therefore, the second native control corresponding to the part of the third information flow does not need to be created, and even does not need to be rendered on the current page.
In some embodiments, the method further comprises, for each of the one or more third information streams: and if the page space occupation condition of the second native control corresponding to the third information flow does not meet the preset page space occupation condition, determining the second information flow according to the third information flow, wherein the page space occupation condition of the second native control corresponding to the second information flow meets the preset page space occupation condition. In some embodiments, for the portion of the third information stream corresponding to the second native control whose absolute size information exceeds the predetermined size threshold, or for the portion of the third information stream corresponding to the second native control whose relative size ratio information of the current page exceeds the predetermined ratio threshold, processing the portion of the third information stream, and determining the processed third information stream as at least one second information stream, where the page space occupation condition of the second native control corresponding to the processed third information stream satisfies the predetermined page space occupation condition.
In some embodiments, said determining the second information stream from the third information stream comprises: and intercepting part of the information flow in the third information flow, and determining the part of the information flow as the second information flow. In some embodiments, if the third information stream is text information, text information of a partial length in the text information may be intercepted and obtained and determined as the second information stream, and the page space occupation condition of the second native control corresponding to the intercepted second information stream satisfies a predetermined page space occupation condition. In some embodiments, if the third information stream is picture information or audio/video information, the picture information of a partial region in the picture information or the audio/video information of a partial duration in the audio/video information may also be captured and obtained, and determined as the second information stream, and the page space occupation condition of the second native control corresponding to the captured second information stream satisfies a predetermined page space occupation condition.
In some embodiments, said determining the second information stream from the third information stream comprises: and obtaining at least one keyword corresponding to the third information flow, and determining the at least one keyword as the second information flow. In some embodiments, a number of keywords in the third information stream may be obtained by performing semantic recognition on the third information stream, and a set of the number of keywords may be determined as the second information stream. In some embodiments, a number of keywords in the third information stream may also be obtained by combining the topic type corresponding to the first link address or the topic type corresponding to the second link address.
In some embodiments, said determining the second information stream from the third information stream comprises: and generating summary information corresponding to the third information stream according to the semantic content of the third information stream, and determining the summary information as the second information stream. In some embodiments, semantic content of the third information stream is identified by performing semantic identification on the third information stream, and corresponding summary information is generated according to the semantic content of the third information stream, and the summary information is determined as the second information stream. In some embodiments, the summary information corresponding to the third information stream may be further generated by combining the topic type corresponding to the first link address or the topic type corresponding to the second link address.
In some embodiments, the method further comprises, for each of the one or more third information streams: and if the page space occupation condition of the second native control corresponding to the third information flow does not meet the preset page space occupation condition, determining the third information flow as the second information flow, and modifying the relevant attribute of the second native control corresponding to the second information flow, wherein the modified page space occupation condition of the second native control meets the preset page space occupation condition. In some embodiments, a control scaling property (e.g., scale) of the second native control may be directly modified to reduce the size of the occupied space of the second native control, such that the modified page space occupation of the second native control satisfies a predetermined page space occupation condition. In some embodiments, the associated properties of the second native control include, but are not limited to, a display content size property and a control scaling property of the second native control. In some embodiments, if the size of the occupied space of the second native control is adaptively adjusted along with the size of the display content corresponding to the second native control (e.g., wrap _ content), the size attribute of the display content may be directly modified to adaptively reduce the size of the occupied space of the second native control, so that the modified page space occupation condition of the second native control meets a predetermined page space occupation condition, for example, if the display content of the second native control is text content, the font size attribute of the second native control may be modified, and for example, if the display content of the second native control is dragged to be picture content, the length-width size attribute of the picture content may be modified.
In some embodiments, the method further comprises: responding to an access trigger operation aiming at the second link address in the current page, and jumping to a second page corresponding to the second link address from the current page; creating at least one second native control corresponding to the at least one second native control description information; binding the one or more third information streams on the at least one second native control and rendering the at least one second native control on the second page according to the second configuration file. In some embodiments, the access trigger operation includes any operation for triggering access to the second link address, such as a click operation for a target second native control of the at least one second native control. In some embodiments, since other third information streams except the second information stream are not displayed on the current page before, the second native control of the other third information streams needs to be bound originally, and since the other third information streams do not need to be displayed on the current page, the part of the second native control does not need to be created or rendered on the current page, and the user can only browse a part of the information streams corresponding to the second link address on the current page. In some embodiments, in response to an access trigger operation for the second link address in the current page, jumping from the current page to a second page corresponding to the second link address, then creating at least one second native control corresponding to at least one second native control description information in a second configuration file, binding one or more third information streams on the at least one second native control, and rendering the at least one second native control on the second page according to the second configuration file, thereby enabling a user to further browse all information streams corresponding to the second link address on the second page.
In some embodiments, the method further comprises: acquiring one or more third template information from the second configuration file; selecting one or more second template information from the one or more third template information, wherein each of the one or more second template information and at least one of the one or more first template information satisfy a predetermined matching degree condition. In some embodiments, the predetermined match condition includes any predetermined condition related to a degree of match, such as a condition related to a threshold degree of match, a condition related to a number or proportion of matches, and the like. In some embodiments, the second configuration file includes a plurality of third module information, each third module information includes one or more second native control description information, each third module corresponds to one or more display regions on the current page, and according to each third template information, one or more second native controls corresponding to the one or more second native control description information in the third template information may be rendered on the corresponding display region. In some embodiments, for each third template information, the third template information is matched with the one or more first template information, if there is a first template information in the one or more first template information whose matching degree with the third template information exceeds a predetermined matching degree threshold, or if the number of first template information in the one or more first template information whose matching degree with the third template information exceeds a predetermined matching degree threshold is greater than or equal to a predetermined number threshold or meets a predetermined ratio threshold, or if the average matching degree or the overall matching degree between the third template information and the one or more first template information is greater than or equal to a predetermined matching degree threshold, or the average matching degree or the overall matching degree between the third template information and the one or more first template information is greater than the average matching degree between other third template information and the one or more first template information And determining the third template information as second template information, so as to render one or more second native controls corresponding to one or more second native control description information in at least one second template information on a corresponding display area, and ignore other third template information except the at least one second template information. Therefore, certain matching degree can be achieved between the second template information selected from the one or more third template information and the first template information, so that the style uniformity of the presentation style of the current page can be ensured as much as possible, and the visual impression of a user is prevented from being influenced.
In some embodiments, the method further comprises: acquiring one or more third primitive control description information from the one or more second template information; and acquiring one or more second native control description information from the one or more third native control description information, wherein each of the one or more second native control description information and at least one of the acquired all first native control description information satisfy a predetermined matching degree condition. In some embodiments, the second configuration file includes one or more third module information, each third module information includes one or more third native control description information, for each third native control description information in the one or more third native control description information, the third native control description information is matched with at least one first native control description information obtained in the first template information, if there is first template information in the at least one first native control description information whose matching degree with the third native control description information exceeds a predetermined matching degree threshold, or if the number of first native control description information in the at least one first native control description information whose matching degree with the third native control description information exceeds the predetermined matching degree threshold is greater than or equal to a predetermined number threshold or meets a predetermined proportion threshold, or if the average matching degree or the overall matching degree between the third native control description information and the at least one first native control description information is greater than or equal to a predetermined matching degree threshold value, or the average matching degree or the overall matching degree between the third native control description information and the at least one first native control description information is greater than the average matching degree or the overall matching degree between the third native control description information and the at least one first native control description information, determining the third native control description information as second native control description information, rendering one or more second native controls corresponding to one or more second native control description information on the current page, and ignoring other third native control description information except the one or more second native control description information. Therefore, second native control description information with a certain matching degree between the third native control description information and the first native control description information can be selected from one or more third native control description information in the second template information, and then the second native control corresponding to the second link address finally presented in the current page and the first native control corresponding to the first link address have a certain matching degree, so that the style uniformity of the presentation style of the current page can be ensured as much as possible, and the visual impression of a user is prevented from being influenced.
In some embodiments, the second link addresses are multiple, and each second link address corresponds to a same common second configuration file. In some embodiments, the first information stream includes a plurality of second link addresses, each of the second link addresses shares a same second configuration file, the second configuration file includes one or more second template information, and different second link addresses may correspond to the same second template information or may correspond to different second template information, respectively.
In some embodiments, the common second profile is the first profile. In some embodiments, the first link address and the second link address share the same configuration file, i.e. share the first configuration file.
In some embodiments, the obtaining at least one second information stream corresponding to the second link address according to the second configuration file includes: for each second link address, rule information corresponding to the second link address is obtained from the shared second configuration file, one or more second native control description information is obtained from the rule information, and one or more second information streams corresponding to at least one second native control description information in the one or more second native control description information are obtained according to the rule information. In some embodiments, the second configuration file shared by the plurality of second link addresses includes one or more rule information, each second link address corresponds to one rule information, and different second link addresses may respectively correspond to different rule information or may correspond to the same rule information. In some embodiments, the rule information corresponding to each second link address includes one or more second native control description information corresponding to the second link address and an obtaining manner how to obtain one or more second information streams that need to be bound to at least one second native control corresponding to at least one second native control description information in the one or more second native control description information. For example, the rule information corresponding to the second link address "https:// m.doubly. com/movie/" is "movie _ rule", the rule information corresponding to the second link address "https:// m.doubly. com/tv/" is "tv _ rule", the "movie _ rule" includes a template information (e.g., a template ID, "template": 1), and a specific template information can be obtained from a server corresponding to the user device local and the target application or a server corresponding to the target link address based on the template identification information) and a corresponding information flow obtaining manner, and the "tv _ rule" includes another template information (e.g., "template": 2), and a specific template information can be obtained from the server corresponding to the user device local and the target application or a server corresponding to the target link address based on the template identification information) and a corresponding information flow obtaining manner, and acquiring one or more second information flows required to be bound to at least one second native control corresponding to at least one second native control description information in one or more second native control description information corresponding to the second link address "https:// m.douban.com/movie/" according to the corresponding information flow acquisition modes.
In some embodiments, the obtaining the rule information corresponding to the second link address from the shared second configuration file includes: matching the second link address with the at least one link related information to obtain link related information matched with the second link address; and according to the mapping relation, taking the rule information corresponding to the link related information as the rule information corresponding to the second link address. In some embodiments, the link related information may be a certain link address, or may be a regular expression of a certain link address. In some embodiments, the second configuration file includes a mapping relationship between at least one link related information and at least one rule information, where different link related information corresponds to different rule information, or several different link related information correspond to the same rule information, and by matching each second link address with at least one link related information in the mapping relationship, link related information matching the second link address is obtained, and the rule information mapped by the link related information is used as the rule information corresponding to the second link address. For example, the mapping relationship in the second configuration file is ("rule _ regex": [ { "regex": https:// m.douban.com/movie/"," rule ": movie _ rule" }, { "regex": https:// m.douban.com/tv/"," rule ": tv _ rule" }), the second link address is "https:// m.douban.com/movie/," and the rule information corresponding to the second link address "https:// m.douban.com/movie/" can be determined as "movie _ rule" according to the mapping relationship.
Fig. 2 shows a block diagram of a user device for native rendering of information streams with fused multilink addresses according to an embodiment of the present application, the device including a one-to-one module 11, a two-to-two module 12, a three-to-one module 13, and a four-to-one module 14. A module 11, configured to, in response to a load trigger operation for a first link address in a target application, obtain a first configuration file corresponding to the first link address, and obtain at least one first information stream corresponding to the first link address according to the first configuration file, where the first configuration file includes at least one first native control description information corresponding to the at least one first information stream; a secondary module 12, configured to obtain a second link address from the at least one first information stream, obtain a second configuration file corresponding to the second link address, and obtain at least one second information stream corresponding to the second link address according to the second configuration file, where the second configuration file includes at least one second native control description information corresponding to the at least one second information stream; a third module 13, configured to create at least one first native control corresponding to the at least one first native control description information, and at least one second native control corresponding to the at least one second native control description information; a fourth module 14, configured to bind the at least one first information flow to the at least one first native control, bind the at least one second information flow to the at least one second native control, render the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation, and render the at least one second native control according to the second configuration file on the current page.
A one-to-one module 11, configured to, in response to a load trigger operation for a first link address in a target application, obtain a first configuration file corresponding to the first link address, and obtain at least one first information stream corresponding to the first link address according to the first configuration file, where the first configuration file includes at least one first native control description information corresponding to the at least one first information stream. In some embodiments, the loading trigger operation may be that the user inputs the first link address in the target application, that the user clicks the first link address in the target application, or that the user clicks the first link address in another application to jump to the target application, where no limitation is imposed on the loading trigger operation. In some embodiments, the first configuration file may be a file of any format, and preferably, the first configuration file may be a file of json format. In some embodiments, the first profile may be obtained from a server corresponding to the first link address, or the first profile may also be obtained from a server corresponding to the target application, or the first profile may also be obtained locally from the user equipment, or the first link address may include a storage address of the first profile, and the first profile may be obtained according to the storage address of the first profile, where the storage address may be a storage path of the first profile locally at the user equipment, or may be an address of a third-party server storing the first profile, for example, the end of the target link address includes a storage address of an "@ first profile". In some embodiments, the first configuration file includes one or more first native control description information, the first native control description information is used for describing information such as a type and a property of a first native control required to be rendered on the current page, and the first native control can be rendered on the current page according to the first native control description information. In some embodiments, the first native control may be a preset view of the user equipment system (e.g., Button, TextView, cycleview, etc.), a preset view group of the user equipment system (e.g., one or more views or view groups are included in the view group, such as linear layout, relativlayout, etc.), and a custom view or custom view group. In some embodiments, at least one of the one or more first native control descriptors needs to obtain at least one first information stream bound to a first native control corresponding to the at least one first native control descriptor, a portion of the at least one first information stream is displayed on the corresponding first native control (e.g., title information), and another portion of the at least one first information stream is not displayed on the corresponding first native control (e.g., text size information). In some embodiments, how to obtain, for each of the at least one first native control description information, one or more first information streams (information stream parsing rule information) that need to be bound to the first native control corresponding to the first native control description information is defined in the first configuration file. In some embodiments, the first configuration file includes one or more interface addresses (e.g., ajax interface addresses), the multiple pieces of first native control description information may correspond to the same interface address, or may correspond to different interface addresses, the interface data information (e.g., json format data) corresponding to a certain piece of first native control description information is obtained by requesting (e.g., ajax request) the interface address corresponding to the first native control description information, and then the information flow parsing rule information in the first configuration file includes which interface address in the first configuration file each piece of first native control description information corresponds to, and one or more pieces of field path information (e.g., paths of one or more keys in the json format data), and the one or more pieces of first information flow corresponding to the one or more pieces of field path information are parsed from the interface data information corresponding to the first native control description information (a rule of a json a rule is) is obtained by parsing E.g., value corresponding to one or more keys in json format data), the one or more first information streams are taken as the first information streams to be bound to the first native control corresponding to the first native control description information. In some embodiments, according to the HTML page information corresponding to the first link address, Document information corresponding to the first native control description information may be obtained, where the Document is a root node of the HTML page information, all tags in the HTML page information may be accessed through the Document, then rule information is parsed through an information stream in a first configuration file, the rule information includes one or more tag path information, one or more tags corresponding to the one or more tag path information are parsed and obtained from the Document corresponding to the first native control description information, and a first information stream corresponding to the one or more tags is used as a first information stream that needs to be bound to a first native control corresponding to the first native control description information.
A secondary module 12, configured to obtain a second link address from the at least one first information stream, obtain a second configuration file corresponding to the second link address, and obtain at least one second information stream corresponding to the second link address according to the second configuration file, where the second configuration file includes at least one second native control description information corresponding to the at least one second information stream. In some embodiments, one or more second link addresses are included in at least one first information stream, and the second link addresses need not be displayed on the corresponding first native controls. In some embodiments, if at least one first information stream includes only one second link address, the corresponding second native control description information and the second information stream may be directly obtained according to the second configuration file corresponding to the second link address, if at least one first information stream includes a plurality of second link addresses, the corresponding second native control description information and the second information stream may be respectively obtained according to one or more second configuration files corresponding to the plurality of second link addresses, or the corresponding second native control description information and the corresponding second information stream may be respectively obtained according to at least one second configuration file corresponding to at least one second link address of the plurality of second link addresses, and other second link addresses except the at least one second link address are ignored. In some embodiments, if a plurality of second link addresses are included in at least one first information stream, the plurality of second link addresses may correspond to a same common second profile. In some embodiments, the one or more second link addresses included in the at least one first information stream may share the first profile with the first link addresses.
A third module 13, configured to create at least one first native control corresponding to the at least one first native control description information, and at least one second native control corresponding to the at least one second native control description information. In some embodiments, creating the first native control corresponding to the first native control description information and the second native control corresponding to the second native control description information includes, but is not limited to, creating a new native control object (e.g., calling a constructor of TextView to new a TextView object), initializing a native control object according to the native control description information (e.g., calling an init method of TextView, or calling a related method of TextView (e.g., settextmethod or set size) or directly assigning a related attribute of TextView according to attribute information of TextView in the native control description information (e.g., displaying a text attribute or a text size attribute).
A fourth module 14, configured to bind the at least one first information flow to the at least one first native control, bind the at least one second information flow to the at least one second native control, render the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation, and render the at least one second native control according to the second configuration file on the current page. In some embodiments, for each of at least one native control requiring a binding information flow, one or more information flows corresponding to the native control are obtained through a configuration file, and the one or more information flows are bound to the native control, where the binding may be to call a relevant method corresponding to the native control object (for example, to call a setText or setTextSize method of TextView), to transfer the one or more information flows into the native control object, or may also be to assign a value to a relevant property in the native control object directly according to the one or more information flows. In some embodiments, the at least one first native control and the at least one second native control are rendered on the current page generated based on the load trigger operation for the first link address according to the first configuration file and the second configuration file, wherein the rendering manner is based on native rendering of the user equipment operating system, and not rendering based on the browser kernel. It should be noted that, in the embodiments of the present application, an android system is taken as an example, and those skilled in the art should understand that the solution of the present application can also be applied to other systems, such as an IOS system.
According to the method and the device, at least one first information stream is obtained according to a first configuration file corresponding to a first link address, a second link address is obtained from the at least one first information stream, at least one second information stream is obtained according to a second configuration file corresponding to the second link address, the at least one first information stream and the at least one second information stream are respectively bound to at least one corresponding first native control and at least one corresponding second native control, the at least one first native control and the at least one second native control are rendered on a current page, frequent page jump behaviors of a user when the user browses the webpage can be reduced, and the information obtaining efficiency can be remarkably improved.
In some embodiments, the first configuration file includes one or more first template information, each of the one or more first template information including one or more first native control description information, at least one of all first native control description information included in the one or more first template information corresponding to the at least one first information flow; the second configuration file comprises one or more second template information, each of the one or more second template information comprising one or more second native control description information, at least one of all second native control description information comprised by the one or more second template information corresponding to the at least one second information flow; the rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and the rendering the at least one second native control according to the second configuration file on the current page includes: rendering the at least one first native control according to the one or more first template information on a current page generated based on the load trigger operation, and rendering the at least one second native control according to the one or more second template information on the current page. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, said rendering said at least one second native control on said current page comprises: rendering the one or more second native controls in a vicinity of the first native control on the current page that corresponds to the second link address. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the obtaining the second link address from the at least one first information stream includes: obtaining a plurality of third link addresses from the at least one first information stream; determining a second link address from the plurality of third link addresses. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the determining the second link address from the plurality of third link addresses comprises: for each third link address in the plurality of third link addresses, determining weight information corresponding to the third link address according to the first information flow associated with the third link address; and determining a second link address from the plurality of third link addresses according to the weight information corresponding to each third link address. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the determining, according to the first information flow associated with the third link address, weight information corresponding to the third link address includes: and determining the weight information corresponding to the third link address according to the first information flow associated with the third link address and by combining the theme type corresponding to the first link address. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the determining, according to the first information flow associated with the third link address, weight information corresponding to the third link address includes: determining a preset keyword set corresponding to the first link address according to the theme type corresponding to the first link address; and matching the first information flow associated with the third link address with the preset keyword set, and determining the weight information corresponding to the third link address according to the matching result. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: and determining the topic type corresponding to the first link address according to the semantic content of the at least one first information stream. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the obtaining at least one second information stream corresponding to the second link address according to the second configuration file includes: acquiring one or more third information streams corresponding to one or more second native control description information in the at least one second native control description information according to the second configuration file; determining at least one second information stream from the one or more third information streams; wherein the creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information comprises: creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information, wherein the at least one second native control does not include second native controls corresponding to other ones of the one or more third information flows other than the at least one second information flow. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, each of the at least one second information stream satisfies a predetermined first association condition with the first information stream associated with the second link address. In some embodiments, at least one third information flow satisfying a predetermined first association degree condition between the first information flow associated with the second association address is determined as the second information flow from among the one or more third information flows. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the topic type of each of the at least one second information flow corresponding to the first link address satisfies a predetermined second association condition. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the determining at least one second information flow from the one or more third information flows comprises, for each of the one or more third information flows: and acquiring the page space occupation condition of a second native control corresponding to the third information flow, and determining the third information flow as the second information flow if the page space occupation condition meets a preset page space occupation condition. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the method further comprises, for each of the one or more third information streams: and if the page space occupation condition of the second native control corresponding to the third information flow does not meet the preset page space occupation condition, determining the second information flow according to the third information flow, wherein the page space occupation condition of the second native control corresponding to the second information flow meets the preset page space occupation condition. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, said determining the second information stream from the third information stream comprises: and intercepting part of the information flow in the third information flow, and determining the part of the information flow as the second information flow. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, said determining the second information stream from the third information stream comprises: and obtaining at least one keyword corresponding to the third information flow, and determining the at least one keyword as the second information flow. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, said determining the second information stream from the third information stream comprises: and generating summary information corresponding to the third information stream according to the semantic content of the third information stream, and determining the summary information as the second information stream. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to, for each of the one or more third information streams: and if the page space occupation condition of the second native control corresponding to the third information flow does not meet the preset page space occupation condition, determining the third information flow as the second information flow, and modifying the relevant attribute of the second native control corresponding to the second information flow, wherein the modified page space occupation condition of the second native control meets the preset page space occupation condition. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: responding to an access trigger operation aiming at the second link address in the current page, and jumping to a second page corresponding to the second link address from the current page; creating at least one second native control corresponding to the at least one second native control description information; binding the one or more third information streams on the at least one second native control and rendering the at least one second native control on the second page according to the second configuration file. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: acquiring one or more third template information from the second configuration file; selecting one or more second template information from the one or more third template information, wherein each of the one or more second template information and at least one of the one or more first template information satisfy a predetermined matching degree condition. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the apparatus is further configured to: acquiring one or more third primitive control description information from the one or more second template information; and acquiring one or more second native control description information from the one or more third native control description information, wherein each of the one or more second native control description information and at least one of the acquired all first native control description information satisfy a predetermined matching degree condition. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the second link addresses are multiple, and each second link address corresponds to a same common second configuration file. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the common second profile is the first profile. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the obtaining at least one second information stream corresponding to the second link address according to the second configuration file includes: for each second link address, rule information corresponding to the second link address is obtained from the shared second configuration file, one or more second native control description information is obtained from the rule information, and one or more second information streams corresponding to at least one second native control description information in the one or more second native control description information are obtained according to the rule information. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
In some embodiments, the obtaining the rule information corresponding to the second link address from the shared second configuration file includes: matching the second link address with the at least one link related information to obtain link related information matched with the second link address; and according to the mapping relation, taking the rule information corresponding to the link related information as the rule information corresponding to the second link address. Here, the related operations are the same as or similar to those of the embodiment shown in fig. 1, and therefore are not described again, and are included herein by reference.
FIG. 3 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
In some embodiments, as shown in FIG. 3, the system 300 can be implemented as any of the devices in the various embodiments described. In some embodiments, system 300 may include one or more computer-readable media (e.g., system memory or NVM/storage 320) having instructions and one or more processors (e.g., processor(s) 305) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 310 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 305 and/or any suitable device or component in communication with system control module 310.
The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. Memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
System memory 315 may be used, for example, to load and store data and/or instructions for system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 315 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 320 and communication interface(s) 325.
For example, NVM/storage 320 may be used to store data and/or instructions. NVM/storage 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 320 may include storage resources that are physically part of the device on which system 300 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 320 may be accessible over a network via communication interface(s) 325.
Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) (e.g., memory controller module 330) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) of the system control module 310 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310 to form a system on a chip (SoC).
In various embodiments, system 300 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a holding computing device, a tablet, a netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
The present application also provides a computer readable storage medium having stored thereon computer code which, when executed, performs a method as in any one of the preceding.
The present application also provides a computer program product, which when executed by a computer device, performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (20)

1. A method of fusing native rendering of information streams of multilink addresses, wherein the method comprises:
responding to a loading trigger operation aiming at a first link address in a target application, acquiring a first configuration file corresponding to the first link address, and acquiring at least one first information flow corresponding to the first link address according to the first configuration file, wherein the first configuration file comprises at least one piece of first native control description information corresponding to the at least one first information flow;
obtaining a second link address from the at least one first information flow, obtaining a second configuration file corresponding to the second link address, and obtaining at least one second information flow corresponding to the second link address according to the second configuration file, wherein the second configuration file includes at least one piece of second native control description information corresponding to the at least one second information flow;
creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information;
binding the at least one first information flow on the at least one first native control, binding the at least one second information flow on the at least one second native control, and rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and rendering the at least one second native control according to the second configuration file on the current page.
2. The method of claim 1, wherein the first configuration file includes one or more first template information, each of the one or more first template information including one or more first native control description information, at least one of all first native control description information included in the one or more first template information corresponding to the at least one first information flow; the second configuration file comprises one or more second template information, each of the one or more second template information comprising one or more second native control description information, at least one of all second native control description information comprised by the one or more second template information corresponding to the at least one second information flow;
the rendering the at least one first native control according to the first configuration file on a current page generated based on the load trigger operation and the rendering the at least one second native control according to the second configuration file on the current page includes:
rendering the at least one first native control according to the one or more first template information on a current page generated based on the load trigger operation, and rendering the at least one second native control according to the one or more second template information on the current page.
3. The method of claim 1 or 2, wherein the rendering the at least one second native control on the current page comprises:
rendering the one or more second native controls in a vicinity of the first native control on the current page that corresponds to the second link address.
4. The method according to any of claims 1 to 3, wherein said obtaining a second linking address from said at least one first information flow comprises:
obtaining a plurality of third link addresses from the at least one first information stream;
determining a second link address from the plurality of third link addresses.
5. The method of claim 4, wherein said determining a second linked address from said plurality of third linked addresses comprises:
for each third link address in the plurality of third link addresses, determining weight information corresponding to the third link address according to the first information flow associated with the third link address;
and determining a second link address from the plurality of third link addresses according to the weight information corresponding to each third link address.
6. The method of claim 5, wherein the determining, according to the first information flow associated with the third link address, the weight information corresponding to the third link address comprises:
and determining the weight information corresponding to the third link address according to the first information flow associated with the third link address and by combining the theme type corresponding to the first link address.
7. The method of claim 5, wherein the determining, according to the first information flow associated with the third link address, the weight information corresponding to the third link address comprises:
determining a preset keyword set corresponding to the first link address according to the theme type corresponding to the first link address;
and matching the first information flow associated with the third link address with the preset keyword set, and determining the weight information corresponding to the third link address according to the matching result.
8. The method of claim 6 or 7, wherein the method further comprises:
and determining the topic type corresponding to the first link address according to the semantic content of the at least one first information stream.
9. The method according to claim 1 or 2, wherein the obtaining at least one second information flow corresponding to the second link address according to the second configuration file includes:
acquiring one or more third information streams corresponding to one or more second native control description information in the at least one second native control description information according to the second configuration file;
determining at least one second information stream from the one or more third information streams;
wherein the creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information comprises:
creating at least one first native control corresponding to the at least one first native control description information and at least one second native control corresponding to the at least one second native control description information, wherein the at least one second native control does not include second native controls corresponding to other ones of the one or more third information flows other than the at least one second information flow.
10. The method of claim 9, wherein each of the at least one second information flow satisfies a predetermined first association condition with the first information flow associated with the second link address.
11. The method of claim 9, wherein a topic type corresponding to the first link address for each of the at least one second information flow satisfies a predetermined second relevancy condition.
12. The method of claim 9, wherein the determining at least one second information flow from the one or more third information flows comprises, for each of the one or more third information flows:
and acquiring the page space occupation condition of a second native control corresponding to the third information flow, and determining the third information flow as the second information flow if the page space occupation condition meets a preset page space occupation condition.
13. The method of claim 12, wherein the method further comprises, for each of the one or more third information streams:
and if the page space occupation condition of the second native control corresponding to the third information flow does not meet the preset page space occupation condition, determining the second information flow according to the third information flow, wherein the page space occupation condition of the second native control corresponding to the second information flow meets the preset page space occupation condition.
14. The method of claim 13, wherein determining the second information flow from the third information flow comprises:
and intercepting part of the information flow in the third information flow, and determining the part of the information flow as the second information flow.
15. The method of claim 13, wherein determining the second information flow from the third information flow comprises:
and obtaining at least one keyword corresponding to the third information flow, and determining the at least one keyword as the second information flow.
16. The method of claim 13, wherein determining the second information flow from the third information flow comprises:
and generating summary information corresponding to the third information stream according to the semantic content of the third information stream, and determining the summary information as the second information stream.
17. The method of claim 12, wherein the method further comprises, for each of the one or more third information streams:
and if the page space occupation condition of the second native control corresponding to the third information flow does not meet the preset page space occupation condition, determining the third information flow as the second information flow, and modifying the relevant attribute of the second native control corresponding to the second information flow, wherein the modified page space occupation condition of the second native control meets the preset page space occupation condition.
18. The method of any of claims 9 to 17, wherein the method further comprises:
responding to an access trigger operation aiming at the second link address in the current page, and jumping to a second page corresponding to the second link address from the current page;
creating at least one second native control corresponding to the at least one second native control description information;
binding the one or more third information streams on the at least one second native control and rendering the at least one second native control on the second page according to the second configuration file.
19. A device for multi-page fusion based on native rendering of information streams, wherein the device comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any of claims 1 to 18.
20. A computer-readable medium storing instructions that, when executed, cause a system to perform the operations of any of the methods of claims 1-18.
CN202010982288.2A 2020-09-17 2020-09-17 Native rendering method and device for information stream fusing multi-link addresses Pending CN112256992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010982288.2A CN112256992A (en) 2020-09-17 2020-09-17 Native rendering method and device for information stream fusing multi-link addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010982288.2A CN112256992A (en) 2020-09-17 2020-09-17 Native rendering method and device for information stream fusing multi-link addresses

Publications (1)

Publication Number Publication Date
CN112256992A true CN112256992A (en) 2021-01-22

Family

ID=74231294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010982288.2A Pending CN112256992A (en) 2020-09-17 2020-09-17 Native rendering method and device for information stream fusing multi-link addresses

Country Status (1)

Country Link
CN (1) CN112256992A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996622A (en) * 2022-08-02 2022-09-02 北京弘玑信息技术有限公司 Information acquisition method, value network model training method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996622A (en) * 2022-08-02 2022-09-02 北京弘玑信息技术有限公司 Information acquisition method, value network model training method and electronic equipment
CN114996622B (en) * 2022-08-02 2022-11-11 北京弘玑信息技术有限公司 Information acquisition method, value network model training method and electronic equipment

Similar Documents

Publication Publication Date Title
JP6740373B2 (en) Page component dynamic layout
TWI703463B (en) Information display method, device and intelligent terminal
US9773069B2 (en) Pre-fetching of network page content in a browser application
US9507480B1 (en) Interface optimization application
CN110502298B (en) Method and equipment for providing update reminding information of electronic book
CN105824830B (en) Method, client and equipment for displaying page
CN103970855A (en) Device and method for processing data
CN107590205A (en) A kind of service showing method, device and equipment
EP3249554A1 (en) Systems and methods for client-side dynamic information resource activation and deactivation
CN111488096B (en) Method and equipment for displaying interactive presentation information in reading application
CN110968314B (en) Page generation method and device
CN112783783A (en) Webpage point burying method, device and equipment and readable storage medium
US10579229B2 (en) Customizable media player framework
CN110795635B (en) Method and device for presenting books
CN110502299B (en) Method and equipment for providing novel information
CN111488097A (en) Method and equipment for providing reading presentation information
CN109254781B (en) Method and equipment for installing application on user equipment
US20220078161A1 (en) Method and apparatus for advertisement anti-blocking
CN111506232B (en) Method and equipment for controlling menu display in reading application
CN112256992A (en) Native rendering method and device for information stream fusing multi-link addresses
CN110781269B (en) Method and equipment for searching books in reading application
CN112256991B (en) Method and equipment for native rendering of information flow fusing multiple link addresses
CN110765390A (en) Method and equipment for publishing shared information in social space
US11120099B2 (en) Rendering a web element in a web page
CN114329152A (en) Application program generation method, device, equipment and medium based on browser engine

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