CN108459928B - Related data association visualization method, terminal device and storage medium - Google Patents

Related data association visualization method, terminal device and storage medium Download PDF

Info

Publication number
CN108459928B
CN108459928B CN201810202884.7A CN201810202884A CN108459928B CN 108459928 B CN108459928 B CN 108459928B CN 201810202884 A CN201810202884 A CN 201810202884A CN 108459928 B CN108459928 B CN 108459928B
Authority
CN
China
Prior art keywords
type
file
files
content
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810202884.7A
Other languages
Chinese (zh)
Other versions
CN108459928A (en
Inventor
陈良彬
吴鸿伟
周成祖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN201810202884.7A priority Critical patent/CN108459928B/en
Publication of CN108459928A publication Critical patent/CN108459928A/en
Application granted granted Critical
Publication of CN108459928B publication Critical patent/CN108459928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results

Abstract

The invention relates to a related data association visualization method, a terminal device and a storage medium, wherein the method comprises the following steps of S1: scanning and analyzing files under a directory where files to be displayed on second equipment are located, finding out first type files and second type files in the files to be displayed, and storing relevant information of the first type files and the second type files into a database; s2: and the display device reads the file content corresponding to the software type from the database according to the software type corresponding to the file to be displayed. According to the invention, the data and the path information of the path where the data is located are analyzed, the characteristic information is extracted, and the separated related data or related data with unknown direction are associated together, so that the data which cannot be corresponding after being copied are associated together for visual display.

Description

Related data association visualization method, terminal device and storage medium
Technical Field
The present invention relates to a visual display of related data, and in particular, to a related data association visualization method, a terminal device, and a storage medium.
Background
With the development of science and technology, chat software contact using a mobile phone has gradually developed to become a mainstream, and then chat records stored in the mobile phone become more and more, and are limited by the limit of the capacity of the mobile phone, so that the previous chat records have to be deleted, and when the previous chat records containing important information are searched for again, the previous chat records are searched for, so that the previous chat records are often searched for, and therefore, it is particularly important to store some chat records in other devices, and when the chat records are opened in other devices, due to the change of directory addresses of files, the information such as pictures and videos cannot be directly displayed, and only related data can be skipped to through links, or related data is associated through a method of finding related data by indicating specific paths, so that the difficulty in viewing the chat records is increased.
Disclosure of Invention
In order to solve the above problems, the present invention discloses a method for associating and visualizing related data, a terminal device, and a storage medium, wherein data that cannot be associated after being copied are associated together for visualization display.
The specific scheme is as follows:
a related data association visualization method is used for processing after a file is copied to a second device through a first device, and comprises the following steps:
s1: scanning and analyzing files under a directory where files to be displayed on second equipment are located, finding out first type files and second type files in the files to be displayed, and storing relevant information of the first type files and the second type files into a database;
the content of the first type file comprises path information of a second type file in first equipment, and the content of the second type file is the content of a file to be displayed;
the related information comprises a software type, a file name, a first type of file content and a second type of file content;
s2: and reading the file content corresponding to the software type from the database for display according to the software type corresponding to the file to be displayed.
Further, step S1 specifically includes:
s11: scanning and analyzing files under a directory where files to be displayed on the second device are located, judging the software type of the first type files according to the path information of the first type files when the first type files are scanned, judging whether the first type files contain information of related files corresponding to the first type files, and if so, entering S12, otherwise, entering S13;
the method for judging whether the first type file contains the information of the related file corresponding to the first type file comprises the following steps: judging by the fact that the first type file contains path information and a file name suffix, judging that related files exist if the path information and the file name suffix are contained, and judging that no related files exist if the path information and the file name suffix are not contained;
s12: extracting information of the file type and the file name of the corresponding related file, storing the software type, the file name and the content of the first type file into the corresponding positions of the software type, the file name and the content of the first type file in a database, and entering S14;
s13: storing the software type and the content of the first type file into the corresponding position of the software type and the content of the first type file in the database, wherein the content of the corresponding position of the file type and the file name is empty, and entering S14;
s14: deleting the first type file, judging whether the scanning of the files in the directory is finished, if so, entering S15, otherwise, returning to S11;
s15: scanning and analyzing files under a directory where files to be displayed on second equipment are located, judging the software type and the file type of the second type files according to path information where the second type files are located when the second type files are scanned, extracting file names of the second type files, and searching whether corresponding contents exist in a database under the conditions that the software type, the file type and the file names are used as searching conditions, if so, entering S16, otherwise, entering S17;
s16: storing the content of the second type file into the position corresponding to the content of the second type file in the database, and entering S18;
s17: judging whether the second type file has been scanned twice, if so, entering S18, otherwise, returning to S15;
s18: deleting the second type file, judging whether the scanning of the files in the directory is completed, if so, entering S2, otherwise, returning to S15.
Related data association visualization terminal device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method of an embodiment of the present invention when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method according to an embodiment of the invention.
According to the technical scheme, the data and the path information of the path where the data are located are analyzed, the characteristic information is extracted, the separated related data or related data with unknown direction are associated together, the associated visual display of the related data is realized, and the visual effect is improved.
Drawings
Fig. 1 is a schematic diagram illustrating a first step of the embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating a specific step of step S1 according to a first embodiment of the present invention.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures.
The invention will now be further described with reference to the accompanying drawings and detailed description.
The first embodiment is as follows:
an embodiment of the present invention provides an association visualization method for related data, as shown in fig. 1, which is a schematic flow chart of the association visualization method for related data according to the embodiment of the present invention, and is used for processing a file to be displayed after the file is copied to a second device through a first device.
The file to be displayed is generated by the first device and comprises two types of files, namely a first type of file and a second type of file, the content of the first type of file comprises path information of the second type of file in the file to be displayed generating device, the content of the second type of file is the content of the file to be displayed, the type of the file can be text, picture, video, voice and the like, and when the file to be displayed is stored in the second device, the corresponding relation between the first type of file and the second type of file is changed due to the change of directory addresses corresponding to the first type of file and the second type of file.
In this embodiment, the first device is a mobile phone, the second device is a computer, and the file to be displayed is a chat log file of WeChat.
The method comprises the following steps:
s1: and scanning and analyzing the files under the directory where the files to be displayed on the second equipment are located, searching out the first type files and the second type files in the files to be displayed, and storing the related information of the first type files and the second type files into a database.
The related information comprises software type, file name, first type file content and second type file content.
As shown in fig. 2, the method specifically includes the following steps:
s11: and scanning and analyzing files in the directory on the second device, judging the software type of the first type file according to the path information of the first type file when the first type file is scanned, judging whether the first type file contains information of a related file corresponding to the first type file, and if so, entering S12, otherwise, entering S13.
The software type, such as microblog, panning, wechat, QQ, etc., can be judged by the characteristic field in the path information, the characteristic field is set according to the actual situation of each software, and the characteristic field may be changed when the software version is updated.
The method for judging whether the first type file contains the information of the related file corresponding to the first type file comprises the following steps: the first type file contains path information and a file name suffix for judgment, and the path information is similar: jpg, if contained, it is determined that there is a related file, and if not, it is determined that there is no related file.
S12: and extracting the information of the file type and the file name of the related file, storing the software type, the file name and the content of the first type file into the corresponding positions of the software type, the file name and the content of the first type file in the database, and entering S14.
The method for judging the file type comprises the following steps: the file type is judged by a filename suffix, for example: judging that the file type is a picture when the suffix of the file name is jpg, bmp and the like; when the suffix of the file name is amr, wav and the like, judging that the file type is audio; when the suffix of the file name is mp4, avi, etc., the file type is judged as video.
S13: the location corresponding to the software type and the first type file content, where the software type and the first type file content are stored in the database, and the location corresponding to the file type and the file name are empty, and the process proceeds to S14.
S14: deleting the first type file or moving the first type file to the backup directory to prevent repeated scanning all the time, judging whether the scanning of the files in the directory is completed, if so, entering S15, otherwise, returning to S11.
S15: and scanning and analyzing the files in the directory on the second device, judging the software type and the file type of the second type file according to the path information of the second type file when the second type file is scanned, extracting the file name of the second type file, and searching whether corresponding content exists in the database under the conditions of the software type, the file type and the file name, if so, entering S16, otherwise, entering S17.
S16: the contents of the second-type file are stored in the database at the position corresponding to the contents of the second-type file, and the process proceeds to S18.
S17: it is judged whether the second type file has been scanned twice, and if so, it proceeds to S18, otherwise, it returns to S15.
S18: deleting the second type file or moving the second type file to the backup directory to prevent repeated scanning all the time, judging whether the scanning of the files in the directory is completed, if so, entering S2, otherwise, returning to S15.
S2: and reading the file content corresponding to the software type from the database for displaying by the display device according to the software type corresponding to the file to be displayed, wherein the display device is a xxx of the second equipment.
In this embodiment, the file to be displayed that needs to be displayed is a chat record of WeChat, so the software type is WeChat.
The embodiment analyzes the data and the path information of the path where the data is located, extracts the characteristic information, and associates the separated related data or related data with unknown direction, so that the related data can be conveniently associated and visualized, and the visualization effect is improved.
Example two:
the invention further provides related data association visualization terminal equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the first method embodiment of the invention.
Further, as an executable scheme, the related data association visualization terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, and other computing devices. The related data association visualization terminal device can include, but is not limited to, a processor and a memory. It is understood by those skilled in the art that the above-mentioned composition structure of the related data association visualization terminal device is only an example of the related data association visualization terminal device, and does not constitute a limitation on the related data association visualization terminal device, and may include more or less components than the above, or combine some components, or different components, for example, the related data association visualization terminal device may further include an input and output device, a network access device, a bus, and the like, which is not limited by the embodiment of the present invention.
Further, as an executable solution, the processor may be a Central Processing Unit (CPU), or may be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and so on. The general processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the related data related visualization terminal device, and various interfaces and lines are used to connect various parts of the whole related data related visualization terminal device.
The memory can be used for storing the computer program and/or the module, and the processor realizes various functions of the related data associated visualization terminal device by running or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (Fnash Card), at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of an embodiment of the invention.
The related data association visualization terminal device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-only Memory (ROM), Random Access Memory (RAM), software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is appropriately increased or decreased as required by legislation and patent practice in the jurisdiction.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. A related data association visualization method is used for processing after a file is copied to a second device through a first device, and is characterized by comprising the following steps:
s1: scanning and analyzing files under a directory where files to be displayed on second equipment are located, finding out first type files and second type files in the files to be displayed, and storing relevant information of the first type files and the second type files into a database;
the content of the first type file comprises path information of a second type file in first equipment, and the content of the second type file is the content of a file to be displayed;
the related information comprises a software type, a file name, a first type of file content and a second type of file content; the software type is judged according to the path information of the first type file or the second type file;
s2: and reading the file content corresponding to the software type from the database for display according to the software type corresponding to the file to be displayed.
2. The method for visualization of correlation data according to claim 1, wherein: step S1 specifically includes:
s11: scanning and analyzing files under a directory where files to be displayed on the second device are located, judging the software type of the first type files according to the path information of the first type files when the first type files are scanned, judging whether the first type files contain information of related files corresponding to the first type files, and if so, entering S12, otherwise, entering S13;
the method for judging whether the first type file contains the information of the related file corresponding to the first type file comprises the following steps: judging by the fact that the first type file contains path information and a file name suffix, judging that related files exist if the path information and the file name suffix are contained, and judging that no related files exist if the path information and the file name suffix are not contained;
s12: extracting information of the file type and the file name of the corresponding related file, storing the software type, the file name and the content of the first type file into the corresponding positions of the software type, the file name and the content of the first type file in a database, and entering S14;
s13: storing the software type and the content of the first type file into the corresponding position of the software type and the content of the first type file in the database, wherein the content of the corresponding position of the file type and the file name is empty, and entering S14;
s14: deleting the first type file, judging whether the scanning of the files in the directory is finished, if so, entering S15, otherwise, returning to S11;
s15: scanning and analyzing files under a directory where files to be displayed on second equipment are located, judging the software type and the file type of the second type files according to path information where the second type files are located when the second type files are scanned, extracting file names of the second type files, and searching whether corresponding contents exist in a database under the conditions that the software type, the file type and the file names are used as searching conditions, if so, entering S16, otherwise, entering S17;
s16: storing the content of the second type file into the position corresponding to the content of the second type file in the database, and entering S18;
s17: judging whether the second type file has been scanned twice, if so, entering S18, otherwise, returning to S15;
s18: deleting the second type file, judging whether the scanning of the files in the directory is completed, if so, entering S2, otherwise, returning to S15.
3. Related data association visualization terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to claims 1-2 when executing the computer program.
4. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to claims 1-2.
CN201810202884.7A 2018-03-13 2018-03-13 Related data association visualization method, terminal device and storage medium Active CN108459928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810202884.7A CN108459928B (en) 2018-03-13 2018-03-13 Related data association visualization method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810202884.7A CN108459928B (en) 2018-03-13 2018-03-13 Related data association visualization method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN108459928A CN108459928A (en) 2018-08-28
CN108459928B true CN108459928B (en) 2020-09-11

Family

ID=63219915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810202884.7A Active CN108459928B (en) 2018-03-13 2018-03-13 Related data association visualization method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN108459928B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621481A (en) * 2008-06-30 2010-01-06 国际商业机器公司 Apparatus and method for keeping corresponding relation between chat logs and chat contents
CN102609333A (en) * 2011-11-25 2012-07-25 无锡华御信息技术有限公司 System and method for ensuring file backup integrity in encrypted environment
CN104866322A (en) * 2015-06-10 2015-08-26 联想(北京)有限公司 Data information transmission display method and electronic equipment
CN105630932A (en) * 2015-12-22 2016-06-01 北京奇虎科技有限公司 Method and device for managing files of intelligent terminals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5486793B2 (en) * 2008-11-07 2014-05-07 株式会社日立製作所 Remote copy management system, method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621481A (en) * 2008-06-30 2010-01-06 国际商业机器公司 Apparatus and method for keeping corresponding relation between chat logs and chat contents
CN102609333A (en) * 2011-11-25 2012-07-25 无锡华御信息技术有限公司 System and method for ensuring file backup integrity in encrypted environment
CN104866322A (en) * 2015-06-10 2015-08-26 联想(北京)有限公司 Data information transmission display method and electronic equipment
CN105630932A (en) * 2015-12-22 2016-06-01 北京奇虎科技有限公司 Method and device for managing files of intelligent terminals

Also Published As

Publication number Publication date
CN108459928A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
KR102124231B1 (en) Streaming content and placeholders
US20180232438A1 (en) Title display method and apparatus
US10191838B2 (en) Method and device for checking influence of deleting cache file, and mobile terminal
KR20160003682A (en) Hydration and dehydration with placeholders
EP3090431A1 (en) Audio based on captured image data
CN105824830B (en) Method, client and equipment for displaying page
US9588952B2 (en) Collaboratively reconstituting tables
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
CN112559913B (en) Data processing method, device, computing equipment and readable storage medium
CN110569218A (en) offline modification method and device for EXT file system and storage medium
CN105765570A (en) Music identification
CN108616603B (en) Method and system for synchronizing internal and external network data
CN108459928B (en) Related data association visualization method, terminal device and storage medium
US20200057779A1 (en) Electronic device and digital content managing method
CN111753141A (en) Data management method and related equipment
CN111651531B (en) Data importing method, device, equipment and computer storage medium
CN110083576B (en) Cache directory identification method and device
CN107749892B (en) Network reading method and device for conference record, intelligent tablet and storage medium
US20160314509A1 (en) Audio uploading and sharing service
CN114297236A (en) Data blood relationship analysis method, terminal equipment and storage medium
CN110888839A (en) Data storage and data search method and device
CN111209075A (en) Multi-language interface maintenance method, system, storage medium and intelligent device
CN111753177A (en) Personalized recommendation method and device and computer storage medium
CN110909107B (en) Method, equipment and storage medium for presenting map based on Zeppelin
CN108595715B (en) File marking and arrangement analysis method, terminal equipment and storage medium

Legal Events

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