Urban area multi-format data classification storage method and device

By acquiring and analyzing the tags of data resources, determining their type and classification, the problem of the difficulty in automatically classifying multi-format data in existing technologies is solved, and efficient data storage and management are achieved.

CN117609555BActive Publication Date: 2026-11-24CHINA RAILWAY CONSTR CORP LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311354924.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2026-11-24
Estimated Expiration
2043-10-18

AI Technical Summary

Technical Problem

Existing object storage technologies cannot automatically organize and classify data according to its type, format, and business scenario, resulting in high client-side storage complexity and difficulty in effectively classifying multi-format data.

Method used

By acquiring the tags of the target data resources, determining their data type and category, and storing the corresponding relationships in the storage engine based on this information, the system supports users in marking types and category tags, thereby enabling automatic data classification and storage.

Benefits of technology

It enables simple and efficient classification and storage of multi-format data, reduces client program complexity, reduces access time by 30%, and improves disk utilization by 15%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117609555B_ABST
    Figure CN117609555B_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for classifying and storing multi-format data in urban areas, relating to the field of distributed storage technology, and solving the problem of the inability to automatically organize and classify data according to its type, format, and business scenario. The method includes: acquiring target data resources for urban areas and determining the tags of the target data resources; determining the data type and data category corresponding to the target data resources based on the target data resources and their tags; determining the storage nodes for the target data resources based on their data type and data category; and storing the correspondence between the target data resources and the tags, data type, data category, and storage nodes in a storage engine. This application can simply and efficiently implement the classification and storage of multi-format data, enabling automatic data organization and classification across multiple business scenarios in the urban area data storage industry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of distributed storage technology, and in particular to a method and apparatus for classifying and storing multi-format data in urban areas. Background Technology

[0002] With the acceleration of urbanization, urban renewal and future communities have become important directions for urban development. The system construction process requires the storage of a large amount of data, involving not only various data formats but also diverse business classifications, such as urban planning, architectural design, construction management, and community operation management. This process generates a large amount of data in various formats, such as documents, images, PPTs, PDFs, models, videos, business data, and asset data. Although there are currently general object storage technologies (such as data lakes and Alibaba Cloud OSS) that can uniformly store this data, they cannot automatically organize and classify it according to data type, format, and business scenario. Clients must manually record the storage location, which is complex, difficult to classify, and lacks a unified solution. Summary of the Invention

[0003] To address the aforementioned technical deficiencies, this application provides a method and apparatus for classifying and storing multi-format data in urban areas.

[0004] This application provides a method for classifying and storing multi-format data in urban areas, including:

[0005] Acquire target data resources for urban areas and determine the tags of the target data resources;

[0006] Based on the target data resource and its tags, determine the data type and data category corresponding to the target data resource;

[0007] The storage node for the target data resource is determined based on the data type and the data classification.

[0008] The storage engine stores the correspondence between the target data resource and the tag, the data type, the data category, and the storage node.

[0009] Preferably, determining the data type corresponding to the target data resource based on the target data resource and its tags includes:

[0010] Obtain the type label that the user has marked for the target data resource, or mark the target data resource with the type label based on the file extension of the target data resource;

[0011] Based on the type label of the target data resource, determine the data type corresponding to the target data resource.

[0012] Preferably, determining the data category corresponding to the target data resource based on the target data resource and the target data resource's tags includes:

[0013] Obtain the category tags that users have marked for the target data resource, or mark the target data resource with category tags according to the business scenario requirements, file name and data content of the target data resource;

[0014] Based on the classification tags of the target data resource, determine the data category corresponding to the target data resource.

[0015] Preferably, the target data resource tag type label based on the file extension of the target data resource includes:

[0016] Based on the file extension, determine the type tag corresponding to the target data resource. The type tags include: document tag, video tag, model tag, image tag, and business data tag.

[0017] Based on the file content of the target data resource, determine the type tag corresponding to the target data resource;

[0018] When the type label corresponding to the target data resource cannot be determined based on the file extension and file content, the target data resource is labeled with an "unknown type" label.

[0019] Preferably, labeling the target data resource with classification tags based on the business scenario requirements, file name, and data content of the target data resource includes:

[0020] Search the file name and / or file content of the target data resource to see if it contains business scenario keywords. If the business scenario keywords are found, mark the target data resource with the corresponding category tag.

[0021] Search the file name and / or file content of the target data resource to see if it contains a project name. If it does, mark the target data resource with the corresponding category tag.

[0022] If neither the business scenario nor the project name matches the category tag corresponding to the target data resource, then the target data resource is labeled with an "unknown category" tag.

[0023] Preferably, searching whether the filename and / or file content of the target data resource contains business scenario keywords, and searching whether the filename and / or file content of the target data resource contains a project name, includes:

[0024] Determine whether the file type of the target data resource is a document;

[0025] When the file type of the target data resource is not a document, search for whether the file name of the target data resource contains business scenario keywords and whether it contains a project name.

[0026] When the file type of the target data resource is a document, determine whether the file size of the target data resource exceeds a set threshold;

[0027] When the file size of the target data resource exceeds a set threshold, search the file name of the target data resource to see if it contains business scenario keywords and project name;

[0028] When the file size of the target data resource does not exceed the set threshold, search whether the file name and file content of the target data resource contain business scenario keywords, and search whether the file name and file content of the target data resource contain project names.

[0029] Preferably, the classification and storage method further includes:

[0030] The system periodically or triggerably checks the tags, data types, data categories, and storage nodes corresponding to each target data resource stored in the storage engine. If data files with the same filename are found under the same data type and data category, the user is prompted to delete the old file or replace the file with the same name.

[0031] Preferably, the classification and storage method further includes:

[0032] Receive the user's changed type label and / or category label corresponding to the target data resource, and redetermine the storage node of the target data resource based on the changed type label and / or category label;

[0033] The user is prompted to delete the target data resource in the original storage node, or delete the target data resource in the original storage node.

[0034] The storage engine stores the correspondence between the target data resource and the changed tags, changed data types, changed data categories, and changed storage nodes.

[0035] Secondly, the present invention also provides a multi-format data classification and storage device for urban areas, comprising:

[0036] The acquisition module is used to acquire target data resources for urban areas and determine the tags of the target data resources;

[0037] The classification module is used to determine the data type and data category corresponding to the target data resource based on the target data resource and the tag of the target data resource;

[0038] A storage module is used to determine the storage node of the target data resource based on the data type and the data classification;

[0039] The statistics module is used to store the correspondence between the target data resources and the tags, data types, data categories, and storage nodes in the storage engine.

[0040] Preferably, the classification module includes:

[0041] A type tagging unit is used to obtain a type tag that the user has marked for the target data resource, or to mark a type tag for the target data resource based on the file extension of the target data resource;

[0042] The type determination unit is used to determine the data type corresponding to the target data resource based on the type label of the target data resource.

[0043] Preferably, the classification module includes:

[0044] The classification tagging unit is used to obtain the classification tags marked by the user for the target data resource, or to mark the target data resource with classification tags according to the business scenario requirements, file name and data content of the target data resource;

[0045] Determine the classification unit and, based on the classification label of the target data resource, determine the data category corresponding to the target data resource.

[0046] Addressing the challenges of storing and automatically classifying data of various data types and formats across multiple business scenarios in urban areas, this application presents a method and apparatus for classifying and storing multi-format data in urban areas. This method and apparatus can simply and efficiently classify and store multi-format data, enabling automatic data organization and classification across multiple business scenarios within the urban data storage industry. This application can uniformly classify and summarize data according to business scenario needs, and further perform data deduplication. Attached Figure Description

[0047] Figure 1 A flowchart illustrating a method for classifying and storing multi-format data for urban areas, as provided in an embodiment of the present invention;

[0048] Figure 2 A schematic flowchart illustrating a method for classifying and storing multi-format data in urban areas, as provided in an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the structure of a multi-format data classification and storage device for urban areas provided in an embodiment of this application;

[0050] Figure 4 This is a schematic diagram of the structure of the classification module 320 provided in an embodiment of this application. Detailed Implementation

[0051] Exemplary embodiments of the invention will be described below with reference to the accompanying drawings. For clarity and brevity, not all features of actual implementations are described in the specification. However, it should be understood that many implementation-specific decisions must be made in the development of any such actual embodiment to achieve the developer's specific goals, such as complying with constraints related to the system and business, and these constraints may vary depending on the implementation. Furthermore, it should be understood that while development work can be very complex and time-consuming, such development work is merely a routine task for those skilled in the art who benefit from this disclosure.

[0052] It should also be noted that, in order to avoid obscuring the invention with unnecessary details, only the device structure closely related to the solution according to the invention is shown in the accompanying drawings, while other details that are not closely related to the invention are omitted.

[0053] like Figure 1 As shown, this embodiment of the invention provides a method for classifying and storing multi-format data for urban areas, which may include steps S110 to S140:

[0054] S110. Obtain target data resources for urban areas and determine the tags of the target data resources;

[0055] S120. Determine the data type and data category corresponding to the target data resource based on the target data resource and the tag of the target data resource;

[0056] S130. Determine the storage node of the target data resource according to the data type and the data classification;

[0057] S140. Store the correspondence between the target data resource and the tag, the data type, the data category, and the storage node in the storage engine.

[0058] This application also provides a computing device, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor. The computer program is stored in a space for program code in the memory, and when executed by the processor, it implements the method steps according to the present invention.

[0059] This application also provides a computer-readable storage medium. The computer-readable storage medium includes a storage unit for program code, the storage unit being provided with a program for performing the method steps according to the present invention, the program being executed by a processor.

[0060] The program implementing the multi-format data classification and storage method for urban areas according to the embodiments of the present invention can interact with users in the form of a client. The client acts as the entry and exit point between the data storage and the user, and performs unified coordination and management. The purpose is to reduce the program complexity of the client. Using the multi-format data classification and storage method for urban areas provided by the embodiments of the present invention, users do not need to worry about the complex correspondence between various data types, formats, storage engines, and storage locations. The method of the embodiments of the present invention achieves simple and efficient classification and storage of multi-format data.

[0061] In this embodiment of the application, step S120, determining the data type corresponding to the target data resource based on the target data resource and its tag, includes:

[0062] Obtain the type label that the user has marked for the target data resource, or mark the target data resource with the type label based on the file extension of the target data resource;

[0063] Based on the type label of the target data resource, determine the data type corresponding to the target data resource.

[0064] In this embodiment of the application, step S120, determining the data category corresponding to the target data resource based on the target data resource and its tag, includes:

[0065] Obtain the category tags that users have marked for the target data resource, or mark the target data resource with category tags according to the business scenario requirements, file name and data content of the target data resource;

[0066] Based on the classification tags of the target data resource, determine the data category corresponding to the target data resource.

[0067] In this embodiment of the invention, users can set tags for target data resources, and can also analyze target data resources and mark them with type tags and category tags. The purpose is to accurately classify and store target data resources in accordance with their own business scenarios.

[0068] Users can assign tags to target data resources, or analyze target data resources and label them with type and category tags, for subsequent categorized storage processing. Users can also maintain and add personalized tags. The number of tags for each target data resource can be configured with a system-level upper limit (e.g., 30 by default), improving the rationality of data resource storage.

[0069] The target data resource tag type, based on the file extension of the target data resource, includes:

[0070] Based on the file extension, determine the type tag corresponding to the target data resource. The type tags include: document tag, video tag, model tag, image tag, and business data tag.

[0071] Based on the file content of the target data resource, determine the type tag corresponding to the target data resource;

[0072] When the type label corresponding to the target data resource cannot be determined based on the file extension and file content, the target data resource is labeled with an "unknown type" label.

[0073] The classification tags assigned to the target data resources based on their business scenario requirements, file names, and data content include:

[0074] Search the file name and / or file content of the target data resource to see if it contains business scenario keywords. If the business scenario keywords are found, mark the target data resource with the corresponding category tag.

[0075] Search the file name and / or file content of the target data resource to see if it contains a project name. If it does, mark the target data resource with the corresponding category tag.

[0076] If neither the business scenario nor the project name matches the category tag corresponding to the target data resource, then the target data resource is labeled with the "unknown type" tag.

[0077] Specifically, searching whether the filename and / or file content of the target data resource contains business scenario keywords, and searching whether the filename and / or file content of the target data resource contains a project name, includes:

[0078] Determine whether the file type of the target data resource is a document;

[0079] When the file type of the target data resource is not a document, search for whether the file name of the target data resource contains business scenario keywords and whether it contains a project name.

[0080] When the file type of the target data resource is a document, determine whether the file size of the target data resource exceeds a set threshold;

[0081] When the file size of the target data resource exceeds a set threshold, search the file name of the target data resource to see if it contains business scenario keywords and project name;

[0082] When the file size of the target data resource does not exceed the set threshold, search whether the file name and file content of the target data resource contain business scenario keywords, and search whether the file name and file content of the target data resource contain project names.

[0083] In this embodiment of the invention, the target data resources are analyzed, mainly in two directions: data type and data classification. First, the data type is determined, as it dictates the storage engine and storage nodes. If the user has specified a data type using a type tag, the data will be processed according to that type first. If no tag is specified, the data will be distributed based on its file extension. For example, files with extensions like "txt", "doc", and "docx" are labeled "documents"; "mp4" and "mov" are labeled "videos"; "rvt" is labeled "models"; and "BMP", "JEPG", and "GIF" are labeled "images". Business data, stored in the database, can be uploaded directly via an API. For example, JSON files can be transmitted as TXT, CSV, or XLSX spreadsheet files, with extensions like "xls" and "xlsx", and are labeled "business data". If no file extension is specified or no matching tag is found, the type tag for the target data resource can be determined based on its file content. Even if a matching tag has been found using the file extension, the type tag can still be determined based on the file content. Due to different classification standards, a target data resource can have multiple type tags. When no corresponding tag is matched based on either the file extension or the file content, it is marked as "unknown type". For example, the data types in this embodiment of the invention include: document type, video type, image type, model type, business data type, and unknown type, and the corresponding type tags include: document tag, video tag, model tag, image tag, and business data tag. Next, the data classification is determined. If the user has set classification tags for the target data resource, it is classified and stored according to the user-marked tags. Otherwise, it is classified according to business scenario needs, data file name, or data content: The first step attempts to determine the business scenario by searching whether the file name and file content contain business scenario keywords, such as "decision assistance," "cost calculation," "survey and design," "construction," and "operation." If a match is found, it is marked. The second step attempts to determine the project name by searching whether the file name and file content contain the project name. If a match is found, it is marked. Similarly, due to different classification standards, a target data resource can have multiple classification tags. In this embodiment of the invention, when searching file content, only document-type data resources are searched by default. Other types of data files are searched only by file name. Moreover, the system dynamically configures a file size threshold, for example, 100MB. For document-type data resources, only file content smaller than 100MB is searched. For files exceeding the threshold, only file name is searched, thus avoiding the impact of processing large files on the performance of other system functions.The third step is to mark the data file as "unknown category" and store it if no matching business scenario or project name is found. In the future, the data resource uploaders can be notified to manually mark and classify the files, and the classification criteria can be continuously improved.

[0084] The embodiments of the present invention also include:

[0085] The system periodically or triggerably checks the tags, data types, data categories, and storage nodes corresponding to each target data resource stored in the storage engine. If data files with the same filename are found under the same data type and data category, the user is prompted to delete the old file or replace the file with the same name.

[0086] In this embodiment of the invention, the content of the storage engine can be detected periodically, for example, by setting the detection period to 10 minutes or 30 minutes. The detection period can be set according to the processor parameters and application scenario requirements. Alternatively, the content of the storage engine can be detected triggered, for example, when new target data resources are input, or when the user changes the label, or when other changes occur in the target data resources or labels, or when the storage node changes.

[0087] The embodiments of the present invention also include:

[0088] Receive the user's changed type label and / or category label corresponding to the target data resource, and redetermine the storage node of the target data resource based on the changed type label and / or category label;

[0089] The user is prompted to delete the target data resource in the original storage node, or delete the target data resource in the original storage node.

[0090] The storage engine stores the correspondence between the target data resource and the changed tags, changed data types, changed data categories, and changed storage nodes.

[0091] This invention can perform data sorting and deduplication. For example, if data files with the same name are found to be of the same type and category, the system will prompt the user to delete the old file or set a default rule: "Automatically replace files with the same name".

[0092] The multi-format data classification and storage method for urban areas provided in this invention allows users to focus solely on data usage without needing to worry about data access, thus reducing storage code by over 1000 lines. Related technologies require interaction with multiple access services and manual data classification during data retrieval, resulting in low efficiency. The multi-format data classification and storage method for urban areas provided in this invention can reduce access time by 30%. Furthermore, this method can uniformly classify and summarize data according to business needs, while also performing data deduplication and reducing redundant data, improving disk utilization by over 15%.

[0093] like Figure 2 The diagram illustrates the processing steps of the multi-format data classification and storage method for urban areas provided in this embodiment of the invention:

[0094] S1. User sets data tags: The user sets tags for the target data resource;

[0095] S2. Data Acquisition: Obtain the target data resources and their corresponding tags;

[0096] S3. Data Resource Analysis: Based on the target data resources and corresponding tags, determine the corresponding data types and data categories;

[0097] S4. Multi-threaded processing: Determine the storage node corresponding to the target data resource.

[0098] Example

[0099] 1. A user has set the tag "Design Scheme for Wenzhou Pingyang XX Project" for a PDF file (Resource A).

[0100] 2. The user has tagged a BIM model file (Resource B) with two labels: "Design Scheme for Wenzhou Pingyang XX Project" and "BIM Model".

[0101] 3. The user has tagged a BIM model file (Resource C) with two labels: "Design Scheme for Shanghai Pudong XX Project" and "BIM Model".

[0102] 4. A user tagged a business data file (resource D) as: "Design Scheme for Wenzhou Pingyang XX Project".

[0103] 5. The user packages and uploads the above resources A, B, C, and D.

[0104] 6. Analyze the data based on its attributes, tags, and names to determine the target storage node. For example, resources B and C will be stored in the visualization storage node, while resource A will be stored in the document storage node.

[0105] 7. When storing data, multi-threading is started for processing, supporting the simultaneous transfer of multiple data files. This process mainly involves network I / O operations, which consumes less CPU and can improve system operating efficiency. The number of worker threads is configurable and can be configured according to the system load.

[0106] 8. Data resources uploaded successfully.

[0107] 9. Users can perform statistics, analysis, query and download of data in the console; when a user queries and analyzes the “Design Scheme of Wenzhou Pingyang XX Project”, resources A, B and D will be returned; when a user queries and analyzes the “Design Scheme of Shanghai Pudong XX Project”, resource C will be returned; when a user views the “BIM Model”, resources B and C will be returned.

[0108] like Figure 3 As shown, this embodiment of the invention also provides a multi-format data classification and storage device for urban areas, comprising:

[0109] The acquisition module 310 is used to acquire target data resources for urban areas and determine the tags of the target data resources;

[0110] The classification module 320 is used to determine the data type and data category corresponding to the target data resource based on the target data resource and the tag of the target data resource;

[0111] Storage module 330 is used to determine the storage node of the target data resource according to the data type and the data classification;

[0112] The statistics module 340 is used to store the correspondence between the target data resources and the tags, data types, data categories, and storage nodes in the storage engine.

[0113] In embodiments of the present invention, such as Figure 4 As shown, the classification module 320 includes:

[0114] Type tagging unit 321 is used to obtain the type tag that the user marks for the target data resource, or to mark the target data resource with a type tag according to the file extension of the target data resource;

[0115] The type determination unit 322 is used to determine the data type corresponding to the target data resource based on the type label of the target data resource.

[0116] In this embodiment of the invention, the classification module 320 includes:

[0117] The classification tagging unit 323 is used to obtain the classification tags marked by the user for the target data resource, or to mark the target data resource with classification tags according to the business scenario requirements, file name and data content of the target data resource;

[0118] Classification unit 324 determines the data category corresponding to the target data resource based on the classification label of the target data resource.

[0119] In this embodiment of the invention, the type marking unit 321 marks the target data resource with a type tag based on the file extension of the target data resource, including:

[0120] Based on the file extension, determine the type tag corresponding to the target data resource. The type tags include: document tag, video tag, model tag, image tag, and business data tag.

[0121] When the type label corresponding to the target data resource cannot be determined based on the file extension, the target data resource is labeled with an "unknown type" label.

[0122] In this embodiment of the invention, the classification tagging unit 323 tags the target data resource with classification labels according to the business scenario requirements, file name, and data content of the target data resource, including:

[0123] Search the file name and / or file content of the target data resource to see if it contains business scenario keywords. If the business scenario keywords are found, mark the target data resource with the corresponding category tag.

[0124] Search the file name and / or file content of the target data resource to see if it contains a project name. If it does, mark the target data resource with the corresponding category tag.

[0125] If neither the business scenario nor the project name matches the category tag corresponding to the target data resource, then the target data resource is labeled with an "unknown category" tag.

[0126] In this embodiment of the invention, the classification tagging unit 323 searches whether the file name and / or file content of the target data resource contains business scenario keywords, and searches whether the file name and / or file content of the target data resource contains a project name, including:

[0127] Determine whether the file type of the target data resource is a document;

[0128] When the file type of the target data resource is not a document, search for whether the file name of the target data resource contains business scenario keywords and whether it contains a project name.

[0129] When the file type of the target data resource is a document, determine whether the file size of the target data resource exceeds a set threshold;

[0130] When the file size of the target data resource exceeds a set threshold, search the file name of the target data resource to see if it contains business scenario keywords and project name;

[0131] When the file size of the target data resource does not exceed the set threshold, search whether the file name and file content of the target data resource contain business scenario keywords, and search whether the file name and file content of the target data resource contain project names.

[0132] In this embodiment of the invention, the classification storage device further includes:

[0133] The sorting module is used to periodically or trigger-basedly detect the tags, data types, data categories, and storage nodes corresponding to each target data resource stored in the storage engine. If data files with the same filename are found under the same data type and the same data category, the user is prompted to delete the old file or replace the file with the same name.

[0134] In this embodiment of the invention, the sorting module is further used for:

[0135] Receive the user's changed type label and / or category label corresponding to the target data resource, and redetermine the storage node of the target data resource based on the changed type label and / or category label;

[0136] The user is prompted to delete the target data resource in the original storage node, or delete the target data resource in the original storage node.

[0137] The storage engine stores the correspondence between the target data resource and the changed tags, changed data types, changed data categories, and changed storage nodes.

[0138] It should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", and "outer" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0139] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0140] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

[0141] Although the invention has been described with reference to a limited number of embodiments, those skilled in the art will understand from the foregoing description that other embodiments are conceivable within the scope of the invention described herein. Furthermore, it should be noted that the language used in this specification has been chosen primarily for readability and instructional purposes, and not for the purpose of interpreting or limiting the subject matter of the invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the invention is illustrative and not restrictive, and the scope of the invention is defined by the appended claims.

Claims

1. A multi-format data classification storage method for urban area, characterized in that, include: Acquire target data resources for urban areas and determine the tags of the target data resources; Based on the target data resource and its tags, determine the data type and data category corresponding to the target data resource; The storage node for the target data resource is determined based on the data type and the data classification. The storage engine stores the correspondence between the target data resource and the tag, the data type, the data category, and the storage node; Based on the target data resource and its tags, the data category corresponding to the target data resource is determined as follows: Obtain the category tags that users have marked for the target data resource, or mark the target data resource with category tags according to the business scenario requirements, file name and data content of the target data resource; Based on the classification tags of the target data resource, determine the data category corresponding to the target data resource; Based on the business scenario requirements, file name, and data content of the target data resource, the target data resource is categorized and labeled with the following tags: Search the file name and / or file content of the target data resource to see if it contains business scenario keywords. If the business scenario keywords are found, mark the target data resource with the corresponding category tag. Search the file name and / or file content of the target data resource to see if it contains a project name. If it does, mark the target data resource with the corresponding category tag. If neither the business scenario nor the project name matches the category tag corresponding to the target data resource, mark the target data resource with the "unknown category" tag; notify the data resource uploader to manually mark and classify the file; The search criteria include whether the filename and / or file content of the target data resource contains business scenario keywords, and whether the filename and / or file content of the target data resource contains a project name, including: Determine whether the file type of the target data resource is a document; When the file type of the target data resource is not a document, search for whether the file name of the target data resource contains business scenario keywords and whether it contains a project name. When the file type of the target data resource is a document, determine whether the file size of the target data resource exceeds a set threshold; When the file size of the target data resource exceeds a set threshold, search the file name of the target data resource to see if it contains business scenario keywords and project name; When the file size of the target data resource does not exceed the set threshold, search whether the file name and file content of the target data resource contain business scenario keywords, and search whether the file name and file content of the target data resource contain project names.

2. The classified storage method according to claim 1, characterized by, Based on the target data resource and its tags, the data type corresponding to the target data resource is determined as follows: Obtain the type label that the user has marked for the target data resource, or mark the target data resource with the type label based on the file extension of the target data resource; Based on the type label of the target data resource, determine the data type corresponding to the target data resource.

3. The classified storage method according to claim 2, wherein, The target data resource's file extension is used to define the target data resource's tag type, which includes: Based on the file extension, determine the type tag corresponding to the target data resource. The type tags include: document tag, video tag, model tag, image tag, and business data tag. Based on the file content of the target data resource, determine the type tag corresponding to the target data resource; When the type label corresponding to the target data resource cannot be determined based on the file extension and file content, the target data resource is labeled with the "unknown type" label.

4. The classification and storage method according to claim 1, characterized in that, Also includes: The system periodically or triggerably checks the tags, data types, data categories, and storage nodes corresponding to each target data resource stored in the storage engine. If data files with the same filename are found under the same data type and data category, the user is prompted to delete the old file or replace the file with the same name.

5. The classification and storage method according to claim 1 or 2, characterized in that, Also includes: Receive the user's changed type label and / or category label corresponding to the target data resource, and redetermine the storage node of the target data resource based on the changed type label and / or category label; The user is prompted to delete the target data resource in the original storage node, or delete the target data resource in the original storage node. The storage engine stores the correspondence between the target data resource and the changed tags, changed data types, changed data categories, and changed storage nodes.

6. A multi-format data classification and storage device for urban areas, characterized in that, include: The acquisition module is used to acquire target data resources for urban areas and determine the tags of the target data resources; The classification module is used to determine the data type and data category corresponding to the target data resource based on the target data resource and the tag of the target data resource; A storage module is used to determine the storage node of the target data resource based on the data type and the data classification; The statistics module is used to store the correspondence between the target data resources and the tags, data types, data categories, and storage nodes in the storage engine; The classification module includes: The classification tagging unit is used to obtain the classification tags marked by the user for the target data resource, or to mark the target data resource with classification tags according to the business scenario requirements, file name and data content of the target data resource; Determine the classification unit and, based on the classification label of the target data resource, determine the data category corresponding to the target data resource; The classification and labeling unit labels the target data resource with classification tags based on the business scenario requirements, file name, and data content of the target data resource, including: Search the file name and / or file content of the target data resource to see if it contains business scenario keywords. If the business scenario keywords are found, mark the target data resource with the corresponding category tag. Search the file name and / or file content of the target data resource to see if it contains a project name. If it does, mark the target data resource with the corresponding category tag. If neither the business scenario nor the project name matches the category tag corresponding to the target data resource, mark the target data resource with the "unknown category" tag; notify the data resource uploader to manually mark and classify the file; The search criteria include whether the filename and / or file content of the target data resource contains business scenario keywords, and whether the filename and / or file content of the target data resource contains a project name, including: Determine whether the file type of the target data resource is a document; When the file type of the target data resource is not a document, search for whether the file name of the target data resource contains business scenario keywords and whether it contains a project name. When the file type of the target data resource is a document, determine whether the file size of the target data resource exceeds a set threshold; When the file size of the target data resource exceeds a set threshold, search the file name of the target data resource to see if it contains business scenario keywords and project name; When the file size of the target data resource does not exceed the set threshold, search whether the file name and file content of the target data resource contain business scenario keywords, and search whether the file name and file content of the target data resource contain project names.

7. The classification storage device according to claim 6, characterized in that, The classification module includes: A type tagging unit is used to obtain a type tag that the user has marked for the target data resource, or to mark a type tag for the target data resource based on the file extension of the target data resource; The type determination unit is used to determine the data type corresponding to the target data resource based on the type label of the target data resource.

Citation Information

Patent Citations

  • Mass structured data storage method and system

    CN116719822A