CN111104405A - Metadata processing method and device and computer readable storage medium - Google Patents

Metadata processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN111104405A
CN111104405A CN201911242183.7A CN201911242183A CN111104405A CN 111104405 A CN111104405 A CN 111104405A CN 201911242183 A CN201911242183 A CN 201911242183A CN 111104405 A CN111104405 A CN 111104405A
Authority
CN
China
Prior art keywords
metadata
tree structure
dependency relationship
acquiring
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911242183.7A
Other languages
Chinese (zh)
Inventor
孙海宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911242183.7A priority Critical patent/CN111104405A/en
Publication of CN111104405A publication Critical patent/CN111104405A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Landscapes

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

Abstract

A method, a device and a computer-readable storage medium for processing metadata comprise: acquiring a metadata set and a dependency relationship of metadata in the metadata set; and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set. Because the metadata tree structure is generated according to the dependency relationship of the metadata in the metadata set, the processing from the metadata to the tree structure is realized, and the subsequent management of the metadata is facilitated.

Description

Metadata processing method and device and computer readable storage medium
Technical Field
The present disclosure relates to data processing technologies, and in particular, to a method and an apparatus for processing metadata, and a computer-readable storage medium.
Background
Metadata is also called intermediate data and relay data, and is data for describing data attributes, and in practical applications, metadata is often introduced to assist data query.
In the related art, the metadata is stored irregularly, so that subsequent management of the metadata is extremely inconvenient.
Disclosure of Invention
The application provides a metadata processing method, a metadata processing device and a computer-readable storage medium, which can process metadata into a tree structure so as to facilitate subsequent management of the metadata.
The application provides a metadata processing method, which comprises the following steps:
acquiring a metadata set and a dependency relationship of metadata in the metadata set;
and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
The generating of the metadata tree structure according to the dependency relationship of the metadata in the metadata set includes:
and deploying the metadata from the top to the bottom of the interface according to the dependency relationship until deployment of all the metadata in the metadata set is completed, so as to obtain the metadata tree structure.
Deploying the metadata from the top to the bottom of the interface according to the dependency relationship until the addition of all metadata in the metadata set is completed, and obtaining a metadata tree structure, including:
acquiring metadata independent of other metadata in the metadata set as a root node, and deploying the acquired root node at the top of the interface;
acquiring metadata which depends on the root node in the metadata set and is used as a first child node, and deploying the acquired first child node on the lower layer of the root node;
and acquiring metadata which depends on the first child node in the metadata set as a second child node, deploying the acquired second child node at the lower layer of the first child node, and circulating until the metadata in the metadata set is deployed, so as to obtain the metadata tree structure.
After the generating the metadata tree structure according to the dependency relationship of the metadata in the metadata set, the method further includes:
obtaining a query instruction for the metadata tree structure;
and querying the metadata tree structure according to the query instruction and displaying the query result on an interface.
After the generating the metadata tree structure according to the dependency relationship of the metadata in the metadata set, the method further includes:
obtaining a processing instruction for the metadata tree structure; wherein the processing instructions include: instructions to add metadata, instructions to delete metadata, and instructions to modify metadata;
and processing the metadata tree structure according to the processing instruction.
The present application further provides a metadata processing apparatus, including:
the acquiring module is used for acquiring a metadata set and the dependency relationship of metadata in the metadata set;
and the processing module is used for generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
The processing module is specifically configured to deploy the metadata from the top to the bottom of the interface according to the dependency relationship until deployment of all metadata in the metadata set is completed, so as to obtain the metadata tree structure.
The processing module is specifically configured to:
acquiring metadata independent of other metadata in the metadata set as a root node, and deploying the acquired root node at the top of the interface;
acquiring metadata which depends on the root node in the metadata set and is used as a first child node, and deploying the acquired first child node on the lower layer of the root node;
and acquiring metadata which depends on the first child node in the metadata set as a second child node, deploying the acquired second child node at the lower layer of the first child node, and circulating until the metadata in the metadata set is deployed, so as to obtain the metadata tree structure.
The present application further provides a metadata processing apparatus, including: a processor and a memory, wherein the memory has written therein the following commands executable by the processor:
acquiring a metadata set and a dependency relationship of metadata in the metadata set;
and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
The present application further provides a computer-readable storage medium having stored thereon computer-executable instructions for performing the steps of:
acquiring a metadata set and a dependency relationship of metadata in the metadata set;
and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
Compared with the prior art, this application includes: acquiring a metadata set and a dependency relationship of metadata in the metadata set; and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set. Because the metadata tree structure is generated according to the dependency relationship of the metadata in the metadata set, the processing from the metadata to the tree structure is realized, and the subsequent management of the metadata is facilitated.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. Other advantages of the application may be realized and attained by the instrumentalities and combinations particularly pointed out in the specification, claims, and drawings.
Drawings
The accompanying drawings are included to provide an understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the examples serve to explain the principles of the disclosure and not to limit the disclosure.
Fig. 1 is a schematic flowchart of a metadata processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a metadata processing apparatus according to an embodiment of the present disclosure.
Detailed Description
The present application describes embodiments, but the description is illustrative rather than limiting and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or instead of any other feature or element in any other embodiment, unless expressly limited otherwise.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive concept as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive aspects to form yet another unique inventive aspect, as defined by the claims. Thus, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not limited except as by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
Further, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other orders of steps are possible as will be understood by those of ordinary skill in the art. Therefore, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Further, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
An embodiment of the present application provides a method for processing metadata, as shown in fig. 1, the method includes:
step 101, obtaining a metadata set and a dependency relationship of metadata in the metadata set.
In an exemplary instance, the dependency of the metadata may specifically be upper metadata and lower metadata of the metadata.
And 102, generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
In an exemplary embodiment, the generated metadata tree structure may be one or more.
In an exemplary instance, the metadata in the metadata collection should have a dependency relationship, and if none of the metadata has a dependency relationship, each metadata only exists independently, and a metadata tree structure is not generated.
In one illustrative example, generating a metadata tree structure from dependencies of metadata in a metadata collection includes:
and deploying the metadata from the top to the bottom of the interface according to the dependency relationship until deployment of all metadata in the metadata set is completed, so as to obtain a metadata tree structure.
In an exemplary instance, deploying metadata from the top to the bottom of the interface according to the dependency relationship until the addition of all metadata in the metadata collection is completed, resulting in a metadata tree structure, comprising:
firstly, acquiring metadata which does not depend on other metadata in a metadata set as a root node, and deploying the acquired root node at the top of an interface.
And secondly, acquiring metadata which depends on the root node in the metadata set and is used as a first child node, and deploying the acquired first child node on the lower layer of the root node.
And finally, acquiring metadata which depends on the first child node in the metadata set as a second child node, deploying the acquired second child node at the lower layer of the first child node, and circulating until the metadata in the metadata set is deployed, so as to obtain a metadata tree structure.
In an exemplary embodiment, after generating the metadata tree structure according to the dependency relationship of the metadata in the metadata collection, the method further includes:
first, a query instruction for a metadata tree structure is obtained.
In an exemplary embodiment, the query instruction may be the entire tree in the query metadata structure or may be a sub-tree in the query metadata structure.
Secondly, inquiring the metadata tree structure according to the inquiry instruction and displaying the inquiry result on an interface.
In an exemplary embodiment, after generating the metadata tree structure according to the dependency relationship of the metadata in the metadata collection, the method further includes:
firstly, acquiring a processing instruction aiming at a metadata tree structure; wherein the processing instructions include: instructions to add metadata, instructions to delete metadata, and instructions to modify metadata.
And secondly, processing the metadata tree structure according to the processing instruction.
According to the metadata processing method provided by the embodiment of the application, the metadata tree structure is generated according to the dependency relationship of the metadata in the metadata set, so that the processing from the metadata to the tree structure is realized, and the subsequent management of the metadata is facilitated.
An embodiment of the present application further provides a processing apparatus for metadata, as shown in fig. 2, where the processing apparatus 2 for metadata includes:
an obtaining module 21, configured to obtain the metadata set and a dependency relationship of metadata in the metadata set.
And the processing module 22 is used for generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
In an exemplary embodiment, the processing module 22 is specifically configured to deploy the metadata from the top to the bottom of the interface according to the dependency relationship until deployment of all metadata in the metadata collection is completed, so as to obtain a metadata tree structure.
In an exemplary embodiment, the processing module 22 is specifically configured to:
and acquiring metadata independent of other metadata in the metadata set as a root node, and deploying the acquired root node at the top of the interface.
And acquiring metadata which depends on the root node in the metadata set as a first child node, and deploying the acquired first child node on the lower layer of the root node.
And acquiring metadata which depends on the first child node in the metadata set as a second child node, deploying the acquired second child node at the lower layer of the first child node, and circulating until the metadata in the metadata set is deployed, so as to obtain a metadata tree structure.
In one illustrative example, the processing module 22 is further configured to:
a query instruction for a metadata tree structure is obtained.
And querying the metadata tree structure according to the query instruction and displaying a query result on an interface.
In one illustrative example, the processing module 22 is further configured to:
obtaining a processing instruction for the metadata tree structure; wherein the processing instructions include: instructions to add metadata, instructions to delete metadata, and instructions to modify metadata.
And processing the metadata tree structure according to the processing instruction.
In an exemplary example, the processing device for metadata may run in a cloud computing management platform, and is provided for each service module having metadata with such a tree-shaped layer level relationship to use, so that the service module does not need to be managed separately, and only upper and lower levels of metadata need to be specified, and such a tree-shaped structure may be managed conveniently through the device.
According to the metadata processing device provided by the embodiment of the application, the metadata tree structure is generated according to the dependency relationship of the metadata in the metadata set, so that the processing from the metadata to the tree structure is realized, and the subsequent management of the metadata is facilitated.
In practical applications, the obtaining module 21 and the Processing module 22 are implemented by a Central Processing Unit (CPU), a Micro Processing Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located in a metadata Processing device.
The embodiment of the present application further provides a metadata processing apparatus, which includes a memory, a processor, and a computer program written on the memory and executable on the processor, where the computer program, when executed by the processor, implements the processing of any one of the above methods.
Embodiments of the present application further provide a computer-readable storage medium, on which computer-executable instructions are stored, where the computer-executable instructions are used to execute the processing of any one of the methods described above.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software can be distributed on computer readable media, which can include computer written media (or non-transitory media) and communication media (or transitory media). The term computer-written media, as known to those of ordinary skill in the art, includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for writing information, such as computer-readable instructions, data structures, program modules, or other data. Computer-written media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk writing, magnetic cassettes, magnetic tape, magnetic disk writing or other magnetic writing devices, or any other medium which can be used to write the desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A method for processing metadata, comprising:
acquiring a metadata set and a dependency relationship of metadata in the metadata set;
and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
2. The method of claim 1, wherein generating a metadata tree structure according to the dependency relationship of metadata in the metadata collection comprises:
and deploying the metadata from the top to the bottom of the interface according to the dependency relationship until deployment of all the metadata in the metadata set is completed, so as to obtain the metadata tree structure.
3. The method according to claim 2, wherein deploying the metadata from the top to the bottom of the interface according to the dependency relationship until the addition of all metadata in the metadata collection is completed, resulting in a metadata tree structure, comprises:
acquiring metadata independent of other metadata in the metadata set as a root node, and deploying the acquired root node at the top of the interface;
acquiring metadata which depends on the root node in the metadata set and is used as a first child node, and deploying the acquired first child node on the lower layer of the root node;
and acquiring metadata which depends on the first child node in the metadata set as a second child node, deploying the acquired second child node at the lower layer of the first child node, and circulating until the metadata in the metadata set is deployed, so as to obtain the metadata tree structure.
4. The method of claim 1, wherein after generating the metadata tree structure according to the dependency relationship of the metadata in the metadata collection, the method further comprises:
obtaining a query instruction for the metadata tree structure;
and querying the metadata tree structure according to the query instruction, and displaying the query result on an interface.
5. The method of claim 1, wherein after generating the metadata tree structure according to the dependency relationship of the metadata in the metadata collection, the method further comprises:
obtaining a processing instruction for the metadata tree structure; wherein the processing instructions include: instructions to add metadata, instructions to delete metadata, and instructions to modify metadata;
and processing the metadata tree structure according to the processing instruction.
6. An apparatus for processing metadata, comprising:
the acquiring module is used for acquiring a metadata set and the dependency relationship of metadata in the metadata set;
and the processing module is used for generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
7. The metadata processing apparatus according to claim 6, wherein the processing module is specifically configured to deploy metadata from the top to the bottom of the interface according to the dependency relationship until deployment of all metadata in the metadata collection is completed, so as to obtain the metadata tree structure.
8. The metadata processing apparatus according to claim 7, wherein the processing module is specifically configured to:
acquiring metadata independent of other metadata in the metadata set as a root node, and deploying the acquired root node at the top of the interface;
acquiring metadata which depends on the root node in the metadata set and is used as a first child node, and deploying the acquired first child node on the lower layer of the root node;
and acquiring metadata which depends on the first child node in the metadata set as a second child node, deploying the acquired second child node at the lower layer of the first child node, and circulating until the metadata in the metadata set is deployed, so as to obtain the metadata tree structure.
9. An apparatus for processing metadata, comprising: a processor and a memory, wherein the memory has written therein the following commands executable by the processor:
acquiring a metadata set and a dependency relationship of metadata in the metadata set;
and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
10. A computer-readable storage medium having computer-executable instructions stored thereon for performing the steps of:
acquiring a metadata set and a dependency relationship of metadata in the metadata set;
and generating a metadata tree structure according to the dependency relationship of the metadata in the metadata set.
CN201911242183.7A 2019-12-06 2019-12-06 Metadata processing method and device and computer readable storage medium Pending CN111104405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911242183.7A CN111104405A (en) 2019-12-06 2019-12-06 Metadata processing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911242183.7A CN111104405A (en) 2019-12-06 2019-12-06 Metadata processing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111104405A true CN111104405A (en) 2020-05-05

Family

ID=70421601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911242183.7A Pending CN111104405A (en) 2019-12-06 2019-12-06 Metadata processing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111104405A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567464A (en) * 2011-11-29 2012-07-11 西安交通大学 Theme map expansion based knowledge resource organizing method
CN102591952A (en) * 2011-12-28 2012-07-18 用友软件股份有限公司 Data query device and data query method based on semanteme
US20150278274A1 (en) * 2011-02-28 2015-10-01 International Business Machines Corporation Retrieving data in a storage system using thin provisioning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150278274A1 (en) * 2011-02-28 2015-10-01 International Business Machines Corporation Retrieving data in a storage system using thin provisioning
CN102567464A (en) * 2011-11-29 2012-07-11 西安交通大学 Theme map expansion based knowledge resource organizing method
CN102591952A (en) * 2011-12-28 2012-07-18 用友软件股份有限公司 Data query device and data query method based on semanteme

Similar Documents

Publication Publication Date Title
CN105302920B (en) Cloud storage data optimization management method and system
US9720614B2 (en) Allocating storage for cloned data
CN110134335B (en) RDF data management method and device based on key value pair and storage medium
US9792146B2 (en) Iterative anti-collocation of network resources using prioritized graph coloring
US10129330B2 (en) Attachment of cloud services to big data services
US11080909B2 (en) Image layer processing method and computing device
CN111104405A (en) Metadata processing method and device and computer readable storage medium
CN111221790A (en) Log file processing method and device and computer readable storage medium
US20150067192A1 (en) System and method for adjusting sas addresses of sas expanders
CN111737369A (en) Relationship map updating method and device and storage medium
CN110674171A (en) Script generation method and device and data processing method and device
CN112579877A (en) Information source system control method, device, storage medium and equipment
CN106648550B (en) Method and device for concurrently executing tasks
CN111858018B (en) Cgroup configuration method and device, computer equipment and storage medium
CN110825358B (en) Multi-level system configuration service design method based on preamble priority matching rule
US10747710B2 (en) Dynamic association of application workload tiers to infrastructure elements in a cloud computing environment
CN110532457B (en) Method and system for acquiring network segment ID
CN106681914B (en) Television picture quality debugging method and device
CN110806895A (en) Project creation method and device and computer readable storage medium
CN112241395B (en) Application program file cleaning method and device, terminal equipment and storage medium
US20230289237A1 (en) Automated nesting of existing stacks in a root stack within an aws environment
CN111008219B (en) Data query method and device and computer readable storage medium
US8843495B2 (en) High-efficiency selection of runtime rules for programmable search
US11132185B2 (en) Embedding of multiple versions in monolithic applications during compilation
JP5410155B2 (en) Data division system and data division method

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: 20200505

RJ01 Rejection of invention patent application after publication