CN110263222B - Data acquisition method, device, equipment and medium - Google Patents

Data acquisition method, device, equipment and medium Download PDF

Info

Publication number
CN110263222B
CN110263222B CN201910554916.4A CN201910554916A CN110263222B CN 110263222 B CN110263222 B CN 110263222B CN 201910554916 A CN201910554916 A CN 201910554916A CN 110263222 B CN110263222 B CN 110263222B
Authority
CN
China
Prior art keywords
data
data acquisition
markup language
keyword attribute
extensible markup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910554916.4A
Other languages
Chinese (zh)
Other versions
CN110263222A (en
Inventor
刘均
邓蒙召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201910554916.4A priority Critical patent/CN110263222B/en
Publication of CN110263222A publication Critical patent/CN110263222A/en
Application granted granted Critical
Publication of CN110263222B publication Critical patent/CN110263222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/832Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • G06F16/835Query processing
    • G06F16/8373Query execution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data acquisition method, a device, equipment and a medium, wherein the method comprises the following steps: receiving an acquisition instruction of data in the identification keyword attribute tag, and searching a class object of a common tag corresponding to the identification keyword attribute tag in the extensible markup language file in a preset corresponding relation; and acquiring the data object under the common label through the class object, and outputting the data object as a data acquisition result. The method can relatively ensure that the object data under the attribute label of the identification key word in the extensible markup language file is normally acquired, and ensure the overall reliability when the data in the extensible markup language file is acquired. In addition, the application also provides a data acquisition device, equipment and medium, and the beneficial effects are the same as those described above.

Description

Data acquisition method, device, equipment and medium
Technical Field
The present disclosure relates to the field of vehicle diagnosis, and in particular, to a method, apparatus, device, and medium for acquiring data.
Background
With the increasing number of electronic devices mounted in a vehicle, the overall failure rate of the electronic devices increases, and in order to ensure the normal operation of each electronic device in the vehicle, it is currently required to periodically acquire diagnostic data for each electronic device of the vehicle, so as to analyze the state of the vehicle according to the diagnostic data.
In the prior art, vehicle diagnosis data is marked as extensible markup language object data by a tag in advance and recorded in an extensible markup language (XML) file, so as to reduce resource expenditure caused by repeatedly analyzing the extensible markup language file when analyzing the vehicle diagnosis data, corresponding classes are generally required to be generated according to each tag in the extensible markup language file, and then the corresponding object data in the extensible markup language file is stored by the class object, so that when the vehicle diagnosis data is analyzed, a target class object is called as required to acquire the corresponding target object data.
Because labels containing identification keyword (ID-REF) attributes possibly exist in the current extensible markup language file, namely identification keyword attribute labels, and the labels containing the identification keyword attribute labels play a role of linking, object data marked by the labels with the identification keyword attribute labels are not available values with practical significance, and further, when the object data of the extensible markup language file are stored through corresponding classes, corresponding object data cannot be acquired through class objects of the identification keyword attribute labels, and further, the overall reliability of acquiring vehicle diagnostic data is difficult to ensure, and further, the accuracy of analysis results of the vehicle diagnostic data is reduced.
Therefore, the data acquisition method is provided to ensure that the object data under the identification keyword attribute label in the extensible markup language file is normally acquired, so that the overall reliability of acquiring the data in the extensible markup language file is ensured, and the problem to be solved by the person skilled in the art is solved.
Disclosure of Invention
The purpose of the application is to provide a data acquisition method, a device, equipment and a medium, so as to relatively ensure that object data under an identification keyword attribute label in an extensible markup language file is normally acquired, and further ensure the overall reliability when the data in the extensible markup language file is acquired.
In order to solve the above technical problems, the present application provides a data acquisition method, including:
receiving an acquisition instruction for data in the identification keyword attribute tag;
searching a class object of a common label corresponding to the attribute label of the identification keyword in the extensible markup language file in a preset corresponding relation;
acquiring a data object under a common label through a class object;
and outputting the data object to a data acquisition result.
Preferably, retrieving a generic object of a common tag corresponding to an attribute tag of an identification keyword in an extensible markup language file in a preset corresponding relationship includes:
retrieving a base class pointer object of a common label corresponding to the identity mark keyword attribute label in the extensible markup language file in a preset corresponding relation;
correspondingly, the data object under the common label is acquired through the class object, which comprises the following steps:
the data object under the common label is obtained through the derived class pointer object converted by the base class pointer object.
Preferably, retrieving a base class pointer object of a common tag corresponding to an identification keyword attribute tag in an extensible markup language file in a preset corresponding relation includes:
and searching a base class pointer object corresponding to the identification keyword attribute tag in the extensible markup language file in a preset associated array.
Preferably, before retrieving the generic object of the common tag corresponding to the attribute tag of the identification keyword in the extensible markup language file in the preset corresponding relationship, the method further includes:
judging whether the acquisition instruction is legal or not;
if yes, the step of searching the generic object of the common label corresponding to the identification keyword attribute label in the extensible markup language file in the preset corresponding relation is executed.
Preferably, after outputting the data object as a result of the data acquisition, the method further comprises:
and storing the data acquisition result according to the field classification.
Preferably, the data object comprises vehicle diagnostic data based on an open diagnostic data exchange system.
In addition, the invention also provides a data acquisition device, which comprises:
the instruction receiving module is used for receiving an acquisition instruction of the data in the identification keyword attribute tag;
the retrieval module is used for retrieving the class object of the common label corresponding to the identity mark keyword attribute label in the extensible markup language file in the preset corresponding relation;
the data acquisition module is used for acquiring the data object under the common label through the class object;
and the data output module is used for outputting the data object as a data acquisition result.
Preferably, the apparatus further comprises:
and the instruction judging module is used for judging whether the acquired instruction is legal or not, and if so, executing the searching module.
In addition, the present invention also provides a data acquisition apparatus including:
a memory for storing a computer program;
and a processor for implementing the steps of the data acquisition method as described above when executing the computer program.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the data acquisition method as described above.
According to the data acquisition method, an acquisition instruction of data in the identification keyword attribute tag is received, a class object of a common tag corresponding to the identification keyword attribute tag in the extensible markup language file is searched in a preset corresponding relation, and then the data object under the common tag is acquired through the class object, and the data object is output as a data acquisition result. The method is characterized in that the corresponding relation between the identity mark keyword attribute label and the corresponding common label is recorded in advance, and then the real data object source of the identity mark keyword attribute label to be acquired is searched according to the corresponding relation, namely the class object of the corresponding common label, and the data object corresponding to the identity mark keyword attribute label is acquired as a data acquisition result, so that the method can relatively ensure that the object data under the identity mark keyword attribute label in the extensible markup language file is normally acquired, and ensure the overall reliability when the data in the extensible markup language file is acquired. In addition, the application also provides a data acquisition device, equipment and medium, and the beneficial effects are the same as those described above.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a data acquisition method according to an embodiment of the present application;
FIG. 2 is a flowchart of another data acquisition method according to an embodiment of the present application;
fig. 3 is a block diagram of a data acquisition device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
Because the label containing the identity mark keyword attribute, namely the identity mark keyword attribute label, possibly exists in the current extensible markup language file, and the label containing the identity mark keyword attribute label plays a role of link, the object data marked by the label with the identity mark keyword attribute label is not an available value with practical significance, and further, when the object data of the extensible markup language file is stored through a corresponding class, the corresponding object data cannot be obtained through the class object of the identity mark keyword attribute label, so that the overall reliability of the obtained vehicle diagnostic data is difficult to ensure, and the accuracy of the analysis result of the vehicle diagnostic data is further reduced.
The core of the application is to provide a data acquisition method, so as to relatively ensure that the object data under the identification keyword attribute label in the extensible markup language file is normally acquired, and further ensure the overall reliability when the data in the extensible markup language file is acquired. Another core of the present application is to provide a data acquisition apparatus, device, and medium.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Fig. 1 is a flowchart of a data acquisition method according to an embodiment of the present application. Referring to fig. 1, the data acquisition method specifically includes the steps of:
step S10: and receiving an acquisition instruction for the data in the identification keyword attribute tag.
Step S11: and searching a class object of a common label corresponding to the identification keyword attribute label in the extensible markup language file in a preset corresponding relation.
It should be noted that the extensible markup language (XML, extensible Markup Language), a subset of the standard generic markup language, is a markup language used to mark electronic files to be structured.
The method comprises the steps of searching a class object of a common label corresponding to an identification keyword attribute label in a preset corresponding relation when acquiring object data under the identification keyword attribute label in an extensible markup language file, namely responding to a data acquisition instruction for acquiring the object data under the identification keyword attribute label, wherein the identification keyword attribute label refers to the extensible markup language label with the identification keyword attribute parameter. It can be understood that, because the id keyword attribute tag plays a role of linking, the object data under the id keyword attribute tag should be identical to the object data under the corresponding normal tag, where the normal tag refers to an extensible markup language tag different from the id keyword attribute tag in the extensible markup language file. The key point of the step is that the corresponding relation between the identification keyword attribute label and the class object corresponding to the common label is recorded in advance, and then when the object data under the identification keyword attribute label is obtained, the class object of the common label corresponding to the identification keyword attribute label is searched through the corresponding relation.
The class object in the above step refers to an instantiation object generated by a class (class), which may be specifically a class instance object generated by a class, a class derivative object, and the like, where a class is a collection of things or events that have common features to a group, and a class object is an actual application object of the class, and has actual data access capability. Currently, corresponding classes are generated in advance according to the labels in the extensible markup language file and are used for storing the data objects under the labels by the class objects of the classes, so when the data objects under the common labels corresponding to the identification key attribute labels are obtained in the step, the class objects corresponding to the common labels are obtained, and further the corresponding data objects are obtained through the class objects.
Step S12: and acquiring the data object under the common label through the class object.
Step S13: and outputting the data object to a data acquisition result.
The above steps are that after the class object of the common label corresponding to the attribute label of the identification key is searched in the corresponding relation, the data object of the common label, namely the data object corresponding to the attribute label of the identification key, is obtained through the class object.
According to the data acquisition method, an acquisition instruction of data in the identification keyword attribute tag is received, a class object of a common tag corresponding to the identification keyword attribute tag in the extensible markup language file is searched in a preset corresponding relation, and then the data object under the common tag is acquired through the class object, and the data object is output as a data acquisition result. The method is characterized in that the corresponding relation between the identity mark keyword attribute label and the corresponding common label is recorded in advance, and then the real data object source of the identity mark keyword attribute label to be acquired is searched according to the corresponding relation, namely the class object of the corresponding common label, and the data object corresponding to the identity mark keyword attribute label is acquired as a data acquisition result, so that the method can relatively ensure that the object data under the identity mark keyword attribute label in the extensible markup language file is normally acquired, and ensure the overall reliability when the data in the extensible markup language file is acquired.
Fig. 2 is a flowchart of another data acquisition method according to an embodiment of the present application. Referring to fig. 2, the data acquisition method specifically includes the steps of:
step S20: and receiving an acquisition instruction for the data in the identification keyword attribute tag.
Step S21: and retrieving a base class pointer object of a common label corresponding to the identification keyword attribute label in the extensible markup language file in a preset corresponding relation.
It should be noted that, in this embodiment, an association relationship between an attribute tag of an identification keyword and a base class pointer object of a common tag is recorded in a preset corresponding relationship, where the base class pointer object is a pointer object generated by a base class, and the base class refers to a class (class) type that includes commonalities of all entities, that is, the base class can be converted into other classes.
In addition, the value of the pointer object directly points to (points to) a certain address in the computer memory, and as the variable unit where the required data object is located can be found through the address, the data object in the variable unit can be directly obtained, and thus the operations of initializing the class, distributing a block area in the memory, assigning values to member variables and the like do not need to be performed in advance, and the overall efficiency of obtaining the data object is relatively improved. In addition, because the pointer directivity of the pointer object can be modified according to the requirement, the same pointer object can point to the variable unit where different data objects are located, and the purpose of acquiring different data objects through the same pointer object is further achieved.
Step S22: the data object under the common label is obtained through the derived class pointer object converted by the base class pointer object.
The method for acquiring the data object is provided by adopting the base class pointer object, the data object of the corresponding type can be acquired by converting the single base class pointer object into different derivative class pointer objects, and the polymorphism mode is utilized to improve the diversity and the high efficiency flexibility of acquiring the data object by the user.
Step S23: and outputting the data object to a data acquisition result.
On the basis of the foregoing embodiment, as a preferred implementation manner, the receiving an instruction for obtaining data in the identifier key attribute tag, and searching, in a preset correspondence, a base class pointer object of a common tag corresponding to the identifier key attribute tag in the extensible markup language file, includes:
and receiving an acquisition instruction of the data in the identification keyword attribute tag, and searching a base class pointer object corresponding to the identification keyword attribute tag in the extensible markup language file in a preset association array.
The key point of the embodiment is that the basic class pointer object corresponding to the identification keyword attribute tag in the extensible markup language file is searched in a preset association array, namely, the corresponding relation between the identification keyword attribute tag and the basic class pointer object is recorded in the association array in advance.
It should be noted that, the structure of the association array is Map < Key, value >, where Key is a Key, value is a Value, the association array is an object that maps a Key to a Value, one mapping cannot contain repeated keys, and each Key can only be mapped to one Value at most. Because the association array has the advantages of high flexibility, easy expansion and low coupling, the association array can store the numerical mapping relation, so that the maintainability and the modification flexibility of the numerical mapping relation are improved while the accuracy of the numerical mapping relation is ensured, and the overall reliability of the data acquisition process is ensured.
In addition, as a preferred embodiment, before retrieving the class object of the common tag corresponding to the identification keyword attribute tag in the extensible markup language file in the preset correspondence, the method further includes:
judging whether the acquisition instruction is legal or not;
if yes, the step of searching the generic object of the common label corresponding to the identification keyword attribute label in the extensible markup language file in the preset corresponding relation is executed.
It should be noted that, since the acquiring instruction is transmitted by the user and is used for acquiring the corresponding data object, and the data objects that can be accessed are different for users with different authorities, in order to avoid users with lower authorities accessing the data object with high authority requirements, the embodiment determines whether the acquiring instruction is legal before executing the step of searching the generic object of the generic tag corresponding to the identification keyword attribute tag in the extensible markup language file in the preset corresponding relationship, and if so, the step of searching the generic object of the generic tag corresponding to the identification keyword attribute tag in the extensible markup language file in the preset corresponding relationship can be successfully executed, so as to ensure the access security of the data object.
Furthermore, as a preferred embodiment, after outputting the data object as a data acquisition result, the method further includes:
and storing the data acquisition result according to the field classification.
It should be noted that, in this embodiment, after the data object is output as the data acquisition result, the data object is stored according to the field classification of the data acquisition result, so that the data acquisition result can be repeatedly used, and meanwhile, the acquisition efficiency of the data acquisition result after the data acquisition result is stored can be improved.
On the basis of the above-described series of embodiments, as a preferred embodiment, the data object includes vehicle diagnostic data based on an open diagnostic data exchange system.
It should be noted that the open diagnostic data exchange system (ODX, open Diagnostic data eXchange) is an extensible markup language data format for describing vehicle diagnostic related data, and is mainly used for exchanging diagnostic data between an OEM and its provider. There is now an increasing trend for OEMs to build standardized diagnostic procedures that are centered on the open diagnostic data exchange system format.
Because the research and development based on the automobile diagnosis standard at present belongs to the emerging field, the acquisition of the corresponding data object according to the identification keyword attribute tag is a new technology related to the automobile diagnosis research and development field of the open diagnosis data exchange system, and therefore the problem of acquiring the corresponding object according to the identification keyword attribute tag is not related in the existing business field. According to the embodiment, the data object corresponding to the identification keyword attribute tag can be directly obtained according to the identification keyword attribute contained in the extensible markup language tag of the open diagnosis data exchange system in the field of automobile diagnosis research and development of the open diagnosis data exchange system, and the overall reliability of obtaining the automobile diagnosis data in the field of automobile diagnosis research and development of the open diagnosis data exchange system is ensured.
In addition, the application also provides an embodiment under a specific application scene of data acquisition, which comprises the following specific steps:
the first step: defining a base class containing virtual functions and a global Map taking an identity mark keyword attribute tag and a base class pointer object as a key value pair;
and a second step of: in the extensible markup language tag analysis link related to the ID attribute, inserting an ID keyword attribute tag and a base class pointer object into a global Map;
and a third step of: in the link of calling the identity mark key word, map [ identity mark key word attribute label ] is used to obtain a base class pointer object;
fourth step: strongly converting the base class pointer object into a specific derivative class pointer object;
fifth step: and accessing the data object corresponding to the identification key attribute tag through the derivative class pointer object.
In the foregoing, embodiments of the data acquisition method are described in detail, and the application further provides a data acquisition device corresponding to the method, and since the embodiments of the device portion and the embodiments of the method portion correspond to each other, the embodiments of the device portion refer to the description of the embodiments of the method portion, which is not repeated herein.
Fig. 3 is a block diagram of a data acquisition device according to an embodiment of the present application. The data acquisition device provided by the embodiment of the application comprises:
the instruction receiving module 10 is used for receiving an acquisition instruction of data in the identification keyword attribute tag;
the retrieval module 11 is used for retrieving the class object of the common label corresponding to the attribute label of the identification keyword in the extensible markup language file in the preset corresponding relation;
a data acquisition module 12, configured to acquire a data object under a common label through a class object;
the data output module 13 is configured to output the data object as a data acquisition result.
The data acquisition device receives an acquisition instruction of data in the identification keyword attribute tag, searches a class object of a common tag corresponding to the identification keyword attribute tag in the extensible markup language file in a preset corresponding relation, acquires the data object under the common tag through the class object, and outputs the data object as a data acquisition result. The device records the corresponding relation between the identity mark keyword attribute label and the corresponding common label in advance, so that the real data object source of the identity mark keyword attribute label required to be obtained is searched according to the corresponding relation, namely the class object of the corresponding common label, and the data object corresponding to the identity mark keyword attribute label is obtained as a data obtaining result, therefore, the device can relatively ensure that the object data under the identity mark keyword attribute label in the extensible markup language file is normally obtained, and ensure the overall reliability when the data in the extensible markup language file is obtained.
The application also provides a data acquisition device comprising:
a memory for storing a computer program;
and a processor for implementing the steps of the data acquisition method as described above when executing the computer program.
The data acquisition equipment provided by the application receives an acquisition instruction of data in the identification keyword attribute tag, searches a class object of a common tag corresponding to the identification keyword attribute tag in the extensible markup language file in a preset corresponding relation, acquires the data object under the common tag through the class object, and outputs the data object as a data acquisition result. The corresponding relation between the identification keyword attribute tag and the corresponding common tag is recorded in advance, so that the real data object source of the identification keyword attribute tag to be obtained is searched according to the corresponding relation, namely the class object of the corresponding common tag, and the data object corresponding to the identification keyword attribute tag is obtained as a data obtaining result, therefore, the device can relatively ensure that the object data under the identification keyword attribute tag in the extensible markup language file is normally obtained, and ensure the overall reliability when the data in the extensible markup language file is obtained.
Furthermore, the present application provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the data acquisition method as described above.
The computer readable storage medium provided by the application receives an acquisition instruction of data in an identification keyword attribute tag, searches a class object of a common tag corresponding to the identification keyword attribute tag in an extensible markup language file in a preset corresponding relation, acquires a data object under the common tag through the class object, and outputs the data object as a data acquisition result. Because the corresponding relation between the identity mark keyword attribute label and the corresponding common label is recorded in advance in the computer readable storage medium, the real data object source of the identity mark keyword attribute label required to be obtained is searched according to the corresponding relation, namely the class object of the corresponding common label, and the data object corresponding to the identity mark keyword attribute label is obtained as a data obtaining result, the computer readable storage medium can relatively ensure that the object data under the identity mark keyword attribute label in the extensible markup language file is normally obtained, and the overall reliability of the obtained data in the extensible markup language file is ensured.
The above describes in detail a method, apparatus, device and medium for obtaining data provided in the present application. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, 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 apparatus 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 apparatus. 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 apparatus that comprises the element.

Claims (9)

1. A method of data acquisition, comprising:
receiving an acquisition instruction for data in the identification keyword attribute tag;
searching a class object of a common label corresponding to the identification keyword attribute label in the extensible markup language file in a preset corresponding relation;
acquiring the data object under the common label through the class object;
outputting the data object as a data acquisition result;
the searching the class object of the common label corresponding to the identification keyword attribute label in the extensible markup language file in the preset corresponding relation comprises the following steps: retrieving a base class pointer object of the common label corresponding to the identification keyword attribute label in the extensible markup language file in the preset corresponding relation; correspondingly, the obtaining the data object under the common label through the class object comprises the following steps: acquiring the data object under the common label through the derived class pointer object converted by the base class pointer object;
and the corresponding relation between the identity mark keyword attribute tag and the base class pointer object is recorded in the preset corresponding relation.
2. The method of claim 1, wherein the retrieving, in the preset correspondence, the base class pointer object of the common tag corresponding to the identification keyword attribute tag in the extensible markup language file includes:
and searching the base class pointer object corresponding to the identification keyword attribute tag in the extensible markup language file in a preset associated array.
3. The method of claim 1, wherein before retrieving the generic object of the common tag corresponding to the id keyword attribute tag in the extensible markup language file in the preset correspondence, the method further comprises:
judging whether the acquisition instruction is legal or not;
if yes, the step of searching the generic object of the common label corresponding to the identification keyword attribute label in the extensible markup language file in the preset corresponding relation is executed.
4. The data acquisition method of claim 1, wherein after the outputting the data object as a result of data acquisition, the method further comprises:
and storing the data acquisition result according to the field classification.
5. The data acquisition method according to any one of claims 1 to 4, wherein the data object includes vehicle diagnostic data based on an open diagnostic data exchange system.
6. A data acquisition device, comprising:
the instruction receiving module is used for receiving an acquisition instruction of the data in the identification keyword attribute tag;
the retrieval module is used for retrieving the class object of the common label corresponding to the identification keyword attribute label in the extensible markup language file in the preset corresponding relation;
the data acquisition module is used for acquiring the data object under the common label through the class object;
the data output module is used for outputting the data object as a data acquisition result;
the retrieval module is specifically configured to retrieve, in the preset correspondence, a base class pointer object of the common tag corresponding to the identifier keyword attribute tag in the extensible markup language file; correspondingly, the data acquisition module is specifically configured to acquire the data object under the common tag through the derived class pointer object converted by the base class pointer object;
and the corresponding relation between the identity mark keyword attribute tag and the base class pointer object is recorded in the preset corresponding relation.
7. The data acquisition device of claim 6, wherein the device further comprises:
and the instruction judging module is used for judging whether the acquired instruction is legal or not, and if so, executing the searching module.
8. A data acquisition device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the data acquisition method according to any one of claims 1 to 5 when executing said computer program.
9. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the data acquisition method according to any one of claims 1 to 5.
CN201910554916.4A 2019-06-25 2019-06-25 Data acquisition method, device, equipment and medium Active CN110263222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910554916.4A CN110263222B (en) 2019-06-25 2019-06-25 Data acquisition method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910554916.4A CN110263222B (en) 2019-06-25 2019-06-25 Data acquisition method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110263222A CN110263222A (en) 2019-09-20
CN110263222B true CN110263222B (en) 2023-06-02

Family

ID=67921311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910554916.4A Active CN110263222B (en) 2019-06-25 2019-06-25 Data acquisition method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110263222B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309972B (en) * 2020-02-25 2023-06-30 深圳市元征科技股份有限公司 Data processing method, device, terminal equipment and storage medium
CN111930097B (en) * 2020-07-28 2021-12-07 深圳市元征科技股份有限公司 Vehicle diagnostic data analysis method, device, equipment and storage medium
CN112597100B (en) * 2020-09-17 2022-07-15 武汉大学 File management method and device based on object proxy label
CN112445797B (en) * 2020-11-13 2023-09-05 深圳市元征科技股份有限公司 Vehicle diagnosis data reference method, device, terminal equipment and storage medium
CN112287177B (en) * 2020-11-25 2021-07-13 城云科技(中国)有限公司 Method and device for creating, changing, displaying and inquiring object label

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241204A (en) * 2018-09-28 2019-01-18 深圳市元征科技股份有限公司 A kind of ODX tag class management method, system and electronic equipment and storage medium
CN109918540A (en) * 2019-02-26 2019-06-21 深圳市元征科技股份有限公司 A kind of XML document analytic method, system and electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8799661B2 (en) * 2012-03-24 2014-08-05 Mach 1 Development, Inc. Active and passive filter digital data authentication and security system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241204A (en) * 2018-09-28 2019-01-18 深圳市元征科技股份有限公司 A kind of ODX tag class management method, system and electronic equipment and storage medium
CN109918540A (en) * 2019-02-26 2019-06-21 深圳市元征科技股份有限公司 A kind of XML document analytic method, system and electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于STEP/XML的集成化工艺信息描述方法研究;蔡长韬;《计算机集成制造系统》;20080515(第05期);全文 *

Also Published As

Publication number Publication date
CN110263222A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110263222B (en) Data acquisition method, device, equipment and medium
CN109960944A (en) A kind of data desensitization method, server, terminal and computer readable storage medium
CN109524070B (en) Data processing method and device, electronic equipment and storage medium
JP2004530183A5 (en)
US10853564B2 (en) Operation for copied content
CN110866152A (en) Fault code retrieval method and device, electronic equipment and readable storage medium
CN112182036A (en) Data sending and writing method and device, electronic equipment and readable storage medium
CN112256682B (en) Data quality detection method and device for multi-dimensional heterogeneous data
CN103473234A (en) Method, device and system for deriving report forms from web inquiring system
CN109460307A (en) Micro services a little, which are buried, based on log calls tracking and its system
US20070174852A1 (en) Application interface including dynamic transform definitions
CN111125220A (en) Information user-defined export method and device
CN112925757A (en) Method, equipment and storage medium for tracking operation log of intelligent equipment
CN112187713A (en) Message conversion method, device, computer equipment and storage medium
CN111414404A (en) Data visualization device and method
CN109471904B (en) Method and system for organizing labels
CN116126808A (en) Behavior log recording method, device, computer equipment and storage medium
CN112162954B (en) User operation log generation and path positioning method, device, equipment and medium
CN114238391A (en) Data paging query method and device, electronic equipment and storage medium
CN107656868B (en) Debugging method and system for acquiring thread name by using thread private data
CN111556039A (en) Web data export method and device for general microservice
CN109582676A (en) Electric power data processing method, device, computer equipment and storage medium
KR101703303B1 (en) Device and method for managing environment of system
CN111159214A (en) API access method and device, electronic equipment and storage medium
CN117251384B (en) Interface automation test case generation method and system

Legal Events

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