ISLI metadata file parsing method, device, equipment and readable storage medium

By receiving file parsing requests, obtaining ISLI encoding and user permission information, parsing files in the file directory, and outputing ISLI associated metadata and target metadata, it solves the problem of insufficient high concurrent parsing performance of massive ISLI metadata files and achieves high efficiency and safe parsing effect.

CN112699405BActive Publication Date: 2025-02-11SHENZHEN MPR TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011610371.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2025-02-11
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently parse high concurrent requests from massive ISLI metadata files, resulting in insufficient performance.

Method used

By receiving file resolution requests, obtaining ISLI encoding, determining file directory, obtaining user permission information, determining target file name, and parsing files in file directory based on user permissions, outputting ISLI associated metadata and target permissions in target open file Target metadata in the file.

Benefits of technology

It realizes high concurrent parsing performance of massive metadata files, solves the problem of insufficient performance, and ensures secure parsing of files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112699405B_ABST
    Figure CN112699405B_ABST
Patent Text Reader

Abstract

The present invention discloses an ISLI metadata file parsing method, device, equipment and readable storage medium, the method comprising: when receiving a file parsing request, obtaining the ISLI code corresponding to the file parsing request, and determining the file directory according to the ISLI code; obtaining the user authority information corresponding to the file parsing request, and determining the target file name according to the user authority information and the ISLI code; parsing all the files in the file directory according to the user authority information to obtain the target open file and the target authority file corresponding to the target file name; outputting the ISLI-related metadata in the target open file and the target metadata in the target authority file. The present invention solves the problem of high-concurrency parsing of massive metadata files by obtaining the files corresponding to the user authority and outputting the metadata in the files corresponding to the user authority.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information and documents, and in particular to an ISLI metadata file parsing method, device, equipment and a readable storage medium. Background Art

[0002] During the construction of the ISLI (International Standard Link Identifier) ​​information system, the files storing relevant data are in XML (EXtensible Markup Language) format and the number of files is very large. Therefore, the relevant files cannot be parsed using a database but a file system. However, for the massive ISLI metadata files, how to solve the high-concurrency parsing of massive metadata files has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The main purpose of the present invention is to provide an ISLI metadata file parsing method, device, equipment and readable storage medium, aiming to solve the technical problem of high concurrent parsing performance of massive associated metadata files in the prior art.

[0004] In addition, to achieve the above object, the present invention also provides an ISLI metadata file parsing method, the ISLI metadata file parsing method comprising the following steps:

[0005] When receiving a file parsing request, obtaining an ISLI code corresponding to the file parsing request, and determining a file directory according to the ISLI code;

[0006] Obtaining user authority information corresponding to the file parsing request, and determining a target file name according to the user authority information and the ISLI code;

[0007] According to the user authority information, all files in the file directory are parsed to obtain a target open file and a target authority file corresponding to the target file name;

[0008] The ISLI-associated metadata in the target open file and the target metadata in the target rights file are output.

[0009] Optionally, when receiving a file parsing request, obtaining an ISLI code corresponding to the file parsing request, and determining a file directory according to the ISLI code includes:

[0010] Obtaining the ISLI code corresponding to the file parsing request, performing verification calculation on a preset verification factor and the ISLI code to obtain a verification code;

[0011] If the verification code meets the preset rules, the file directory is determined according to the ISLI code.

[0012] Optionally, the step of determining the file directory according to the ISLI code includes:

[0013] A target hash value is generated according to the ISLI encoding, and the target hash value is divided according to a preset number of bits to obtain a file directory.

[0014] Optionally, the step of determining the target file name according to the user authority information and the ISLI code includes:

[0015] The permission level corresponding to the user permission information is obtained, and the ISLI code, the preset identifier, the permission level and the preset suffix are combined to obtain a target file name.

[0016] Optionally, the step of parsing all files in the file directory according to the user authority information to obtain a target open file and a target authority file corresponding to the target file name includes:

[0017] According to the user authority information, the key file in the file directory is parsed to obtain a target symmetric key;

[0018] Determine the target file path according to the target file name and the file directory;

[0019] The file parsing key in the target symmetric key is used to parse the metadata file in the file directory to obtain the target open file and the target permission file corresponding to the target file name, wherein the target open file and the target permission file belong to the metadata file.

[0020] Optionally, after the step of parsing all files in the file directory according to the user authority information to obtain the target open file and the target authority file corresponding to the target file name, the following steps are included:

[0021] The metadata parsing key in the target symmetric key is used to parse the metadata in the target open file and the target authority file to obtain ISLI-related metadata and target metadata.

[0022] Optionally, after the step of outputting the ISLI associated metadata in the target open file and the target metadata in the target rights file, the following steps are included:

[0023] According to a preset LRU algorithm, filter out the first associated metadata in the ISLI associated metadata and the first metadata in the target metadata;

[0024] The first associated metadata and the first metadata are invalidated.

[0025] In addition, to achieve the above-mentioned purpose, the present invention further provides an ISLI metadata file parsing device, the ISLI metadata file parsing device comprising:

[0026] An ISLI code acquisition module, configured to, when receiving a file parsing request, acquire an ISLI code corresponding to the file parsing request, and determine a file directory according to the ISLI code;

[0027] A target file name determination module, used to obtain user authority information corresponding to the file parsing request, and determine the target file name according to the user authority information and the ISLI code;

[0028] A parsing module, used to parse all files in the file directory according to the user authority information, and obtain a target open file and a target authority file corresponding to the target file name;

[0029] The metadata output module is used to output the ISLI-related metadata in the target open file and the target metadata in the target permission file.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides an ISLI metadata file parsing device, which includes: a memory, a processor, and an ISLI metadata file parsing program stored on the memory and executable on the processor, and the ISLI metadata file parsing program implements the steps of the ISLI metadata file parsing method as described above when executed by the processor.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a readable storage medium, on which an ISLI metadata file parsing program is stored. When the ISLI metadata file parsing program is executed by a processor, the steps of the ISLI metadata file parsing method as described above are implemented.

[0032] An ISLI metadata file parsing method, device, equipment and readable storage medium are proposed in an embodiment of the present invention. In the embodiment of the present invention, when the ISLI metadata file parsing program receives a file parsing request, the ISLI code corresponding to the file parsing request is obtained. After obtaining the ISLI code, the file directory is determined according to the ISLI code, and then the user permission information corresponding to the file parsing request is obtained, and the target file name is determined according to the obtained user permission information and the ISLI code. Then, all files in the file directory are parsed according to the obtained user permission information to obtain the target open file and the target permission file corresponding to the target file name. Finally, the ISLI-related metadata in the parsed target open file and the target metadata in the target permission file are output. The present invention solves the problem of high-concurrency parsing of massive metadata files by obtaining files corresponding to user permissions and outputting metadata in files corresponding to user permissions. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the hardware structure of an implementation of an ISLI metadata file parsing device provided in an embodiment of the present invention;

[0034] Figure 2 This is a flow chart of the first embodiment of the ISLI metadata file parsing method of the present invention;

[0035] Figure 3 This is a flow chart of a second embodiment of the ISLI metadata file parsing method of the present invention;

[0036] Figure 4 Schematic diagram of functional modules of an embodiment of an ISLI metadata file parsing device of the present invention.

[0037] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0039] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0040] The ISLI metadata file parsing terminal (also called terminal, device or terminal device) of the embodiment of the present invention can be a PC, or a device with ISLI metadata file parsing function such as a smart phone.

[0041] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0042] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0043] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0044] like Figure 1 As shown, the memory 1005 as a readable storage medium may include an operating system, a network communication module, a user interface module, and an ISLI metadata file parsing program.

[0045] exist Figure 1In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the ISLI metadata file parsing program stored in the memory 1005. When the ISLI metadata file parsing program is executed by the processor, the operations in the ISLI metadata file parsing method provided in the following embodiment are implemented.

[0046] Based on the above-mentioned device hardware structure, an embodiment of the ISLI metadata file parsing method of the present invention is proposed.

[0047] Reference Figure 2 In a first embodiment of the ISLI metadata file parsing method of the present invention, the ISLI metadata file parsing method includes:

[0048] Step S10: when a file parsing request is received, an ISLI code corresponding to the file parsing request is obtained, and a file directory is determined according to the ISLI code.

[0049] The ISLI metadata file parsing method in this embodiment is applied to an ISLI metadata file parsing device, wherein the ISLI metadata file parsing device can be a PC or a device with an ISLI metadata file parsing function, such as a smart phone.

[0050] It can be seen that the ISLI code in this embodiment is uniformly managed by the China ISLI Registration Center. The news and publishing units first need to register with the China ISLI Registration Center. After successful registration, they can upload the publication related information. After the China ISLI Registration Center reviews and approves it, it will allocate the ISLI code to the news and publishing units that apply for the ISLI code. The news and publishing units then use the embedded coding tool to convert the ISLI code into a visually recognizable icon. Users can scan this icon using a terminal with relevant applications installed to obtain metadata associated with the ISLI code. There are many ISLI codes that a news and publishing unit can apply for for a single publication, including an ISLI code. The SLI standard identification code and several ISLI standard codes, and the files stored in the metadata associated with these ISLI codes are all in the same file directory, that is, the file directory in the present application. When the user uses the terminal to scan the recognizable icon converted from the ISLI code embedded in the publication, the ISLI metadata file parsing program receives the file parsing request, and then obtains the invisible ISLI code under the recognizable icon, that is, obtains the ISLI code corresponding to the file parsing request, obtains the ISLI code, and then determines the file directory based on the ISLI code. Determining the file directory in this embodiment includes determining the name of the file directory and the storage path of the file directory.

[0051] Step S20, obtaining user authority information corresponding to the file parsing request, and determining a target file name according to the user authority information and the ISLI code.

[0052] When a user uses a terminal to scan a recognizable icon converted from the ISLI code embedded in a publication, the ISLI metadata file parsing program will also obtain the user's permission information, i.e., the user permission information in this embodiment. It can be known that the news publishing unit responsible for the publication will impose permission restrictions on the ISLI metadata files in the file directory, i.e., users with different permission levels can obtain different ISLI metadata files (corresponding to the ISLI code) by scanning the recognizable icon converted from the ISLI code embedded in the publication. Therefore, the user permission information corresponding to the file parsing request can be obtained, and then the name of the file that the user can obtain can be determined based on the user permission information and the ISLI code, i.e., the target file name in this embodiment.

[0053] Step S30, parsing all the files in the file directory according to the user authority information to obtain the target open file and the target authority file corresponding to the target file name.

[0054] It can be known that when a user uses a terminal to scan a recognizable icon converted from ISLI encoding embedded in a publication, the ISLI metadata file parsing program will also obtain the user's permission information. After obtaining the user's permission information, the ISLI metadata file parsing program will determine the files in the file directory that can be parsed for the user to obtain based on the user's permission information. Specifically, the ISLI metadata file parsing program will parse all the files in the file directory to determine the files that the user can obtain. This embodiment provides a specific application scenario to explain the file parsing process. Multiple files are stored in the file directory, including open files that can be obtained by all users (i.e., the target open files in this embodiment), files that store symmetric keys, and permission files that store different SLI metadata. Among them, the symmetric keys stored in the file storing the symmetric keys (key file) include the symmetric keys required to obtain the permission files and the symmetric keys for obtaining the data in the files. The permissions in this embodiment can be divided into four levels. Assuming that the user's permission level is level two, the files in the file directory that the user can obtain include the target open files. By obtaining the symmetric keys required to obtain the permission files in the key file, the user can also obtain the level two permission files (i.e., the target permission files in this embodiment).

[0055] Step S40, outputting the ISLI-related metadata in the target open file and the target metadata in the target rights file.

[0056] It can be known that after obtaining the target open file and the target permission file, the ISLI metadata file parsing program obtains the symmetric key required to obtain the data in the file in the key file, parses the target open file and the target permission file, and obtains the ISLI associated metadata in the target open file and the target metadata in the target permission file. This embodiment provides a specific application scenario. The user scans the ISLI code in a book. The ISLI code is associated with the text content of a chapter in the book and a video resource. The ISLI associated metadata corresponding to the ISLI code is the descriptive metadata of the association relationship between the associated starting point entity and the associated end point entity. The associated starting point entity is a chapter in the book, and the associated end point entity is the video resource. The target metadata includes source metadata and object metadata, wherein the source metadata is the text content of a chapter in the book, and the object metadata is the video resource. When the user scans the ISLI code in the book, the text content and video resource corresponding to the ISLI code are output on the terminal.

[0057] Specifically, the steps refined in step S10 include:

[0058] Step a1, obtaining the ISLI code corresponding to the file parsing request, performing verification calculation on a preset verification factor and the ISLI code to obtain a verification code.

[0059] Step a2: If the verification code meets the preset rules, the file directory is determined according to the ISLI code.

[0060] It can be seen that after obtaining the ISLI code, it is still necessary to verify whether the ISLI code has any errors. It can be understood that the ISLI code has a check code, which is the last digit of a complete ISLI code used to verify whether the ISLI code has any errors, and is composed of a decimal digit. The preset verification factor in this embodiment refers to a weighted digit used to verify whether the ISLI code has any errors. This embodiment provides a specific application scenario to illustrate the rules for verifying whether the ISLI code has any errors. The ISLI code is 116063-4520086293791473426443001-9, and the preset verification factor (composed of 1 and 2) is 121212-121212121212121212121212121, and the result of bitwise multiplication of the ISLI code and the preset weighting factor is 126066-4(10)200(16)64967(18)18 76446846001. Add the numbers greater than or equal to 10 in the result of the bitwise multiplication, that is, 10, 16 and 18 in the above bitwise multiplication result, add them to get 1, 7 and 9. Put these three numbers back into the result of the bitwise multiplication, add the last verification code to get 126066-4120076496791876446846001-9. Add all the above numbers, 1+2+6+0+6+6+4+1+2+0+0 +7+6+4+9+6+7+9+1+8+7+6+4+4+6+8+4+6+0+0+1+9, the sum is 140, 140 divided by 10, the remainder is 0, the remainder is 0, which proves that the ISLI encoding is correct, that is, the ISLI encoding complies with the preset rules, and the remainder is not 0, which proves that the ISLI encoding is wrong, that is, the ISLI encoding does not comply with the preset rules. When the ISLI encoding complies with the preset rules, the file directory is determined according to the ISLI encoding.

[0061] Specifically, the steps refined in step S10 include:

[0062] Step b1, generating a target hash value according to the ISLI encoding, and dividing the target hash value according to a preset number of bits to obtain a file directory.

[0063] It can be known that the code for JAVA (a computer programming language) to implement hash value conversion is "ISLI code". hashCode(). By inputting the ISLI code, the hash value converted from the ISLI code can be generated, that is, the target hash value in this embodiment. The generated target hash value needs to be divided according to the preset number of bits to obtain the file directory. This embodiment gives a specific application scenario to describe the process of obtaining the file directory. The ISLI code is 000000-000021141700635-4. The hash value generated by the ISLI code is 982023780. The preset number of bits is 3, and the file directory obtained by dividing the hash value is 982 / 023 / 780.

[0064] Specifically, the steps of step S20 include:

[0065] Step c1, obtaining the permission level corresponding to the user permission information, and combining the ISLI code, the preset identifier, the permission level and the preset suffix to obtain a target file name.

[0066] It can be seen that the naming rule of the file in this embodiment is to remove special characters from the ISLI code, and then add a preset identifier, the permission level and the preset suffix to combine them to obtain a file name. Specifically, this embodiment will combine a specific application scenario to illustrate the naming rule of the file. Assume that the ISLI code is 000000-000021141700635-4, and the ISLI code removes the special character "-" to obtain 0000000000211417006354, the preset identifier is "-", the permission levels are 0, 1, 2 and 3, and the preset suffix is ​​".xml". There are 4 file names after the combination, namely 0000000000211417006354-0.xml, 00 00000000211417006354-1.xml, 0000000000211417006354-2.xml, and 00000000000211417006354-3.xml, among which the file named 0000000000211417006354-0.xml is a public file, that is, a file that all users can obtain, and the file named 00000000000211417006354-1.xml is a file that users with level 1 authority can obtain, and the reason for presetting the suffix character as ".xml" is that xml is an effective tool for processing distributed structure information, and the file storage in this embodiment uses a distributed file system.

[0067] Specifically, the steps after step S40 include:

[0068] Step d1: Filter out the first associated metadata in the ISLI associated metadata and the first metadata in the target metadata according to a preset LRU algorithm.

[0069] Step d2: invalidate the first associated metadata and the first metadata.

[0070] It can be seen that the ISLI metadata file parsing method in this embodiment also uses a cache elimination mechanism, and the central idea of ​​the cache elimination mechanism is to invalidate the data that has not been queried and used for the longest time. In this embodiment, by parsing the target open file and the target permission file, and the user obtains the ISLI associated metadata in the target open file, and the target metadata in the target permission file, the data that has not been queried and used for the longest time in the cache (that is, the first metadata and the first associated metadata in this embodiment) are determined, and then the data is invalidated. Specifically, through the preset LRU (Least Recently Used) algorithm, the first associated metadata that has not been queried and used for the longest time in the ISLI associated metadata and the first metadata that has not been queried and used for the longest time in the target metadata are screened out, and then the screened out first associated metadata and first metadata are invalidated.

[0071] In this embodiment, when the ISLI metadata file parsing program receives a file parsing request, it obtains the ISLI code corresponding to the file parsing request, and after obtaining the ISLI code, determines the file directory based on the ISLI code, and then obtains the user permission information corresponding to the file parsing request, and determines the target file name based on the obtained user permission information and the ISLI code, and then, according to the obtained user permission information, parses all the files in the file directory to obtain the target open file and the target permission file corresponding to the target file name, and finally, outputs the ISLI-associated metadata in the parsed target open file and the target metadata in the target permission file. The present invention solves the problem of high-concurrency parsing of massive metadata files by obtaining files corresponding to user permissions and outputting the metadata in files corresponding to user permissions.

[0072] Further, refer to Figure 3 Based on the above-mentioned embodiment of the present invention, a second embodiment of the ISLI metadata file parsing method of the present invention is proposed.

[0073] This embodiment is a refinement of step S30 in the first embodiment. The difference between this embodiment and the above-mentioned embodiment of the present invention is that:

[0074] Step S31, according to the user authority information, parse the key file in the file directory to obtain the target symmetric key.

[0075] Step S32, determining the target file path according to the target file name and the file directory.

[0076] Step S33, using the file parsing key in the target symmetric key, parses the metadata file in the file directory to obtain the target open file and target permission file corresponding to the target file name, wherein the target open file and the target permission file belong to the metadata file.

[0077] It can be seen that the above embodiment involves user authority levels. Therefore, in order to achieve the security of ISLI metadata and related files, when the metadata file is stored in the file directory, the metadata file storing the ISLI metadata will be encrypted. The method for encrypting the metadata file storing the ISLI metadata in this embodiment is symmetric encryption. A preset key generator can be used to create a symmetric key, and then the created symmetric key is used to encrypt the metadata file storing the ISLI metadata. The created symmetric key is stored in a key file (i.e., the key file in the file directory in this embodiment). Users with different authority levels can parse and obtain different files, and the symmetric keys required to decrypt the files are also different. According to the user authority level in the user authority information, it is determined that the user can parse and obtain the files, and then the symmetric key required to decrypt these files is determined. Finally, these symmetric keys, that is, the target symmetric keys in this embodiment, are obtained from the key file. Different files correspond to different file paths. The target file path is determined by the target file name and the file directory. Specifically, the preset server mounts the file system locally, and the mount directory is / data / isli. The target file path of the file with the target file name 0000000000211417006354-0.xml is / data / isli / 982 / 023 / 780 / 0000000000211417006354-0.xml. It can be seen that in this embodiment, the symmetric key for encrypting the metadata file is different from the symmetric key for encrypting the metadata, that is, the symmetric key for decrypting the file is different from the symmetric key for decrypting the ISLI metadata. The file parsing key in this embodiment is the symmetric key for decrypting the metadata file corresponding to the user authority.

[0078] Specifically, the steps after step S30 include:

[0079] Step e1, using the metadata parsing key in the target symmetric key, parses the metadata in the target open file and the target authority file to obtain ISLI-related metadata and target metadata.

[0080] It can be seen that the above embodiments involve user authority levels. Therefore, in order to achieve the security of metadata, the metadata will be encrypted when storing it in the target open file and the target authority file. The method for encrypting ISLI metadata in this application is symmetric encryption. A preset key generator is used to create a symmetric key, and then the created symmetric key is used to encrypt the ISLI metadata. The created symmetric key is stored in the key file. Users with different authority levels can parse and obtain different metadata, and the symmetric keys required to decrypt the metadata are also different. According to the user authority level in the user authority information, it is determined that the user can parse the metadata in the obtained file, and then, the symmetric key required to decrypt the metadata is determined, that is, the metadata parsing key in this embodiment. Finally, the metadata parsing key is obtained from the key file, and the metadata parsing key is used to parse the metadata in the target open file and the target authority file to obtain ISLI-associated metadata and target metadata.

[0081] In this embodiment, different user authority information is used to call different keys when parsing metadata and related files, thereby solving the problem of high-concurrency parsing of massive metadata files and ensuring secure parsing of metadata files.

[0082] In addition, refer to Figure 4 The embodiment of the present invention further provides an ISLI metadata file parsing device, the ISLI metadata file parsing device comprising:

[0083] An ISLI code acquisition module 10 is used to acquire the ISLI code corresponding to the file parsing request when receiving the file parsing request, and determine the file directory according to the ISLI code;

[0084] A target file name determination module 20, configured to obtain user authority information corresponding to the file parsing request, and determine a target file name according to the user authority information and the ISLI code;

[0085] The parsing module 30 is used to parse all the files in the file directory according to the user authority information to obtain the target open file and the target authority file corresponding to the target file name;

[0086] The metadata output module 40 is used to output the ISLI-related metadata in the target open file and the target metadata in the target rights file.

[0087] Optionally, the ISLI code acquisition module 10 includes:

[0088] A verification code acquisition unit, used to acquire the ISLI code corresponding to the file parsing request, and perform verification calculation on a preset verification factor and the ISLI code to obtain a verification code;

[0089] The file directory determining unit is used to determine the file directory according to the ISLI code if the verification code meets the preset rule.

[0090] Optionally, the ISLI code acquisition module 10 includes:

[0091] The file directory acquisition unit is used to generate a target hash value according to the ISLI code, and divide the target hash value according to a preset number of bits to obtain a file directory.

[0092] Optionally, the target file name determination module 20 includes:

[0093] The target file name acquisition unit is used to obtain the permission level corresponding to the user permission information, and combine the ISLI code, the preset identifier, the permission level and the preset suffix character to obtain the target file name.

[0094] Optionally, the parsing module 30 includes:

[0095] A target symmetric key acquisition unit, used to parse the key file in the file directory according to the user authority information to obtain a target symmetric key;

[0096] A target file path determination unit, used to determine the target file path according to the target file name and the file directory;

[0097] A file parsing unit is used to parse the metadata file in the file directory using the file parsing key in the target symmetric key to obtain a target open file and a target permission file corresponding to the target file name, wherein the target open file and the target permission file belong to the metadata file.

[0098] Optionally, the ISLI metadata file parsing device comprises:

[0099] The metadata parsing module is used to parse the metadata in the target open file and the target authority file using the metadata parsing key in the target symmetric key to obtain ISLI-related metadata and target metadata.

[0100] Optionally, the ISLI metadata file parsing device comprises:

[0101] A screening module, configured to screen out the first associated metadata in the ISLI associated metadata and the first metadata in the target metadata according to a preset LRU algorithm;

[0102] An invalidation processing module is used to invalidate the first associated metadata and the first metadata.

[0103] In addition, an embodiment of the present invention further proposes a readable storage medium, on which an ISLI metadata file parsing program is stored. When the ISLI metadata file parsing program is executed by a processor, the operations in the ISLI metadata file parsing method provided in the above embodiment are implemented.

[0104] The methods executed by the above-mentioned program modules can refer to the various embodiments of the method of the present invention, and will not be described in detail here.

[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects; the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0106] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment. The device embodiment described above is only illustrative, and the units described as separate components may or may not be physically separated. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the present invention. Those of ordinary skill in the art can understand and implement it without paying creative work.

[0107] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the ISLI metadata file parsing method described in each embodiment of the present invention.

[0109] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for parsing ISLI metadata files, characterized in that: The ISLI metadata file parsing method comprises the following steps: When a file parsing request is received, an ISLI code corresponding to the file parsing request is obtained, and a file directory is determined according to the ISLI code, wherein the file directory includes at least a plurality of metadata files and a plurality of key files, and the plurality of metadata files are obtained by encrypting the ISLI metadata files using a pre-created symmetric key; Obtaining user authority information corresponding to the file parsing request, and determining a target file name according to the user authority information and the ISLI code; According to the user authority information, all files in the file directory are parsed to obtain a target open file and a target authority file corresponding to the target file name; The step of parsing all the files in the file directory according to the user authority information to obtain the target open file and the target authority file corresponding to the target file name includes: According to the user authority information, determine the metadata file that can be parsed at the corresponding authority level in the file directory, and parse the key file in the file directory to obtain the target symmetric key; Determine the target file path according to the target file name and the file directory; Using the file parsing key in the target symmetric key, the metadata file that can be parsed at the corresponding permission level in the file directory is parsed to obtain the target open file and the target permission file corresponding to the target file name, wherein the target open file and the target permission file belong to the metadata file; Wherein, after the step of parsing all the files in the file directory according to the user authority information to obtain the target open file and the target authority file corresponding to the target file name, the following steps are included: Using the metadata parsing key in the target symmetric key, the metadata in the target open file and the target authority file are parsed to obtain ISLI-related metadata and target metadata; The ISLI-associated metadata in the target open file and the target metadata in the target rights file are output.

2. The ISLI metadata file parsing method according to claim 1, characterized in that: The step of obtaining the ISLI code corresponding to the file parsing request and determining the file directory according to the ISLI code when receiving the file parsing request comprises: Obtaining the ISLI code corresponding to the file parsing request, performing verification calculation on a preset verification factor and the ISLI code to obtain a verification code; If the verification code meets the preset rules, the file directory is determined according to the ISLI code.

3. The ISLI metadata file parsing method according to claim 1, characterized in that: The step of determining the file directory according to the ISLI code comprises: A target hash value is generated according to the ISLI encoding, and the target hash value is divided according to a preset number of bits to obtain a file directory.

4. The ISLI metadata file parsing method according to claim 1, characterized in that: The step of determining the target file name according to the user authority information and the ISLI code comprises: The permission level corresponding to the user permission information is obtained, and the ISLI code, the preset identifier, the permission level and the preset suffix are combined to obtain a target file name.

5. The ISLI metadata file parsing method according to claim 1, characterized in that: After the step of outputting the ISLI associated metadata in the target open file and the target metadata in the target rights file, the method further comprises: According to a preset LRU algorithm, filter out the first associated metadata in the ISLI associated metadata and the first metadata in the target metadata; The first associated metadata and the first metadata are invalidated.

6. An ISLI metadata file parsing device, characterized in that: The ISLI metadata file parsing device comprises: An ISLI code acquisition module is used to, when receiving a file parsing request, acquire the ISLI code corresponding to the file parsing request, and determine a file directory according to the ISLI code, wherein the file directory includes at least a plurality of metadata files and a plurality of key files, and the plurality of metadata files are obtained by encrypting the ISLI metadata file by using a pre-created symmetric key; A target file name determination module, used to obtain user authority information corresponding to the file parsing request, and determine the target file name according to the user authority information and the ISLI code; A parsing module, used to parse all files in the file directory according to the user authority information, and obtain a target open file and a target authority file corresponding to the target file name; Wherein, the parsing module is also used for: According to the user authority information, determine the metadata file that can be parsed at the corresponding authority level in the file directory, and parse the key file in the file directory to obtain the target symmetric key; Determine the target file path according to the target file name and the file directory; Using the file parsing key in the target symmetric key, the metadata file that can be parsed at the corresponding permission level in the file directory is parsed to obtain the target open file and the target permission file corresponding to the target file name, wherein the target open file and the target permission file belong to the metadata file; Wherein, the parsing module is also used for: Using the metadata parsing key in the target symmetric key, the metadata in the target open file and the target authority file are parsed to obtain ISLI-related metadata and target metadata; The metadata output module is used to output the ISLI-related metadata in the target open file and the target metadata in the target permission file.

7. An ISLI metadata file parsing device, characterized in that: The ISLI metadata file parsing device includes: a memory, a processor, and an ISLI metadata file parsing program stored in the memory and executable on the processor. When the ISLI metadata file parsing program is executed by the processor, the steps of the ISLI metadata file parsing method as described in any one of claims 1 to 5 are implemented.

8. A readable storage medium, characterized in that: The readable storage medium stores an ISLI metadata file parsing program, and when the ISLI metadata file parsing program is executed by the processor, the steps of the ISLI metadata file parsing method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Data storage method and device, storage medium and electronic device

    CN110275861A

  • Method and device for generating associated data in publication, equipment and storage medium

    CN110941616A