CN116401486A - Data detection configuration, data detection method, device and medium - Google Patents
Data detection configuration, data detection method, device and medium Download PDFInfo
- Publication number
- CN116401486A CN116401486A CN202310246495.5A CN202310246495A CN116401486A CN 116401486 A CN116401486 A CN 116401486A CN 202310246495 A CN202310246495 A CN 202310246495A CN 116401486 A CN116401486 A CN 116401486A
- Authority
- CN
- China
- Prior art keywords
- rule
- page
- verification
- configuration
- data
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 46
- 238000012795 verification Methods 0.000 claims abstract description 203
- 238000000034 method Methods 0.000 claims abstract description 56
- 230000004044 response Effects 0.000 claims description 34
- 238000012545 processing Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000010200 validation analysis Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000003672 processing method Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a data detection configuration, a data detection method, a data detection device and a medium. The method comprises the following steps: providing a configuration page and preset rule information, wherein the configuration page comprises: a configuration control, wherein the configuration control is associated with rule information; responding to the trigger of the configuration control to acquire rule information and rule parameters; generating a check rule by adopting the rule information and the rule parameters; and generating a verification group based on the at least one verification rule, and generating a verification file based on the verification group so as to verify the target object based on the verification rule of the verification file. The verification rules can be configured through the visualized page, the rule configuration is flexible and convenient, verification is convenient to carry out based on a plurality of verification rules, and therefore the configuration of the verification rules is flexible and convenient, files can be quickly verified, and the efficiency is high.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data detection configuration method, a data detection method, a data processing method for a hosted page, an electronic device, and a storage medium.
Background
With the development of technology, more and more resources are assembled into a platform, and the platform can provide various access resources for users, such as various types of web pages.
In order to facilitate user access and web page provider management, the platform provides a hosting service for web pages, that is, the web page provider can host web pages to the platform, so that the platform provides various resources required by the web pages, and when the user accesses the web pages, the user can directly access the web pages provided by the platform.
However, since each web page is self-developed by a web page provider, page data of the web page has no uniform standard, for example, some web pages specify that the size of the avatar image cannot exceed 1M, some web pages have no requirement for the size of the avatar image, and corresponding web pages have certain standard on the platform, there is a possibility of conflict in hosting the web pages on the platform, and the hosting difficulty is high.
In order to prevent problems caused by conflict, page data of a hosted webpage can be detected, however, current webpage detection rules are usually integrated in detection codes, rules of webpage pages in different industries may be different, different detection codes need to be written according to the rules, and when one detection rule needs to be modified, added, deleted and the like, the code needs to be modified or rewritten, so that the operation is complex and the efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data detection configuration method, which is used for improving the flexibility of detection rules.
Correspondingly, the embodiment of the application also provides a data detection method, a data processing method of the hosted page, an electronic device and a storage medium, which are used for guaranteeing the realization and the application of the system.
In order to solve the above problems, an embodiment of the present application discloses a data detection configuration method, which includes:
providing a configuration page and preset rule information, wherein the configuration page comprises: a configuration control, wherein the configuration control is associated with rule information;
responding to the trigger of the configuration control to acquire rule information and rule parameters;
generating a check rule by adopting the rule information and the rule parameters;
and generating a verification group based on the at least one verification rule, and generating a verification file based on the verification group so as to verify the target object based on the verification rule of the verification file.
Optionally, the configuration control includes: rule selection controls and parameter configuration controls; the responding to the triggering of the configuration control to acquire rule information and rule parameters comprises the following steps:
Determining selected rule information in response to triggering of the rule selection control;
displaying corresponding parameter configuration controls based on the rule information;
and responding to the trigger of the parameter configuration control, and receiving the rule parameters corresponding to the rule information.
Optionally, in response to triggering the parameter configuration control, receiving a rule parameter corresponding to the rule information, including:
responding to the triggering of the parameter configuration control, and determining corresponding verification content based on the triggered parameter configuration control;
and determining a verification mode and content data based on the received parameter data.
Optionally, the determining, in response to triggering the configuration control, selected rule information includes:
in response to triggering the configuration control, at least one piece of rule information to be selected is displayed, and the type of the rule information comprises at least one of the following: picture class, text class, video class, audio class, link class;
the selected rule information is received.
Optionally, the generating the check rule by using the rule information and the rule parameter includes:
configuring rule check data of the rule information based on the rule parameters, the rule check data including: verifying content, a verification mode and content data;
And generating a corresponding check rule based on the type of the rule information and the rule check data.
Optionally, the configuration control further includes: a group configuration control;
the generating a check group based on the at least one check rule includes:
selecting at least one verification rule in response to a trigger to the set of configuration controls;
and generating a group check rule of the check group by adopting the selected at least one check rule.
Optionally, the method further comprises:
displaying the verification rule of completion of configuration on a configuration page based on the verification file;
and responding to the trigger of the editing control, and editing the check rule.
The embodiment of the application also provides a data detection method, which comprises the following steps:
obtaining a check file, wherein the check file comprises at least one check group, the check group comprises at least one check rule, and the check rule is generated based on rule information and rule parameters;
acquiring a configuration file of a target object;
and checking the configuration file by adopting the checking file to generate a corresponding checking result.
The embodiment of the application also provides a data detection method, which comprises the following steps:
providing a field configuration schema and a verification file, the verification file comprising at least one verification group, the verification group comprising at least one verification rule, the verification rule being generated based on rule information and rule parameters;
Acquiring configuration information based on the field configuration schema, and generating field data of a target object;
and checking the field data by adopting the check file to generate a corresponding check result.
The embodiment of the application also provides a data processing method of the hosted page, which comprises the following steps:
providing a field configuration schema and a verification file, the verification file comprising at least one verification group, the verification group comprising at least one verification rule, the verification rule being generated based on rule information and rule parameters;
receiving page data of an original page;
configuring the page data based on a field configuration schema, and determining page field data of a managed page;
and checking the page field data by adopting a check file to generate a corresponding check result.
Aiming at the checking result which fails to pass the checking, the page field data which fails to pass the checking is adjusted to be detected again;
page data of the hosted page is updated based on the adjusted page field data to facilitate the hosting process of the page.
Optionally, the configuring the page data based on the field configuration schema, determining the page field data of the hosted page includes:
Determining each page element and description information in the page data;
and configuring the page elements and the description information based on field configuration schema, and determining page field data of the managed page.
Optionally, adjusting page field data that fails verification includes:
acquiring failure reasons corresponding to the page field data which do not pass the verification from the verification result;
and adjusting the page field data according to the failure reason.
Optionally, the updating the page data of the hosted page based on the adjusted page field data includes:
determining page data corresponding page elements of the managed page according to the adjusted page field data;
and updating the page element and the description information based on the adjusted page field data.
The embodiment of the application also provides electronic equipment, which comprises: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to implement the methods as described in embodiments of the present application.
Embodiments of the present application also provide a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement a method according to embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following advantages:
in the embodiment of the application, the configuration page and the preset rule information are provided, the rule information and the rule parameters are obtained in response to the triggering of the configuration control, and the rule information and the rule parameters are adopted to generate the check rule, so that the check rule can be configured through the visualized page, the rule configuration is flexible and convenient, the check group is generated based on at least one check rule, the basic check rule can be combined into the check rule, the check is conveniently performed based on a plurality of check rules, the check file is generated based on the check group, the target object is checked based on the check rule of the check file, the configuration of the check rule is flexible and convenient, the check file can be quickly checked, and the efficiency is high.
Secondly, providing a field configuration schema and a verification file in the page hosting process, configuring the page data based on the field configuration schema, determining page field data of a hosted page, verifying the page field data by adopting the verification file to generate a corresponding verification result, and adjusting the page field data which does not pass the verification according to the verification result which does not pass the verification so as to detect again, thereby timely detecting and adjusting the field with the problem, updating the page data of the hosted page, so as to carry out the hosting processing of the page and improve the hosting efficiency of the page.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a data detection configuration method of the present application;
FIG. 2 is a schematic diagram of an example configuration page of an embodiment of the present application;
FIG. 3 is a schematic diagram of another configuration page example of an embodiment of the present application;
FIG. 4 is a flow chart of steps of another embodiment of a data detection configuration method of the present application;
FIG. 5 is a flow chart of steps of an embodiment of a data detection method of the present application;
FIG. 6 is a flow chart of steps of another embodiment of a data detection method of the present application;
FIG. 7 is a flow chart of steps of an embodiment of a method of data detection for hosted pages of the present application;
fig. 8 is a schematic structural view of an exemplary apparatus provided in one embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings.
The embodiment of the application can be applied to verification and test scenes. Various application software, verification rules of fields in web pages of websites and verification files can be configured, so that the fields are verified. For example, fields in game web pages and game Application programs (APP) are configured, and corresponding verification rules are configured to verify the fields, so that the fields can be conveniently configured and verified.
Referring to fig. 1, a flowchart of steps of an embodiment of a data detection configuration method of the present application is shown.
The embodiment of the application can preset rule information for generating the check rule, wherein the rule information is information for configuring the rule, the rule information comprises general information of the rule and configurable parameters, the general information is field type, field type can be configured in some scenes, and the configurable parameters are name parameters of the rule, check data of the rule and the like. Corresponding parameters can be configured based on the rule information, so that corresponding rules are generated, and the required rules can be flexibly generated.
A configuration page for configuring the check rule may be generated in advance, so that visual configuration of the rule can be performed based on the configuration page. The configuration page includes various configuration controls to enable regular configuration. In some scenarios, the configuration file and the rule information may be integrated as software such as an application program for rule configuration, so that a user can install the software locally on the device to perform rule configuration and verification, or as a cloud application based on which rule configuration and verification is performed. In other scenarios, the configuration file and the rule information may be integrated into a rule configuration web page, such that the rule configuration web page may be accessed by a browser for configuration of the rule.
Taking local software as an example, the software may be started, a configuration page displayed, and rule information provided based on the software. Taking a cloud application as an example, a starting request or a starting instruction can be sent to the cloud end, so that the cloud application is called at the cloud end, a configuration page is displayed, preset rule information is provided, video data of the cloud application starting and displaying the configuration page is recorded and sent to terminal equipment of a user, the cloud application starting and displaying the video of the configuration page is displayed at the terminal equipment, and the user can execute subsequent operations. Taking webpage display as an example, a webpage can be provided through a corresponding configuration platform and a configuration website, a user can send a webpage request through a terminal device, and the configuration page is displayed on the user terminal by feeding back the page data of the configuration page based on the webpage request.
And 104, responding to the trigger of the configuration control to acquire rule information and rule parameters.
One or more configuration controls are displayed in the configuration page, and in response to triggering the configuration controls, selected rule information and configured rule parameters can be obtained.
In one example, the configuration control is a rule selection control such that the rule selection control may provide a plurality of configurable rule information to a user selection. In other examples, the configuration controls may include rule configuration controls that may be provided to user input to determine rule information based on information entered by the user, and in other examples, rule selection controls and rule configuration controls may be provided to select other information, such as names, etc., of the rules based on existing rule information.
In some alternative embodiments, the rule information may be general rule information, i.e. various rules may be used, and in other embodiments, the rule information may be rule information of configured type information, and different types of rule information may be used to verify corresponding types of information (e.g. fields) to be verified. The type of rule information may be determined based on the type of information (e.g., field) to be checked, e.g., the type of rule information includes at least one of: picture class, text class, video class, audio class, link class. The rule information of the picture class is used for configuring the check rule of the picture, the rule information of the text class is used for configuring the check rule of the text, the rule information of the video class is used for configuring the check rule of the video, the rule information of the audio class is used for configuring the check rule of the audio, and the rule information of the link class is used for configuring the check rule of the link. So that each type of rule information can be directly selected. The determining, in response to triggering the configuration control, selected rule information includes: in response to triggering the configuration control, at least one piece of rule information to be selected is displayed, and the type of the rule information comprises at least one of the following: picture class, text class, video class, audio class, link class; the selected rule information is received. And in response to the triggering of the configuration control, at least one piece of rule information to be selected is displayed, a selected instruction can be sent out in various modes such as clicking, touching, inputting identification and the like, and in response to the selection specification, the selected rule information is received. Based on the selected rule information, a name configuration control may also be displayed, the rule name being received in response to a trigger to the name configuration control. For example, the format, play duration, data size, etc. of the audio data are configured, and the format, features, etc. of the link address URL are configured.
In some alternative embodiments, the configuration control comprises: rule selection controls and parameter configuration controls; the responding to the triggering of the configuration control to acquire rule information and rule parameters comprises the following steps: determining selected rule information in response to a trigger to the configuration control; displaying corresponding parameter configuration controls based on the rule information; and responding to the trigger of the parameter configuration control, and receiving the rule parameters corresponding to the rule information. In response to triggering the configuration control, determining selected rule information, and determining and displaying a corresponding parameter configuration control based on the rule information. Different types of rule information can correspond to different parameters to be configured, so that the parameter configuration control can be determined based on the types of the rule information. For example, rule information of a text class usually checks the character type, the number of words, etc. of the text, rule information of a picture class usually checks the data amount, the size, etc. of the picture, and rule information of a video class usually checks the data amount, the play length, etc. of the video. The parameter configuration control may include various input controls that receive rule parameters corresponding to the rule information in response to a trigger to the parameter configuration control.
In an alternative embodiment, the rule parameters include: the content parameter is used for configuring check content, such as check length, data quantity and the like, the check mode is used for configuring check mode of the content, such as limit mode of length and data quantity is larger than, smaller than or within a certain range, and the data parameter is used for configuring content data, namely limit data, such as threshold data and the like, of the checked content. The configuration of rule parameters may be based on parameter configuration controls.
Thereby, rule information can be selected in the configuration page based on the configuration control, and rule parameters of the rule information can be configured.
And 106, generating a check rule by using the rule information and the rule parameters.
After the rule information and the rule parameters are obtained, the rule parameters can be used for configuring the rule information, and corresponding check rules are generated. The generating the check rule by using the rule information and the rule parameters comprises the following steps: configuring rule check data of the rule information based on the rule parameters, the rule check data including: verifying content, a verification mode and content data; and generating a corresponding check rule based on the type of the rule information and the rule check data.
The rule parameters include: content parameters, mode parameters and data parameters, configuring rule check data of the rule information based on the rule parameters, wherein the rule check data comprises: and checking the content, the checking mode and the content data. Therefore, the verification content of the rule information can be configured by adopting the content parameter, the verification mode of the rule information can be configured by adopting the mode parameter, and the content data of the rule information can be configured by adopting the data parameter, so that the rule verification data which is configured is obtained, namely the configured verification content, the configured verification mode and the configured content data. The data and the type of rule information may then be checked based on the configured rules, and corresponding check rules may be generated. The type of the verification data, such as pictures, text, video, etc., may be determined based on the type of the verification rule, for example. Such as determining whether the suffix of the check data is the suffix of the corresponding type of data, etc.
And step 108, generating a verification group based on the at least one verification rule, and generating a verification file based on the verification group so as to verify the target object based on the verification rule of the verification file.
Typically, a data may need to be checked from multiple dimensions, e.g., text data may be checked from dimensions of character type, length, etc. of text, and pictures may be checked from dimensions of format, amount of data, pixel values, etc. of pictures. Therefore, the embodiment of the application can configure basic check rules, and then select the check rules to form a check group, so that a plurality of check rules are integrated to check the data.
At least one check rule may be selected in the configuration page, and a check rule of the check group is generated based on the check rule. Wherein the configuration control further comprises: a group configuration control; the generating a check group based on the at least one check rule includes: selecting at least one verification rule in response to a trigger to the set of configuration controls; and generating a group check rule of the check group by adopting the selected at least one check rule. The verification rules for each configuration completion may be displayed on a configuration page, and a group configuration control is displayed in the configuration page, at least one verification rule being selected in response to triggering the group configuration control. For example, the group configuration control may be a combination of a selection control and a validation control, the selection control may be set before each validation rule, the validation control may be triggered after a number of validation rules are selected, and the validation rule selected by the selection control may be determined in response to the triggering of the validation control. In other examples, the verification rule may be selected by clicking, entering an identification, or the like, and the selected at least one verification rule may be determined by a group configuration control. At least one of the check rules may then be combined to obtain a set of check rules for the check set. For example, checking the length of the name field of a picture, the pixels of the picture itself, the amount of data, etc.
After determining at least one verification group, a verification file may be generated based on the group verification rules for each verification group, the verification file may be used to verify data of the target object, e.g., to verify web page data of the game web page, etc.
In the embodiment of the application, the verification file may be a verification script, so that a user can obtain a corresponding detection script after configuring the verification rule to detect target objects such as a webpage. In other scenarios, the verification file may be a configuration file, and the user uploads the data of the target object of the webpage to the cloud end, the server end, the platform, and the like for detection, and may perform rule detection based on the verification file.
In summary, a configuration page and preset rule information are provided, rule information and rule parameters are obtained in response to triggering of the configuration control, and a check rule is generated by adopting the rule information and the rule parameters, so that the check rule can be configured through a visual page, the rule configuration is flexible and convenient, a check group is generated based on at least one check rule, basic check rules can be combined into a check rule, so that the check is conveniently performed based on a plurality of check rules, and a check file is generated based on the check group, so that a target object is checked based on the check rule of the check file, the configuration of the check rule is flexible and convenient, the check file can be quickly checked, and the efficiency is high.
On the basis of the embodiment, the embodiment of the application also provides a data detection configuration method, which can conveniently set various rules and rule parameters based on a visual interface to complete the configuration of the rules.
Referring to fig. 4, a flowchart of steps of another embodiment of a data detection configuration method of the present application is shown.
The embodiment of the application pre-configures the templates of the check rules, such as rule information, so that the check rules can be configured based on the rule information. A configuration page can also be provided, so that the configuration of the verification rule is conveniently performed based on the configuration page.
Wherein the configuration page comprises: and configuring a control, wherein the configuration control is associated with rule information. The configuration control comprises: rule selection controls, parameter configuration controls, and group configuration controls. Configuration controls may be implemented by selecting controls such as selection boxes, selection buttons, input controls such as input boxes, buttons, and the like, which are not limited in this embodiment of the present application.
For example, in some scenes, some rule information may be set in advance based on a rule template, and each user selection of each rule information may be provided through a rule selection control, in addition, controls such as an input box may be set as configuration controls, rule names corresponding to the rule information may be configured, and the like.
And providing each piece of rule information and each user selection through the rule selection control, wherein the user can trigger the rule selection control in a triggering, clicking and numbering mode, and the selected rule information is determined in response to the triggering of the rule selection control. Wherein, in response to triggering the configuration control, at least one rule information to be selected is displayed, the type of the rule information comprising at least one of the following: picture class, text class, video class, audio class, link class; the selected rule information is received.
As in the example of fig. 2, the selected rule information is determined to be picture rule information by triggering a rule selection corresponding rule selection control.
And step 406, displaying the corresponding parameter configuration control based on the rule information.
After the selected rule information is determined, a parameter configuration control corresponding to the rule information can be displayed, so that rule parameters corresponding to the rule information can be conveniently configured. For example, rule parameters such as character type, text length, etc. may be configured for text rule information, and various rule parameters such as picture format, picture size, picture pixels, etc. may be configured for picture rule information.
In the example shown in fig. 2, after the picture rule information is selected, parameter configuration controls corresponding to the picture rule information may be displayed, including various rule parameters such as a picture format, a picture size, a picture pixel, and the like.
And step 408, receiving rule parameters corresponding to the rule information in response to the triggering of the parameter configuration control.
Various parameters of which the rule information is configurable can be displayed through the parameter configuration control, one or more controls can be selected for parameter configuration, and corresponding rule parameters corresponding to the rule information are received in response to triggering of the parameter configuration control.
The rule parameters may be generated based on the verification content, the verification manner and the manner of the content data, that is, in response to the triggering of the parameter configuration control, the corresponding verification content may be determined based on the triggered parameter configuration control, for example, in fig. 2, the verification content may be a picture format, a picture size, a picture pixel, etc., the verification manner and the content data may be determined based on the received parameter data, for example, the verification manner may be determined based on the received parameter data to be a certain designated range, etc., and the content data is data corresponding to the range, etc.
Then rule check data of the rule information can be configured based on the rule parameters, and data such as check content, check mode, content data and the like can be configured, for example, in the example of fig. 2, the picture size is configured to be not more than 1M, that is, the check content is configured to be the picture size, the check mode is configured to be not more than 1M, and the content data is configured to be 1M. Corresponding verification rules may then be generated based on the rule information type and rule verification data, e.g., the verification rules in the example of FIG. 2 may be: the size of the check picture is not greater than 1M. The corresponding verification process to be executed subsequently may be to determine whether the verification data is a picture, and detect whether the size of the picture is not greater than 1M based on the picture, so as to determine whether the verification rule is satisfied.
At step 414, at least one validation rule is selected in response to triggering the set of configuration controls.
At step 416, a group check rule for the check group is generated using the selected at least one check rule.
One or more check rules may be configured in a configuration page, e.g., in some scenarios, the configuration page may include multiple sub-pages, the first sub-page being a rule page, on which various configured check rules may be presented, an add control may be provided to add check rules, and a confirm or the like may be generated to determine rule configuration completion. The second sub-page can be a configuration page used for configuring check rules, and the second sub-page is used for performing addition and configuration of the check rules by jumping to the configuration page in response to triggering of the addition control, and can jump back to the rule page after the configuration is completed correspondingly. In this embodiment of the present application, the configuration page of the check group may be a rule page, or may be set in a third sub-page, such as a group configuration page, where a selectable basic check rule is displayed on the group configuration page, so as to configure the check group.
In the example shown in FIG. 3, a plurality of check bone user selections, such as picture check rules 1-3 and text check rule 1, may be provided. In response to the triggering of the group configuration control, at least one check rule is selected, for example, 3 check rules, namely, a picture check rule 1, a picture check rule 3 and a text check rule 1, are selected in fig. 3, and other information such as the name of the check group can be set, so that the group check rule of the check group can be generated based on the name and a plurality of check rules.
And 418, generating a verification file based on the verification group so as to verify the target object based on the verification rule of the verification file.
Based on each verification rule and the group verification rule of the verification group, a verification file can be integrally generated, so that the target object is verified.
In some optional embodiments of the present application, after generating the verification file and verifying based on the verification file, editing operations such as adding, deleting, changing, and the like may be performed on the verification file in the verification file based on the requirement. Displaying the verification rule of completion of configuration on a configuration page based on the verification file; and responding to the trigger of the editing control, and editing the check rule. An edit control can be provided on the configuration page, verification rules to be edited are determined in response to triggering of the edit control, and each verification rule is edited. For example, deleting some of the check rules or check rules in the check group, as well as adjusting check parameters of some of the check rules or check rules in the check group, as well as adding check rules or adding check rules in the check group.
Therefore, the verification rule modification does not need to modify codes, and the configuration of the file is directly verified. In some scenarios, the verification file may be a JSON-formatted configuration file, JSON (JavaScript Object Notation, JS object profile) being a lightweight data exchange format, so that the target object can be detected without issuing code.
On the basis of the above embodiment, the embodiment of the present application further provides a data detection method, which can verify the data of the target object to be verified based on the configured verification file.
In the embodiment of the present application, the target object may be a software program such as various application programs, or may be a page object such as a web page, so that the target object may be applied to various scenes. For example, in the webpages applied to all websites, webpages of different websites can be hosted by the webpage management platform, and the webpage data of the webpages can be checked for facilitating the management of the webpages. Wherein, the platform refers to the operating environment of a workbench, computer hardware or software which is arranged for convenient operation.
Referring to fig. 5, a flowchart of steps of an embodiment of a data detection method of the present application is shown.
Step 502, a rule file is obtained, wherein the rule file comprises at least one check group, the check group comprises at least one check rule, and the check rule is generated based on rule information and rule parameters.
And providing the configured verification file to the user so that the user can verify based on the verification file. The verification file can be provided on a website page, a platform page and the like, and can be issued to the local of the user equipment, so that the verification file is convenient for the user to use.
For the target object to be detected, a configuration file of the target object, for example, a page file of a web page, a configuration file of an application program, or the like, may be acquired.
And step 506, checking the configuration file by adopting the rule file to generate a corresponding checking result.
By adopting the rule file to check the configuration file, whether various data of the target object accord with the check rule or not can be checked, for example, whether the picture accords with the check rule of the picture or the check rule of the picture group, such as the size, the data quantity, the pixels and the like of the picture, and whether the text accords with the file check rule, such as whether characters of the text are letters, numbers, chinese characters and the like, and the length of the text and the like can be checked.
Therefore, data conforming to the check rule, data not conforming to the check rule and the like can be determined, and corresponding check rules, such as passing check, can be generated; or the data of the rule and the problems thereof are not passed through the verification, so that the position of the problem can be positioned, and the user can conveniently adjust the problem.
On the basis of the above embodiment, the embodiment of the present application further provides another data detection method, which can configure configuration information such as field data of the target object, and verify the data of the target object to be verified based on the configured verification file.
Referring to fig. 6, a flowchart of steps of another data detection method embodiment of the present application is shown.
Step 602 provides a field configuration schema and a verification file including at least one verification group including at least one verification rule, the verification rule being generated based on rule information and rule parameters.
Embodiments of the present application may provide field configuration schema schemas, such as schemas that set up a generic xml for page data. Therefore, the field of the webpage data can be described based on the field configuration schema, and the data provided by a partner such as a webpage producer can be limited, so that the situation of data errors is reduced.
The field configuration schema is schema data of the configuration field, for example, element data required by a page, such as elements of a picture, text, video, audio, etc., and relationships among the elements, such as text elements, icon elements, etc., sub-elements under a title element, various elements of the picture, text, video, audio, etc., corresponding to the text element, and attributes of each element, such as number, type of attribute values, etc., may be defined. So that field data can be configured based on the field configuration schema.
Configuration information of the target object may be configured based on the field configuration schema, and field data of the target object may be generated based on the configuration information. For example, after hosting a web page to a platform, the platform may obtain page data of the hosted web page, may reconfigure the page data based on the field configuration schema to obtain corresponding field data, and may further generate page data hosted by the hosted web page at the platform.
Wherein the configuring the page data based on the field configuration schema, determining the field data of the target object includes: determining each object element and description information in the target object; the object elements and the description information are configured based on a field configuration schema, and field data is determined. And analyzing the data of the target object, determining each object element and description information of the target object, configuring the object elements and description information according to field configuration outline, configuring the generated fields corresponding to each object element, and determining field data of the fields based on page description information to obtain the data of the target object. For example, the page element is a header, the description information is the size, the pixel value, and the like of the header, and the header field may be generated based on the header element and field data of the header field, such as the size, the pixel value, and the like of the header may be configured.
And step 606, checking the field data by adopting the check file to generate a corresponding check result.
The verification file can be adopted to verify the verification field, the field data conforming to the verification rule and the field data not conforming to the verification rule are determined, and corresponding reasons can be generated for the field data not conforming to the rule, so that the field data can be adjusted until the verification is passed. The field data passing the verification can be used for generating webpage data and the like.
Based on the embodiment, the embodiment of the application can be applied to a scene of web page hosting. Where web page hosting refers to a web page provider providing various resources of its own web page to a platform party, which generates web pages and provides users with access. The corresponding platform side can host the webpages of various webpage providers, and a user can provide more convenient service. One way of web page hosting is to host a web page and then use the web page as a direct page of a comprehensive website, for example, a direct page of a first page of a browser. The direct page has good experience and controllable content, and can be applied to several industries of medical treatment, question answering, games, shopping and the like.
The platform may host web pages in various fields, such as games, questions and answers, medical treatment, education, electronic commerce, mother and infant, shopping and other industries, but different cooperators, that is, the capabilities of the web page providers, provide web page data with a standard, and some web page providers have limited capabilities, may directly adopt a rich media editor to make web pages, and the content of the generated web page data is semi-structured or unstructured, so that the data is difficult to transfer in a structured manner, and the hosting is affected. Accordingly, the embodiment of the application can provide field configuration outline, so that the field configuration of the webpage data can be guided, the data configuration is unified, and the subsequent hosting efficiency is improved.
And because the capability of the webpage provider is limited, the generated webpage has common effect, and based on field configuration outline, the webpage can be further processed, such as text segmentation, picture improvement and the like, highlight display and the like on some key contents, so that better data quality and landing experience are formed, and a higher-quality webpage is provided.
Because the webpage data has no unified standard, when the webpage has problems, for example, pictures are not displayed, search is not performed with results and the like, the problems of the webpage level can be positioned based on verification of the webpage data such as field data and the like, for example, the pictures fail, exceed the specified requirements and the like, and the database is connected with errors and the like, so that the problems can be quickly positioned on the webpage level, and the problems occurring on line are solved in advance and reduced.
On the basis of the embodiment, the embodiment of the application provides a data detection method for a managed page, which can detect page data of the managed page and improve the managed efficiency of the page.
Referring to FIG. 7, a flow chart of steps of an embodiment of a method of data processing of a hosted page of the present application is shown.
In step 702, page data of an original page is received.
Step 707, configuring the page data based on the field configuration schema, and determining the page field data of the hosted page.
Wherein the configuring the page data based on the field configuration schema, determining page field data of the hosted page, comprises: determining each page element and description information in the page data; and configuring the page elements and the description information based on field configuration schema, and determining page field data of the managed page. And analyzing the page data, determining each page element and description information in the page data, configuring the page elements and the description information according to field configuration schema, configuring generated fields corresponding to each page element, and determining field data of the fields based on the page description information to obtain the page field data of the managed page. For example, the page element is a header, the description information is the size, the pixel value, and the like of the header, and the header field may be generated based on the header element and field data of the header field, such as the size, the pixel value, and the like of the header may be configured.
And step 706, checking the page field data by using the check file to generate a corresponding check result.
Step 706 may then be re-executed, again with the detection being performed.
Adjusting page field data that fails verification includes: and acquiring failure reasons corresponding to the page field data which do not pass through the verification from the verification result, and adjusting the page field data according to the failure reasons. For example, the size of the header field is detected without limitation, and the check rule requires that the size of the header picture be within 2M, so that the requirement of the field for size, etc. can be added.
The updating the page data of the hosted page based on the adjusted page field data includes: determining page data corresponding page elements of the managed page according to the adjusted page field data; and updating the page element and the description information based on the adjusted page field data. For the adjusted page field data, the description information of the page elements in the managed page can be correspondingly adjusted, so that the page data of the managed page meets the platform requirements, and the managed is realized.
Therefore, the page data of the original page can be obtained based on the page data of the original page corresponding to the hosted page uploaded by the user, for example, based on the link address of the original page corresponding to the hosted page provided by the user. The page data can then be configured based on the field configuration schema to determine the page field data for the hosted page required by the platform. And verifying the page field data based on the verification file, generating a corresponding verification result, adjusting the page field data which does not pass the verification, and re-verifying. For the verification result of the verification, the page data of the managed page is updated based on the field data so as to perform the managed processing of the page, for example, the managed page can be published on a platform.
In summary, the embodiment of the application can generate the required field data by field configuration schema field names and field numbers, so as to reduce the situation of data errors.
The verification rule is configured based on the visualized page, so that the verification rule can be flexibly configured, and a customized configuration scheme is supported.
It should be noted that, in the embodiments of the present application, the use of user data may be involved, and in practical applications, user specific personal data may be used in the schemes described herein within the scope allowed by applicable legal regulations in the country where the applicable legal regulations are met (for example, the user explicitly agrees to the user to actually notify the user, etc.).
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments and that the acts referred to are not necessarily required by the embodiments of the present application.
On the basis of the above embodiment, the present embodiment further provides a data detection configuration device, which is applied to electronic devices such as a client device and a server device, and the device includes:
the providing module is used for providing a configuration page and preset rule information, wherein the configuration page comprises: a configuration control, wherein the configuration control is associated with rule information;
the rule selection module is used for responding to the trigger of the configuration control to acquire rule information and rule parameters;
the rule generation module is used for generating a check rule by adopting the rule information and the rule parameters;
a group configuration module for generating a check group based on the at least one check rule;
And the file generation module is used for generating a verification file based on the verification group so as to verify the target object based on the verification rule of the verification file.
Optionally, the configuration control includes: rule selection controls and parameter configuration controls; the rule selection module is used for responding to the trigger of the rule selection control and determining the selected rule information; displaying corresponding parameter configuration controls based on the rule information; and responding to the trigger of the parameter configuration control, and receiving the rule parameters corresponding to the rule information.
The rule selection module is used for responding to the triggering of the parameter configuration control and determining corresponding verification content based on the triggered parameter configuration control; and determining a verification mode and content data based on the received parameter data.
A rule selection module, configured to respond to the triggering of the configuration control, and display at least one rule information to be selected, where the rule information includes at least one of the following types: picture class, text class, video class, audio class, link class; the selected rule information is received.
Optionally, the rule generating module is configured to configure rule verification data of the rule information based on the rule parameter, where the rule verification data includes: verifying content, a verification mode and content data; and generating a corresponding check rule based on the type of the rule information and the rule check data.
Optionally, the configuration control further includes: a group configuration control; the group configuration module is used for responding to the triggering of the group configuration control and selecting at least one check rule; and generating a group check rule of the check group by adopting the selected at least one check rule.
Optionally, the method further comprises:
the adjustment module is used for displaying the verification rule of completion of configuration on the configuration page based on the verification file; and responding to the trigger of the editing control, and editing the check rule.
In summary, a configuration page and preset rule information are provided, rule information and rule parameters are obtained in response to triggering of the configuration control, and a check rule is generated by adopting the rule information and the rule parameters, so that the check rule can be configured through a visual page, the rule configuration is flexible and convenient, a check group is generated based on at least one check rule, basic check rules can be combined into a check rule, so that the check is conveniently performed based on a plurality of check rules, and a check file is generated based on the check group, so that a target object is checked based on the check rule of the check file, the configuration of the check rule is flexible and convenient, the check file can be quickly checked, and the efficiency is high.
On the basis of the above embodiment, the present embodiment further provides a data detection apparatus, which is applied to electronic devices such as a client device and a server device, where the apparatus includes:
the system comprises an acquisition module, a verification module and a verification module, wherein the acquisition module is used for acquiring a verification file, the verification file comprises at least one verification group, the verification group comprises at least one verification rule, and the verification rule is generated based on rule information and rule parameters; acquiring a configuration file of a target object;
and the verification module is used for verifying the configuration file by adopting the verification file to generate a corresponding verification result.
In other alternative embodiments, the data detection device includes the following modules:
the data providing module is used for providing a field configuration schema and a check file, wherein the check file comprises at least one check group, the check group comprises at least one check rule, and the check rule is generated based on rule information and rule parameters;
the field generation module is used for acquiring configuration information based on the field configuration schema and generating field data of a target object;
and the verification module is used for verifying the field data by adopting the verification file to generate a corresponding verification result.
Based on the embodiment, the embodiment of the application can be applied to a scene of web page hosting. Where web page hosting refers to a web page provider providing various resources of its own web page to a platform party, which generates web pages and provides users with access. The corresponding platform side can host the webpages of various webpage providers, and a user can provide more convenient service. One way of web page hosting is to host a web page and then use the web page as a direct page of a comprehensive website, for example, a direct page of a first page of a browser. The direct page has good experience and controllable content, and can be applied to several industries of medical treatment, question answering, games, shopping and the like.
The platform may host web pages in various fields, such as games, questions and answers, medical treatment, education, electronic commerce, mother and infant, shopping and other industries, but different cooperators, that is, the capabilities of the web page providers, provide web page data with a standard, and some web page providers have limited capabilities, may directly adopt a rich media editor to make web pages, and the content of the generated web page data is semi-structured or unstructured, so that the data is difficult to transfer in a structured manner, and the hosting is affected. Accordingly, the embodiment of the application can provide field configuration outline, so that the field configuration of the webpage data can be guided, the data configuration is unified, and the subsequent hosting efficiency is improved.
And because the capability of the webpage provider is limited, the generated webpage has common effect, and based on field configuration outline, the webpage can be further processed, such as text segmentation, picture improvement and the like, highlight display and the like on some key contents, so that better data quality and landing experience are formed, and a higher-quality webpage is provided.
Because the webpage data has no unified standard, when the webpage has problems, for example, pictures are not displayed, search is not performed with results and the like, the problems of the webpage level can be positioned based on verification of the webpage data such as field data and the like, for example, the pictures fail, exceed the specified requirements and the like, and the database is connected with errors and the like, so that the problems can be quickly positioned on the webpage level, and the problems occurring on line are solved in advance and reduced.
In other alternative embodiments, the data detection device includes the following modules:
the data providing module is used for providing a field configuration schema and a check file, wherein the check file comprises at least one check group, the check group comprises at least one check rule, and the check rule is generated based on rule information and rule parameters;
The acquisition module is used for receiving page data of an original page;
the field generation module is used for configuring the page data based on a field configuration schema and determining page field data of the managed page; and adjusting the page field data which does not pass the verification aiming at the verification result which does not pass the verification so as to detect based on the verification module again;
and the verification module is used for verifying the page field data by adopting the verification file to generate a corresponding verification result.
And the page generation module is used for updating the page data of the managed page based on the adjusted page field data so as to carry out the managed processing of the page.
The field generation module is used for determining each page element and description information in the page data; and configuring the page elements and the description information based on field configuration schema, and determining page field data of the managed page.
The field generation module is used for acquiring failure reasons corresponding to the page field data which fails to pass the verification from the verification result; and adjusting the page field data according to the failure reason.
The page generation module is used for determining page data corresponding page elements of the managed page according to the adjusted page field data; and updating the page element and the description information based on the adjusted page field data.
In summary, the embodiment of the application can generate the required field data by field configuration schema field names and field numbers, so as to reduce the situation of data errors.
The verification rule is configured based on the visualized page, so that the verification rule can be flexibly configured, and a customized configuration scheme is supported.
The embodiment of the application also provides a non-volatile readable storage medium, where one or more modules (programs) are stored, where the one or more modules are applied to a device, and the device may be caused to execute instructions (instractions) of each method step in the embodiment of the application.
Embodiments of the present application also provide a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement a method according to embodiments of the present application.
The embodiment of the application also provides electronic equipment, which comprises: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored by the memory to implement the methods as described in embodiments of the present application. In this embodiment of the present application, the electronic device includes a server, a terminal device, and other devices.
Embodiments of the present disclosure may be implemented as an apparatus for performing a desired configuration using any suitable hardware, firmware, software, or any combination thereof, which may include a server (cluster), terminal, or the like. Fig. 8 schematically illustrates an example apparatus 800 that may be used to implement various embodiments described herein.
For one embodiment, fig. 8 illustrates an example apparatus 800 having one or more processors 802, a control module (chipset) 804 coupled to at least one of the processor(s) 802, a memory 806 coupled to the control module 804, a non-volatile memory (NVM)/storage 808 coupled to the control module 804, one or more input/output devices 810 coupled to the control module 804, and a network interface 812 coupled to the control module 804.
The processor 802 may include one or more single-core or multi-core processors, and the processor 802 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 800 can be used as a server, a terminal, or the like in the embodiments of the present application.
In some embodiments, the apparatus 800 can include one or more computer-readable media (e.g., memory 806 or NVM/storage 808) having instructions 814 and one or more processors 802 coupled with the one or more computer-readable media and configured to execute the instructions 814 to implement the modules to perform the actions described in this disclosure.
For one embodiment, the control module 804 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 802 and/or any suitable device or component in communication with the control module 804.
The control module 804 may include a memory controller module to provide an interface to the memory 806. The memory controller modules may be hardware modules, software modules, and/or firmware modules.
Memory 806 may be used to load and store data and/or instructions 814 for device 800, for example. For one embodiment, memory 806 may include any suitable volatile memory, such as, for example, a suitable DRAM. In some embodiments, memory 806 may include double data rate type four synchronous dynamic random access memory (DDR 4 SDRAM).
For one embodiment, control module 804 may include one or more input/output controllers to provide an interface to NVM/storage 808 and input/output device(s) 810.
For example, NVM/storage 808 may be used to store data and/or instructions 814. NVM/storage 808 may include any suitable nonvolatile memory (e.g., flash memory) and/or may include any suitable nonvolatile 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 808 may include storage resources as part of the device on which apparatus 800 is installed or may be accessible by the device without necessarily being part of the device. For example, NVM/storage 808 may be accessed over a network via input/output device(s) 810.
Input/output device(s) 810 may provide an interface for apparatus 800 to communicate with any other suitable devices, input/output device 810 may include communication components, audio components, sensor components, and the like. Network interface 812 may provide an interface for device 800 to communicate over one or more networks, and device 800 may communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as accessing a wireless network based on a communication standard, such as bluetooth, wiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 802 may be packaged together with logic of one or more controllers (e.g., memory controller modules) of the control module 804. For one embodiment, at least one of the processor(s) 802 may be packaged together with logic of one or more controllers of the control module 804 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 802 may be integrated on the same die with logic of one or more controllers of the control module 804. For one embodiment, at least one of the processor(s) 802 may be integrated on the same die with logic of one or more controllers of the control module 804 to form a system on chip (SoC).
In various embodiments, the apparatus 800 may be, but is not limited to being: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. In various embodiments, device 800 may have more or fewer components and/or different architectures. For example, in some embodiments, the apparatus 800 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 a speaker.
The detection device can adopt a main control chip as a processor or a control module, sensor data, position information and the like are stored in a memory or an NVM/storage device, a sensor group can be used as an input/output device, and a communication interface can comprise a network interface.
The embodiment of the application also provides electronic equipment, which comprises: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as described in one or more of the embodiments herein. The memory in the embodiment of the application can store various data, such as various data including target files, file and application related data, and the like, and also can include user behavior data and the like, so as to provide a data base for various processes.
Embodiments also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in one or more of the embodiments of the present application.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present embodiments have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the present application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing describes in detail a data detection configuration method, a data detection method, a data processing method for hosting pages, an electronic device and a storage medium, and specific examples are applied to illustrate the principles and embodiments of the present application, and the description of the foregoing examples is only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
Claims (14)
1. A data detection configuration method, the method comprising:
providing a configuration page and preset rule information, wherein the configuration page comprises: a configuration control, wherein the configuration control is associated with rule information;
responding to the trigger of the configuration control to acquire rule information and rule parameters;
generating a check rule by adopting the rule information and the rule parameters;
and generating a verification group based on the at least one verification rule, and generating a verification file based on the verification group so as to verify the target object based on the verification rule of the verification file.
2. The method of claim 1, wherein the configuration control comprises: rule selection controls and parameter configuration controls; the responding to the triggering of the configuration control to acquire rule information and rule parameters comprises the following steps:
determining selected rule information in response to triggering of the rule selection control;
displaying corresponding parameter configuration controls based on the rule information;
and responding to the trigger of the parameter configuration control, and receiving the rule parameters corresponding to the rule information.
3. The method of claim 2, wherein the determining selected rule information in response to triggering the configuration control comprises:
in response to triggering the configuration control, at least one piece of rule information to be selected is displayed, and the type of the rule information comprises at least one of the following: picture class, text class, video class, audio class, link class;
the selected rule information is received.
4. A method according to claim 3, wherein said generating a verification rule using said rule information and rule parameters comprises:
configuring rule check data of the rule information based on the rule parameters, the rule check data including: verifying content, a verification mode and content data;
And generating a corresponding check rule based on the type of the rule information and the rule check data.
5. The method of claim 2, wherein the configuration control further comprises: a group configuration control;
the generating a check group based on the at least one check rule includes:
selecting at least one verification rule in response to a trigger to the set of configuration controls;
and generating a group check rule of the check group by adopting the selected at least one check rule.
6. The method as recited in claim 1, further comprising:
displaying the verification rule of completion of configuration on a configuration page based on the verification file;
and responding to the trigger of the editing control, and editing the check rule.
7. A method of data detection, the method comprising:
obtaining a check file, wherein the check file comprises at least one check group, the check group comprises at least one check rule, and the check rule is generated based on rule information and rule parameters;
acquiring a configuration file of a target object;
and checking the configuration file by adopting the checking file to generate a corresponding checking result.
8. A method of data detection, the method comprising:
Providing a field configuration schema and a verification file, the verification file comprising at least one verification group, the verification group comprising at least one verification rule, the verification rule being generated based on rule information and rule parameters;
acquiring configuration information based on the field configuration schema, and generating field data of a target object;
and checking the field data by adopting the check file to generate a corresponding check result.
9. A method of data processing of a hosted page, the method comprising:
providing a field configuration schema and a verification file, the verification file comprising at least one verification group, the verification group comprising at least one verification rule, the verification rule being generated based on rule information and rule parameters;
receiving page data of an original page;
configuring the page data based on a field configuration schema, and determining page field data of a managed page;
and checking the page field data by adopting a check file to generate a corresponding check result.
Aiming at the checking result which fails to pass the checking, the page field data which fails to pass the checking is adjusted to be detected again;
page data of the hosted page is updated based on the adjusted page field data to facilitate the hosting process of the page.
10. The method of claim 9, wherein the configuring the page data based on a field configuration schema, determining page field data for a hosted page, comprises:
determining each page element and description information in the page data;
and configuring the page elements and the description information based on field configuration schema, and determining page field data of the managed page.
11. The method of claim 10, wherein adjusting page field data that fails the check comprises:
acquiring failure reasons corresponding to the page field data which do not pass the verification from the verification result;
and adjusting the page field data according to the failure reason.
12. The method of claim 10 or 11, wherein updating the page data of the hosted page based on the adjusted page field data comprises:
determining page data corresponding page elements of the managed page according to the adjusted page field data;
and updating the page element and the description information based on the adjusted page field data.
13. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
The memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-13.
14. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310246495.5A CN116401486A (en) | 2023-03-10 | 2023-03-10 | Data detection configuration, data detection method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310246495.5A CN116401486A (en) | 2023-03-10 | 2023-03-10 | Data detection configuration, data detection method, device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116401486A true CN116401486A (en) | 2023-07-07 |
Family
ID=87011506
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310246495.5A Pending CN116401486A (en) | 2023-03-10 | 2023-03-10 | Data detection configuration, data detection method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116401486A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140181701A1 (en) * | 2012-12-20 | 2014-06-26 | Sap Ag | Model-Based User Interface |
CN114529175A (en) * | 2022-01-28 | 2022-05-24 | 阿里巴巴(中国)有限公司 | Resource data configuration method, resource data processing method, resource data configuration device, resource data processing device and readable medium |
CN114912042A (en) * | 2022-05-31 | 2022-08-16 | 北京奇艺世纪科技有限公司 | Landing page detection method, system, device and medium |
CN115016978A (en) * | 2022-04-12 | 2022-09-06 | 京东科技控股股份有限公司 | Data verification method and device, computer storage medium and electronic equipment |
-
2023
- 2023-03-10 CN CN202310246495.5A patent/CN116401486A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140181701A1 (en) * | 2012-12-20 | 2014-06-26 | Sap Ag | Model-Based User Interface |
CN114529175A (en) * | 2022-01-28 | 2022-05-24 | 阿里巴巴(中国)有限公司 | Resource data configuration method, resource data processing method, resource data configuration device, resource data processing device and readable medium |
CN115016978A (en) * | 2022-04-12 | 2022-09-06 | 京东科技控股股份有限公司 | Data verification method and device, computer storage medium and electronic equipment |
CN114912042A (en) * | 2022-05-31 | 2022-08-16 | 北京奇艺世纪科技有限公司 | Landing page detection method, system, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6740373B2 (en) | Page component dynamic layout | |
US10565293B2 (en) | Synchronizing DOM element references | |
US8286076B1 (en) | Rendering approximate webpage screenshot client-side | |
CN108038134B (en) | Page display method and device, storage medium and electronic equipment | |
CN111782330B (en) | Page data acquisition method, device and equipment based on Web application | |
US20150039996A1 (en) | System and method for dynamically converting webpage, and computer-readable recording medium | |
US8682964B1 (en) | Progressively loading network content | |
US9507480B1 (en) | Interface optimization application | |
US8843360B1 (en) | Client-side localization of network pages | |
US11245951B2 (en) | Display device and content providing method thereof | |
CN106933887B (en) | Data visualization method and device | |
US8516041B1 (en) | Pre-fetching asynchronously requested content | |
US9396053B2 (en) | Error handling in a network resource generation environment | |
US20180081617A1 (en) | Method and system for broadcasting browsing sessions | |
CN111274781A (en) | Table display method and device, storage medium and electronic equipment | |
US9906626B2 (en) | Resource demand-based network page generation | |
CN110968314B (en) | Page generation method and device | |
CN113076499B (en) | Page interaction method, device, equipment, medium and program product | |
US8959426B1 (en) | Loading customer-supplied network page generation code | |
CN110618811B (en) | Information presentation method and device | |
US20140331117A1 (en) | Application-based dependency graph | |
CN106844656A (en) | A kind of page adaptation method and system | |
JP2019192294A (en) | Information display method and apparatus | |
CN116401486A (en) | Data detection configuration, data detection method, device and medium | |
US11843679B2 (en) | Automated dependency management based on page components |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230707 |