CN112153142B - Data interaction method and device - Google Patents

Data interaction method and device Download PDF

Info

Publication number
CN112153142B
CN112153142B CN202011014534.1A CN202011014534A CN112153142B CN 112153142 B CN112153142 B CN 112153142B CN 202011014534 A CN202011014534 A CN 202011014534A CN 112153142 B CN112153142 B CN 112153142B
Authority
CN
China
Prior art keywords
data
uploaded
map
server
client
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
CN202011014534.1A
Other languages
Chinese (zh)
Other versions
CN112153142A (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.)
Schneider Electric China Co Ltd
Original Assignee
Schneider Electric China 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 Schneider Electric China Co Ltd filed Critical Schneider Electric China Co Ltd
Priority to CN202011014534.1A priority Critical patent/CN112153142B/en
Publication of CN112153142A publication Critical patent/CN112153142A/en
Application granted granted Critical
Publication of CN112153142B publication Critical patent/CN112153142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • 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/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • 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/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Animal Behavior & Ethology (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data interaction method and a data interaction device, wherein the method comprises the following steps: generating a corresponding thinking map according to the knowledge map read from the map database, and displaying the thinking map; the mind map includes a plurality of nodes and edges connecting the nodes; drawing a newly added node and a corresponding edge corresponding to the data asset to be uploaded in a thinking guide graph; sending the attribute of the newly added node and the attribute of the newly added edge to a server to enable the server to update the knowledge graph; and sending the ciphertext data of the data asset to be uploaded, the corresponding key, the description information of the data asset to be uploaded and the thinking diagram to a server. According to the scheme, the corresponding mind map is generated and displayed according to the knowledge map, the user is supported to browse and update the knowledge map through the mind map, the user can visually see the relation among all entities in the knowledge map, and the user experience in the data interaction process is improved.

Description

Data interaction method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data interaction method and apparatus.
Background
Knowledge graph is a data storage technology commonly used at present, in a database applying the knowledge graph technology, data is stored in the form of a plurality of triples, and each triplet includes two entities and an entity relationship for describing the correlation between the two entities. When data is retrieved from a database applying knowledge graph technology, a target entity containing a keyword can be retrieved according to the keyword provided by a user, and an associated entity related to the target entity can be retrieved according to the entity relationship between every two entities in a triple, so that richer retrieval results are provided.
At present, when a client displays a retrieval result obtained by retrieval from a knowledge graph, the retrieval result is simply listed in a list form, a user is difficult to visually find the relationship among a plurality of entities when browsing the retrieval result, and is also difficult to find the relation between added data and original data of a database when adding data to the database, so that the user experience is poor.
Disclosure of Invention
Based on the defects of the prior art, the application provides a data interaction method and device, and user experience of a data interaction process of a client and a database is improved by combining a knowledge graph and a thought graph.
The first aspect of the present application provides a data interaction method, which is applied to a client, and the method includes:
generating a corresponding mind map according to a knowledge map read from a map database connected with a server, and displaying the mind map; wherein the mind map includes a plurality of nodes and edges for connecting the nodes;
in response to a data uploading instruction of a user, drawing a newly added node corresponding to a data asset to be uploaded and an edge connected with the newly added node in the thinking graph; sending the attribute of the newly added node and the attribute of the edge connected with the newly added node to the server so as to trigger the server to update the knowledge graph;
encrypting the text data of the data asset to be uploaded by using a proxy re-encryption technology to obtain ciphertext data of the data asset to be uploaded;
and sending the ciphertext data, the key corresponding to the ciphertext data, the description information of the data asset to be uploaded and the mind map to the server.
Optionally, the method further includes:
reading the description information of a target data asset from a distributed file system through the server in response to a click instruction of a user on any one node in the thinking map, and displaying the description information of the target data asset; and the target data asset refers to the data asset corresponding to the clicked node.
Optionally, after the displaying the description information of the target data asset, the method further includes:
sending an authorization request for body data of the target data asset to the server;
and after the server passes the authority request, downloading the ciphertext data of the target data asset from a ciphertext database connected with the server, and decrypting the ciphertext data of the target data asset according to an agent re-encryption technology to obtain the text data of the target data asset.
Optionally, the client is a computing node in a blockchain network;
wherein the method further comprises:
in response to a data transaction instruction of a user, broadcasting data transaction information to each computing node in the blockchain network to trigger the computing nodes in the blockchain network to package the data transaction information into a blockchain of the blockchain network; the data transaction information at least comprises a hash abstract of the data asset to be transacted, transaction time and a user label of a user participating in transaction.
Optionally, the knowledge-graph includes a plurality of triples, each of the triples including two entities and an entity relationship between the two entities;
wherein, the method for generating a corresponding thinking map according to the knowledge map read from the map database connected with the server comprises the following steps:
aiming at each entity contained in the knowledge graph, drawing a node corresponding to the entity;
and aiming at every two nodes, if an entity relationship exists between two entities corresponding to the two nodes, drawing edges connecting the two nodes so as to obtain a thinking graph corresponding to the knowledge graph.
The second aspect of the present application provides a data interaction method, which is applied to a server, and the method includes:
responding to a data reading request of a client, and sending a knowledge graph in a graph database to the client to trigger the client to display a thinking guide graph corresponding to the knowledge graph; wherein the knowledge-graph comprises a plurality of triples, each of the triples comprising two entities and an entity relationship of the two entities;
adding an entity corresponding to the data asset to be uploaded and at least one triple including the entity corresponding to the data asset to be uploaded in the knowledge graph according to the attribute of the newly added node corresponding to the data asset to be uploaded and the attribute of the edge connecting the newly added node, which are sent by the client;
receiving and storing a mind map which is sent by the client and comprises the newly added node and an edge connected with the newly added node, ciphertext data of the data asset to be uploaded, a key corresponding to the ciphertext data and description information of the data asset to be uploaded; and the client side obtains the text data of the data asset to be uploaded according to the proxy re-encryption technology.
Optionally, the receiving and storing the mind map sent by the client and including the new node and the edge connected to the new node, the ciphertext data of the data asset to be uploaded, the key corresponding to the ciphertext data and the description information of the data asset to be uploaded includes:
storing the mind map sent by the client in a map database;
storing the description information of the data assets to be uploaded in a distributed file system connected with the server;
and storing the key corresponding to the ciphertext data and the ciphertext data in a ciphertext database.
A third aspect of the present application provides a data interaction apparatus, applied to a client, the apparatus including:
the system comprises a generating unit, a display unit and a display unit, wherein the generating unit is used for generating a corresponding thinking map according to a knowledge map read from a map database connected with a server and displaying the thinking map; wherein the mind map includes a plurality of nodes and edges for connecting the nodes;
the drawing unit is used for responding to a data uploading instruction of a user, and drawing a newly added node corresponding to a data asset to be uploaded and an edge connected with the newly added node in the thinking map; sending the attribute of the newly added node and the attribute of the edge connected with the newly added node to the server so as to trigger the server to update the knowledge graph;
the encryption unit is used for encrypting the text data of the data asset to be uploaded by using a proxy re-encryption technology to obtain ciphertext data of the data asset to be uploaded;
and the sending unit is used for sending the ciphertext data, the key corresponding to the ciphertext data, the description information of the data asset to be uploaded and the thinking guide graph to the server.
A fourth aspect of the present application provides a data interaction apparatus, which is applied to a server, the apparatus includes:
the sending unit is used for responding to a data reading request of a client and sending the knowledge graph in the graph database to the client so as to trigger the client to display a thinking guide graph corresponding to the knowledge graph; wherein the knowledge-graph comprises a plurality of triples, each of the triples comprising two entities and an entity relationship of the two entities;
the updating unit is used for adding an entity corresponding to the data asset to be uploaded and at least one triple including the entity corresponding to the data asset to be uploaded in the knowledge graph according to the attribute of the newly added node corresponding to the data asset to be uploaded and the attribute of the edge connected with the newly added node sent by the client;
the storage unit is used for receiving and storing the mind map which is sent by the client and comprises the newly added node and the edge connected with the newly added node, the ciphertext data of the data asset to be uploaded, the key corresponding to the ciphertext data and the description information of the data asset to be uploaded; and the client side obtains the text data of the data asset to be uploaded according to the proxy re-encryption technology.
The application provides a data interaction method and a data interaction device, wherein the method comprises the following steps: generating a corresponding thinking map according to the knowledge map read from the map database, and displaying the thinking map; the mind map includes a plurality of nodes and edges connecting the nodes; drawing a newly added node and a corresponding edge corresponding to the data asset to be uploaded in a thinking guide graph; sending the attribute of the newly added node and the attribute of the newly added edge to a server to enable the server to update the knowledge graph; and sending the ciphertext data of the data asset to be uploaded, the corresponding key, the description information of the data asset to be uploaded and the thinking diagram to a server. According to the scheme, the corresponding thinking map is generated and displayed according to the knowledge map, the browsing and updating of the knowledge map through the thinking map are supported, so that a user can visually see the relation among various entities in the knowledge map, and the user experience in the data interaction process is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a data interaction method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a data interaction apparatus applied to a client according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a data interaction device applied to a server according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present application provides a data interaction method, which may include the following steps:
s101, the client sends a data reading request to the server.
The data reading request can be generated by the client and sent to the server after the user performs corresponding operation on the client.
For example, a user may input one or more search keywords at a client, and the client then generates a data reading request containing the search keywords to a server, thereby requesting data containing the search keywords and data related to the data containing the search keywords from the server.
S102, the server sends the knowledge graph matched with the data reading request to the client.
As described above, the knowledge-graph may be understood as several triples consisting of entities and entity relationships, and thus the knowledge-graph sent in step S102 matching the data reading request may be understood as a plurality of triples matching the data reading request sent to the client.
The triples matching the data read request may be understood as triples including at least one of the following entities:
firstly, the data corresponding to the entity directly contains search keywords carried by a data reading request;
second, there is an entity relationship between the entity and the previous entity, in other words, there is at least one triple in the knowledge-graph that contains both the entity and the previous entity.
Alternatively, all knowledge maps may be stored in a map database connected to a server.
S103, the client generates a corresponding mind map according to the knowledge graph and displays the mind map.
The thought graph comprises a plurality of nodes and a plurality of edges for connecting the nodes, wherein each node corresponds to one entity of the knowledge graph, and for every two entities with entity relationship, the corresponding two nodes are connected through the edge, that is, each edge in the thought graph corresponds to one entity relationship in the knowledge graph.
Optionally, the knowledge graph may include a plurality of different entity relationships, and correspondingly, the sides of the thought-guide graph corresponding to the different types of entity relationships may be displayed in different manners, for example, if the corresponding entity relationships are different, the colors of the sides are also different, so that the user may conveniently distinguish the different types of entity relationships according to the colors of the sides when browsing the thought-guide graph.
And S104, drawing the newly added nodes corresponding to the data assets to be uploaded and the edges connecting the newly added nodes by the client.
Step S104 is an operation performed with respect to the mind map displayed in step S103.
The data asset may be simply understood as data content that needs to be uploaded by a current user, and may be, for example, a document, experimental data according to an experiment, or a sales record of a recent period of time.
Step S104 may be executed by the client in response to the data upload instruction of the user after the user performs a corresponding operation, for example, after the client inputs the data upload instruction.
The edges connecting the new node are used to indicate the newly uploaded data asset to be uploaded and which entities in the knowledge graph have relationships therebetween, and these relationships may be specified by the user who uploaded the data asset to be uploaded, so the edges connecting the new node in step S104 may be drawn by the user.
And S105, the client sends the attribute of the newly added node and the attribute of the edge connected with the newly added node to the server.
The attribute of the newly added node is equivalent to the attribute of the data asset to be uploaded, and the attribute of the data asset to be uploaded specifically may include several items of description information for describing the data asset to be uploaded.
The attribute of the edge connecting the new node is specifically used to explain which original nodes the new node is connected to, and what the specific connection relationship is.
And S106, the server updates the knowledge graph according to the attribute of the newly added node and the attribute of the edge connected with the newly added node.
As described above, the nodes and edges in the thought graph correspond to entities and entity relationships in the knowledge-graph, respectively, and thus step S106 can be understood as the server generating the entity corresponding to the data asset to be uploaded and generating the triplet containing this newly generated entity.
S107, the client encrypts the text data of the data asset to be uploaded by using the proxy re-encryption technology to obtain the ciphertext data of the data asset to be uploaded.
S108, the client sends the ciphertext data, the key corresponding to the ciphertext data, the description information of the data asset to be uploaded and the thinking guide graph to the server.
The proxy re-encryption technique is an existing data encryption technique. Any user A encrypts data by applying an agent re-encryption technology, only needs to send the data ciphertext obtained by data encryption to a server, and sends an agent re-encryption key generated according to a self public key to the server, the self private key can be stored in a client side locally in an off-line mode and does not need to be sent to the server, when another user B needs to download the data, the server only needs to send the data ciphertext and the agent re-encryption key to a client side of the user B, and the user B can decrypt the data ciphertext locally at the client side by using the self private key and the agent re-encryption key to obtain the data.
Based on the proxy re-encryption technology, when a plurality of user servers perform encrypted data interaction, the servers do not need to store the private key of each user, that is, the private key of each user can be stored in the client of the user in an off-line storage manner (at this time, the client is equivalent to a cold wallet of the user), and the privacy security of each user is protected to the maximum extent.
And S109, the server stores the data sent by the client.
Optionally, the specific storage manner of the server for the data sent by the client in step S108 may be:
storing the mind map sent by the client in the map database.
The description information of the data assets to be uploaded is stored in a server connected distributed file system (HDFS).
Alternatively, if the client and other clients are transacting data assets, the server may send the transaction information to a connected blockchain network, whereby the transaction information is linked up (i.e., stored in the blockchain).
The key corresponding to the ciphertext data is an agent re-encryption key generated by the client according to the public key of the current user, and the server can store the agent re-encryption key and the ciphertext data in a ciphertext database (FTP server) together.
In the data storage scheme, public intelligence relationship information (namely a thinking map and a knowledge map) is stored in a map database in a plain text mode, public description information of data assets is also stored in a distributed file system in a plain text mode, and text data of the data assets needing to be kept secret is stored in an FTP Server in an encrypted ciphertext data mode; the block chain only records the circulation information of the data assets, and meanwhile, the private key of each user can be stored in the local client side in an off-line mode due to the fact that the agent re-encryption technology is adopted. By the data storage scheme, the safety of the text data of the data assets and the personal privacy of the user can be ensured, the user is not hindered from browsing the description information of the data assets and the relation between the description information and the corresponding entities, and the user can be supported to trade the data assets.
Optionally, in step S103, after the client displays the mind map, the user may click on any node in the mind map, so that:
the client responds to a click instruction of a user on any node in the mind map, reads the description information of the target data asset from the distributed file system through the server, and displays the description information of the target data asset; and the target data asset refers to the data asset corresponding to the clicked node.
Optionally, the user of the client may also request to acquire the text data of the target data asset after browsing the description information of the target data asset, and correspondingly, the client may perform the following operations of requesting the text data in response to the user operation:
after the description information of the target data asset is displayed, sending an authority request aiming at the text data of the target data asset to a server;
and after the server requests the authority, downloading the ciphertext data of the target data asset from a ciphertext database connected with the server, and decrypting the ciphertext data of the target data asset according to the proxy re-encryption technology to obtain the text data of the target data asset.
Optionally, the client is a computing node in the blockchain network;
when the user of the client has a transaction demand, the client can further execute the following operations:
responding to a data transaction instruction of a user, broadcasting data transaction information to each computing node in the blockchain network so as to trigger the computing nodes in the blockchain network to package the data transaction information into a blockchain of the blockchain network; the data transaction information at least comprises a hash abstract of the data asset to be transacted, transaction time and a user label of a user participating in transaction.
That is to say, in the data interaction method and the corresponding system provided in the embodiments of the present application, data assets can be transferred among users, and the transfer information can be recorded in the blockchain network.
The process described in the foregoing steps S103 to S106 can be understood as an interactive process of the mind map of the client and the knowledge graph of the server.
The thinking guide graph is generally developed based on SVG (an image format), wherein nodes are represented by NodeWidgets, edges connecting the nodes are represented by links between two corresponding NodeWidgets, and the NodeWidgets and the links are SVG elements. Represented by a SVG element alone. Whereas a knowledge-graph based on GraphDatabase (graph database), as described above, is composed of triplets.
In the foregoing interaction process, when the user creates a node widget at the client using the mind map, the client sends the attribute of the newly added node and the attribute of the edge connecting the newly added node, which are described in step S105, to the server in real time through a program interface (i.e., API), so that the server updates the entity and the triplet in the knowledge graph.
When a user adds an edge between nodes in a server, the server can obtain a position value (position value is equivalent to an attribute of the edge) of a bm-Link element for drawing a Link, further determine nodes connected by the edge drawn by the user in a thought-guide graph, and then add an entity relationship between two corresponding entities in a knowledge graph.
The user submits the created mind map, and after success, the mind map and the knowledge map file are stored at the server end at the same time, and the mind map and the knowledge map file are managed by file naming and classification.
Optionally, in the case that the server stores both the mind map and the knowledge map, if it is only related to browsing the related information of the existing data assets without adding new data assets, that is, it is only related to a write operation and a read operation, then it may only read the mind map stored by the server, and only when the write operation is related, the knowledge map and the mind map may be simultaneously modified.
Accordingly, the process of the client generating the corresponding mind map according to the knowledge map read from the map database connected with the server may include:
aiming at each entity contained in the knowledge graph, drawing a node corresponding to the entity;
and aiming at every two nodes, if two entities corresponding to the two nodes have an entity relationship, drawing edges connecting the two nodes so as to obtain the thinking guide graph corresponding to the knowledge graph.
The application provides a data interaction method, which comprises the following steps: generating a corresponding mind map according to the knowledge map read from the map database, and displaying the mind map; the mind map includes a plurality of nodes and edges connecting the nodes; drawing a newly added node and a corresponding edge corresponding to the data asset to be uploaded in a thinking guide graph; sending the attribute of the newly added node and the attribute of the newly added edge to a server to enable the server to update the knowledge graph; and sending the ciphertext data of the data asset to be uploaded, the corresponding key, the description information of the data asset to be uploaded and the thinking diagram to a server. According to the scheme, the corresponding thinking map is generated and displayed according to the knowledge map, the browsing and updating of the knowledge map through the thinking map are supported, so that a user can visually see the relation among various entities in the knowledge map, and the user experience in the data interaction process is improved.
In order to facilitate understanding of the method provided by the embodiment of the present application, an implementation process of the data interaction method provided by the embodiment of the present application is described below with reference to a specific example:
taking the project management system of an enterprise as an example, when the knowledge graph is applied to project management of the enterprise, the knowledge graph mainly includes three entities of organization, individual and project, wherein, a plurality of entities can correspond to a same project, the number of the entities corresponding to the same project is determined by the branch of the project, and the project branch can be generally set by an enterprise manager,
for example, a superior manager may construct a key target branch of a project, a manager may construct a project branch, a team leader of each team of the project may construct a project content breakdown, and a specific content of each entity corresponding to the project, that is, a corresponding data asset, is uploaded by a direct participant of the project through the method described in the foregoing embodiment after browsing a thought-guiding diagram, and a relationship between the uploaded data asset and an original entity is set.
In the project management system, the entities may specifically have the following three entity relationships:
the physical relationship between the organizational entity and the personal entity is containment;
organizing the entity relationship between the entities and the project entity as participation;
entity relationships between personal entities and project entities are also involved.
Optionally, the viewing authority of the data assets can be designed based on the project management of a 'water pump type', the viewing authority can be automatically granted upwards in each service line, and the higher the level is, the more viewing authorities are possessed. The different service lines are in an authority isolation state, and an individual of any one service line can obtain the viewing authority of the data assets of other service lines by applying for authorization. Project information, description information and authority information of the data assets are transparently disclosed on a system platform so as to help a user to quickly find needed and key contacts.
In combination with the data interaction method provided by any embodiment of the present application, an embodiment of the present application further provides a data interaction device applied to a client and a data interaction device applied to a server.
Referring to fig. 2, the data interaction apparatus applied to the client may include the following units:
the generating unit 201 is used for generating a corresponding mind map according to the knowledge map read from the map database connected with the server and displaying the mind map.
Wherein the mind map includes a plurality of nodes and edges for connecting the nodes.
The drawing unit 202 is configured to draw, in response to a data upload instruction of a user, a newly added node corresponding to a data asset to be uploaded and an edge connecting the newly added node in the mind map; and sending the attribute of the newly added node and the attribute of the edge connected with the newly added node to a server so as to trigger the server to update the knowledge graph.
And the encryption unit 203 is configured to encrypt the text data of the data asset to be uploaded by using a proxy re-encryption technology to obtain ciphertext data of the data asset to be uploaded.
The sending unit 204 is configured to send the ciphertext data, the key corresponding to the ciphertext data, the description information of the data asset to be uploaded, and the mind map to the server.
Optionally, the apparatus may further include a reading unit 205, configured to:
and reading the description information of the target data asset from the distributed file system through the server in response to a click command of a user on any node in the mind map, and displaying the description information of the target data asset.
And the target data assets refer to the data assets corresponding to the clicked nodes.
Optionally, the apparatus may further include a downloading unit 206, configured to:
sending an authority request for the text data of the target data asset to a server;
and after the server requests the authority, downloading the ciphertext data of the target data asset from a ciphertext database connected with the server, and decrypting the ciphertext data of the target data asset according to the proxy re-encryption technology to obtain the text data of the target data asset.
A client is a computing node in a blockchain network.
Wherein the apparatus may further comprise a transaction unit 207 for:
in response to a data transaction instruction of a user, broadcasting data transaction information to each computing node in the blockchain network so as to trigger the computing nodes in the blockchain network to package the data transaction information into a blockchain of the blockchain network; the data transaction information at least comprises a hash abstract of the data asset to be transacted, transaction time and a user label of a user participating in transaction.
The knowledge graph comprises a plurality of triples, each triplet comprising two entities and an entity relationship between the two entities;
the generating unit 201 is specifically configured to, when generating a corresponding mind map according to a knowledge graph read from a graph database connected to a server:
aiming at each entity contained in the knowledge graph, drawing a node corresponding to the entity;
and aiming at every two nodes, if two entities corresponding to the two nodes have an entity relationship, drawing edges connecting the two nodes so as to obtain the thinking guide graph corresponding to the knowledge graph.
Referring to fig. 3, the data interaction apparatus applied to the server may include the following units:
the sending unit 301 is configured to respond to a data reading request of a client, and send a knowledge graph in the graph database to the client, so as to trigger the client to display a thinking graph corresponding to the knowledge graph.
The knowledge-graph includes a plurality of triples, each triplet including two entities and an entity relationship of the two entities.
An updating unit 302, configured to add, according to the attribute of the newly added node corresponding to the data asset to be uploaded and the attribute of the edge connecting the newly added node, which are sent by the client, an entity corresponding to the data asset to be uploaded and at least one triple including the entity corresponding to the data asset to be uploaded in the knowledge graph.
The storage unit 303 is configured to receive and store a mind map that includes the newly added node and the edge connected to the newly added node, ciphertext data of the data asset to be uploaded, a key corresponding to the ciphertext data, and description information of the data asset to be uploaded, where the mind map is sent by the client.
And the ciphertext data of the data asset to be uploaded is obtained by the client according to the proxy re-encryption technology.
The storage unit 303 receives and stores the mind map sent by the client, including the new node and the edge connected to the new node, the ciphertext data of the data asset to be uploaded, the key corresponding to the ciphertext data, and the description information of the data asset to be uploaded, and is specifically configured to:
storing the mind map sent by the client in a map database;
storing the description information of the data assets to be uploaded in a distributed file system connected with the server;
and storing the key corresponding to the ciphertext data and the ciphertext data in a ciphertext database.
The specific working principle of the data interaction device provided in any embodiment of the present application is consistent with the corresponding steps in the data interaction method provided in the embodiment of the present application, and details are not repeated here.
The application provides a data interaction device which is applied to a client, wherein a generating unit 201 generates a corresponding mind map according to a knowledge map read from a map database and displays the mind map; the mind map includes a plurality of nodes and edges connecting the nodes; the drawing unit 202 draws a newly added node and a corresponding edge corresponding to a data asset to be uploaded in the thought guide graph; sending the attribute of the newly added node and the attribute of the newly added edge to a server to enable the server to update the knowledge graph; the encryption unit 203 encrypts the ciphertext data of the data asset to be uploaded, and the sending unit 204 sends the ciphertext data of the data asset to be uploaded, the corresponding key, the description information of the data asset to be uploaded and the thinking diagram to the server. According to the scheme, the corresponding thinking map is generated and displayed according to the knowledge map, the browsing and updating of the knowledge map through the thinking map are supported, so that a user can visually see the relation among various entities in the knowledge map, and the user experience in the data interaction process is improved.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of ...does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A data interaction method is applied to a client, and the method comprises the following steps:
generating a corresponding thinking map according to a knowledge map read from a map database connected with a server, and displaying the thinking map; wherein the mind map includes a plurality of nodes and edges for connecting the nodes;
in response to a data uploading instruction of a user, drawing a newly added node corresponding to a data asset to be uploaded and an edge connected with the newly added node in the thinking graph; sending the attribute of the newly added node and the attribute of the edge connected with the newly added node to the server so as to trigger the server to update the knowledge graph;
encrypting the text data of the data asset to be uploaded by using a proxy re-encryption technology to obtain ciphertext data of the data asset to be uploaded;
and sending the ciphertext data, the key corresponding to the ciphertext data, the description information of the data asset to be uploaded and the thinking map to the server.
2. The method of claim 1, further comprising:
reading the description information of a target data asset from a distributed file system through the server in response to a click instruction of a user on any one node in the thinking map, and displaying the description information of the target data asset; and the target data assets refer to the data assets corresponding to the clicked nodes.
3. The method of claim 2, wherein after displaying the description information of the target data asset, further comprising:
sending an authorization request for body data of the target data asset to the server;
and after the server passes the authority request, downloading the ciphertext data of the target data asset from a ciphertext database connected with the server, and decrypting the ciphertext data of the target data asset according to an agent re-encryption technology to obtain the text data of the target data asset.
4. The method of claim 1, wherein the client is a computing node in a blockchain network;
wherein the method further comprises:
in response to a data transaction instruction of a user, broadcasting data transaction information to each computing node in the blockchain network to trigger the computing nodes in the blockchain network to package the data transaction information into a blockchain of the blockchain network; the data transaction information at least comprises a hash abstract of the data asset to be transacted, transaction time and a user label of a user participating in the transaction.
5. The method of claim 1, wherein the knowledge-graph comprises a plurality of triples, each triplet comprising two entities and an entity relationship of the two entities;
wherein, the method for generating a corresponding thinking map according to the knowledge map read from the map database connected with the server comprises the following steps:
aiming at each entity contained in the knowledge graph, drawing a node corresponding to the entity;
and aiming at every two nodes, if two entities corresponding to the two nodes have an entity relationship, drawing edges connecting the two nodes so as to obtain the thinking graph corresponding to the knowledge graph.
6. A data interaction method is applied to a server, and the method comprises the following steps:
responding to a data reading request of a client, and sending a knowledge graph in a graph database to the client to trigger the client to display a thinking map corresponding to the knowledge graph; wherein the knowledge-graph comprises a plurality of triples, each of the triples comprising two entities and an entity relationship of the two entities;
adding an entity corresponding to the data asset to be uploaded and at least one triple including the entity corresponding to the data asset to be uploaded in the knowledge graph according to the attribute of the newly added node corresponding to the data asset to be uploaded and the attribute of the edge connecting the newly added node, which are sent by the client;
receiving and storing a mind map which is sent by the client and comprises the newly added node and an edge connected with the newly added node, ciphertext data of the data asset to be uploaded, a key corresponding to the ciphertext data and description information of the data asset to be uploaded; and the client side obtains the text data of the data asset to be uploaded according to the proxy re-encryption technology.
7. The method as claimed in claim 6, wherein the receiving and storing the mind map sent by the client and including the added node and the edge connecting to the added node, the ciphertext data of the data asset to be uploaded, the key corresponding to the ciphertext data and the description information of the data asset to be uploaded comprises:
storing the mind map sent by the client in a map database;
storing the description information of the data assets to be uploaded in a distributed file system connected with the server;
and storing the key corresponding to the ciphertext data and the ciphertext data in a ciphertext database.
8. A data interaction device, applied to a client, the device comprising:
the system comprises a generating unit, a display unit and a display unit, wherein the generating unit is used for generating a corresponding thinking map according to a knowledge map read from a map database connected with a server and displaying the thinking map; wherein the mind map includes a plurality of nodes and edges for connecting the nodes;
the drawing unit is used for responding to a data uploading instruction of a user, and drawing a newly added node corresponding to a data asset to be uploaded and an edge connected with the newly added node in the thinking map; sending the attribute of the newly added node and the attribute of the edge connected with the newly added node to the server so as to trigger the server to update the knowledge graph;
the encryption unit is used for encrypting the text data of the data asset to be uploaded by using a proxy re-encryption technology to obtain ciphertext data of the data asset to be uploaded;
and the sending unit is used for sending the ciphertext data, the key corresponding to the ciphertext data, the description information of the data asset to be uploaded and the thinking guide graph to the server.
9. A data interaction device is applied to a server, and the device comprises:
the sending unit is used for responding to a data reading request of a client and sending the knowledge graph in the graph database to the client so as to trigger the client to display a thinking guide graph corresponding to the knowledge graph; wherein the knowledge-graph comprises a plurality of triples, each of the triples comprising two entities and an entity relationship of the two entities;
the updating unit is used for adding an entity corresponding to the data asset to be uploaded and at least one triple comprising the entity corresponding to the data asset to be uploaded into the knowledge graph according to the attribute of the newly added node corresponding to the data asset to be uploaded and the attribute of the edge connected with the newly added node, which are sent by the client;
the storage unit is used for receiving and storing the thinking graph which is sent by the client and comprises the newly added node and the edge connected with the newly added node, the ciphertext data of the data asset to be uploaded, the key corresponding to the ciphertext data and the description information of the data asset to be uploaded; and the client side obtains the text data of the data asset to be uploaded according to the proxy re-encryption technology.
CN202011014534.1A 2020-09-24 2020-09-24 Data interaction method and device Active CN112153142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011014534.1A CN112153142B (en) 2020-09-24 2020-09-24 Data interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011014534.1A CN112153142B (en) 2020-09-24 2020-09-24 Data interaction method and device

Publications (2)

Publication Number Publication Date
CN112153142A CN112153142A (en) 2020-12-29
CN112153142B true CN112153142B (en) 2023-04-18

Family

ID=73896476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011014534.1A Active CN112153142B (en) 2020-09-24 2020-09-24 Data interaction method and device

Country Status (1)

Country Link
CN (1) CN112153142B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508384A (en) * 2018-10-31 2019-03-22 北京国双科技有限公司 Processing method, device, storage medium and the processor of knowledge mapping
CN111061859A (en) * 2019-12-02 2020-04-24 深圳追一科技有限公司 Data processing method and device based on knowledge graph and computer equipment
CN111291194A (en) * 2020-01-20 2020-06-16 深圳供电局有限公司 Automatic storage and knowledge graph generation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130103663A1 (en) * 2011-10-22 2013-04-25 Wikibrains, Ltd. Networked mind mapping to enhance brainstorming

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109508384A (en) * 2018-10-31 2019-03-22 北京国双科技有限公司 Processing method, device, storage medium and the processor of knowledge mapping
CN111061859A (en) * 2019-12-02 2020-04-24 深圳追一科技有限公司 Data processing method and device based on knowledge graph and computer equipment
CN111291194A (en) * 2020-01-20 2020-06-16 深圳供电局有限公司 Automatic storage and knowledge graph generation method and device

Also Published As

Publication number Publication date
CN112153142A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US11637703B2 (en) Zero-knowledge environment based social networking engine
US10762229B2 (en) Secure searchable and shareable remote storage system and method
CN105453105B (en) System and method for cloud data safety
US7873168B2 (en) Secret information management apparatus and secret information management system
CN105493435A (en) Virtual service provider zones
JP2009005202A (en) Information exchange device
KR101623742B1 (en) Method and system for sharing file related messages
Yang et al. Publicly verifiable data transfer and deletion scheme for cloud storage
CN106156345B (en) Item file deposits card method, deposits card equipment and terminal device
CN112000632A (en) Ciphertext sharing method, medium, sharing client and system
WO2007142063A2 (en) Access control system
CN112153142B (en) Data interaction method and device
CN109409111A (en) It is a kind of to search for method generally towards encrypted image
KR102150752B1 (en) Interaction record inquiry processing method and apparatus
KR101635005B1 (en) Method for managing metadata in a digital data safe system based on cloud
Raj et al. A security-attribute-based access control along with user revocation for shared data in multi-owner cloud system
EP3568798B1 (en) Data filing method and system
Huang et al. A Secure and IoT-Enabled Data Sharing System Based on IPFS and IOTA Blockchain
US20210266299A1 (en) Computer method for secure disclosure of information
US11989840B2 (en) Augmented reality effects on blockchain
Hiji et al. Noble Inheritance Mechanism of Digital Content for" Digital-Ji-in" toward Sustainable Society
US9560022B1 (en) Avoiding collection of biometric data without consent
Nagarajan Content-Based Image Retrieval in Cloud Image Repositories
CN114676453A (en) File operation permission determining method and device, storage medium and electronic equipment
Harne et al. Efficient and Secure Searchable Clinical Patient Information on Cloud Infrastructure.

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