CN110941683A - Method, device, medium and electronic equipment for acquiring object attribute information in space - Google Patents

Method, device, medium and electronic equipment for acquiring object attribute information in space Download PDF

Info

Publication number
CN110941683A
CN110941683A CN201911071547.XA CN201911071547A CN110941683A CN 110941683 A CN110941683 A CN 110941683A CN 201911071547 A CN201911071547 A CN 201911071547A CN 110941683 A CN110941683 A CN 110941683A
Authority
CN
China
Prior art keywords
space
information
node
identity
attribute information
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.)
Granted
Application number
CN201911071547.XA
Other languages
Chinese (zh)
Other versions
CN110941683B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911071547.XA priority Critical patent/CN110941683B/en
Publication of CN110941683A publication Critical patent/CN110941683A/en
Application granted granted Critical
Publication of CN110941683B publication Critical patent/CN110941683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing

Landscapes

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

Abstract

The disclosure provides a method, a device, a medium and an electronic device for acquiring object attribute information in a space. The method comprises the following steps: searching a space object directed relation graph based on first query information of an object and second query information of a space, and acquiring search information of a path from a corresponding object node to a corresponding space node; analyzing whether the search information has a path condition which meets the requirement from the corresponding object node to the corresponding space node; if so, acquiring an object path from the corresponding object node to the corresponding space node based on the search information, and acquiring identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space. The method and the device establish the directed relation graph of the space object and acquire the object attribute information of the object in the space by searching the directed relation graph of the space object. Time consumption is reduced, and system performance and user experience are improved.

Description

Method, device, medium and electronic equipment for acquiring object attribute information in space
Technical Field
The present disclosure relates to the field of online document management, and in particular, to a method, an apparatus, a medium, and an electronic device for obtaining object attribute information in a space.
Background
An online document is a type of text that exists in a network that can be edited online by a user.
With the rapid development of the internet, users have become accustomed to recording or sharing content using online documents.
Users can share knowledge by writing content in the online document. For example, a wiki space (i.e., wiki space) is a document manager that adds documents to a wiki space when we see a document of value that we wish to share with a team; all members of the wiki space can see this one document; members of the wiki space can be a person, can also be members of a chat group, and can also be members of a department; typically, in wiki space, adding/deleting a member requires writing data into a relational database, which includes at least: wiki space ID, member ID, and identity type ID. The wiki space ID is a unique identifier, and each wiki space has a unique identifier; the member ID is also a unique identifier for each member; the identity type ID identifies the type of the identity corresponding to the member, for example, the identity type ID with member ID 111 is 1, 2, and 3; 1 represents a person type, 2 represents a group member type, and 3 represents an organization member type. Because the relational database can not know which members exist in the group, the members can not be directly obtained by looking up the database and have the authority to the wiki space. If a space member is also a group member type or an organization member type, the authority in the group member type or the organization member type needs to be further judged, and the whole calling time is very high. When the number of wiki spaces is large, the performance of the system and the user experience are seriously affected.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
An object of the present disclosure is to provide a method, an apparatus, a medium, and an electronic device for obtaining object attribute information in a space, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific implementation manner of the present disclosure, in a first aspect, the present disclosure provides a method for obtaining object attribute information in a space, including:
searching a space object directed relation graph based on first query information of an object and second query information of a space, and acquiring search information of a path from a corresponding object node to a corresponding space node;
analyzing whether the search information has a path condition which meets the requirement from the corresponding object node to the corresponding space node;
if so, acquiring an object path from the corresponding object node to the corresponding space node based on the search information, and acquiring identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space.
According to a second aspect, the present disclosure provides an apparatus for acquiring object attribute information in a space, including:
the searching unit is used for searching the space object directed relationship graph based on the first query information of the object and the second query information of the space, and acquiring the searching information of the path from the corresponding object node to the corresponding space node;
the analysis unit is used for analyzing whether the search information has a path condition which meets the requirement from the corresponding object node to the corresponding space node;
an object attribute information obtaining unit, configured to, if an output result of the analysis unit is "yes", obtain an object path from a corresponding object node to a corresponding space node based on the search information, and obtain identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space.
According to a third aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of obtaining object property information in a space according to any one of the first aspect.
According to a fourth aspect thereof, the present disclosure provides an electronic device, comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of obtaining object property information in a space according to any one of the first aspect.
Compared with the prior art, the scheme of the embodiment of the disclosure at least has the following beneficial effects:
the disclosure provides a method, a device, a medium and an electronic device for acquiring object attribute information in a space. The method comprises the following steps: searching a space object directed relation graph based on first query information of an object and second query information of a space, and acquiring search information of a path from a corresponding object node to a corresponding space node; analyzing whether the search information has a path condition which meets the requirement from the corresponding object node to the corresponding space node; if so, acquiring an object path from the corresponding object node to the corresponding space node based on the search information, and acquiring identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space.
The method and the device establish the directed relation graph of the space object and acquire the object attribute information of the object in the space by searching the directed relation graph of the space object. Time consumption is reduced, and system performance and user experience are improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 shows a flowchart of a method of obtaining object attribute information in a space according to an embodiment of the present disclosure;
FIG. 2 illustrates a spatial object directed relationship diagram of a method for obtaining object attribute information in a space according to an embodiment of the present disclosure;
FIG. 3 shows a block diagram of elements of an apparatus for obtaining object attribute information in a space according to an embodiment of the present disclosure;
fig. 4 shows an electronic device connection structure schematic according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure 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.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The first embodiment provided by the present disclosure, that is, an embodiment of a method for acquiring object attribute information in a space.
The following describes an embodiment of the present disclosure in detail with reference to fig. 1 and fig. 2, where fig. 1 is a flowchart of a method for acquiring object attribute information in a space according to an embodiment of the present disclosure; fig. 2 illustrates a spatial object directed relationship diagram of a method for acquiring object attribute information in a space according to an embodiment of the present disclosure.
Step S101, searching the space object directed relation graph based on the first query information of the object and the second query information of the space, and acquiring the search information of the path from the corresponding object node to the corresponding space node.
A spatial object directed relationship graph is a graph describing the relationship between objects, spaces and identities. In the space object directed relational graph, each object, space or identity is represented by a node, wherein object nodes are associated with object identifications, space nodes are associated with space identifications, and identity nodes are associated with identity identifications and identity attribute information. And connecting lines of arrows among the nodes to represent the dependency relationship among the nodes, wherein the arrows point to the nodes and are subordinate to the starting nodes of the arrows.
In the embodiment of the present disclosure, the identity belongs to the space, and the object belongs to the space or the identity, so that the space node is necessarily an arrow starting node, the object node is necessarily an arrow pointing node, and the identity node is both an arrow pointing node and an arrow starting node.
Referring to fig. 2, for example, a wiki space node a and a wiki space node B are space nodes, a person node C, a person node F, and a person node G are object nodes, a group node D, a group node H, and an organization node E are identity nodes, respectively, where identity attribute information of the identity nodes includes authority information; since person C is added directly to wiki space A, person C has all the permissions of wiki space A; if the person F belongs to both the group D and the organization E, the authority information of the person F in the wiki space A is taken from the authority intersection information of the authority information of the group D and the authority information of the organization E; if the person G only belongs to the organization E, the authority information of the person G in the wiki space A is the authority information of the organization E; and the person F only belongs to the group H, and the authority information of the person F in the wiki space B is the authority information of the group H.
The embodiment of the disclosure searches the space object directed relationship graph through the first query information (such as object identification) of the object and the second query information (such as space identification) of the space, so as to obtain the object attribute information (such as authority information of the object in the space).
In the prior art, there are many search methods for a space object directed relationship graph, and the embodiments of the present disclosure are not limited. In the searching process, searching information of the path from the corresponding object node to the corresponding space node exists. These search information include both object path information between the corresponding object node and the corresponding spatial node and non-object path information.
Step S102, whether the path condition from the corresponding object node to the corresponding space node is satisfied exists in the search information is analyzed.
And finding the search information associated with the object path from the search information. That is, search information satisfying the path condition of the object path.
And step S103, if yes, acquiring object attribute information of the object in the space based on the search information.
The method specifically comprises the following steps:
and step S103-1, acquiring an object path from the corresponding object node to the corresponding space node based on the search information.
For example, continuing the above example, the object path from person C node to wiki space A node is: human C node-wiki space A node; the object path from the person F node to the wiki space A node is as follows: a human F node, a group D node, a wiki space A node, and a human F node, an organization E node and a wiki space A node; the object path from person F node to wiki space node B is: human F node-group H node-wiki space B node; human G node-organization E node-wiki space B node.
And step S103-2, acquiring identity attribute information of all identity nodes on the object path.
Step S103-3, analyzing the identity attribute information to obtain object attribute information of the object in the space.
Optionally, the identity attribute information includes: identity restriction information; the object attribute information includes object restriction information.
For example, continuing the above example, the identity restriction information is identity rights information, such as rights information for group D and rights information for organization E; the object constraint information is object rights information, such as rights information of person F.
The analyzing the identity attribute information to obtain the object attribute information of the object in the space comprises the following steps:
and step S103-3-1, analyzing the logic relation among the identity limit information, and determining identity limit intersection information as the object limit information of the object in the space.
For example, continuing the above example, the privilege information for group D includes: weight 1, weight 2, weight 3, and weight 4; the authority information of the organization E includes: weight 2, weight 4, weight 5, and weight 6; the identity limit intersection information includes: the object constraint information for weights 2 and 4, i.e., person F in wiki space A, includes: weight 2 and weight 4.
And step S104, if not, judging that the object does not belong to the space.
The embodiment of the disclosure establishes the space object directed relationship graph, and obtains the object attribute information of the object in the space by searching the space object directed relationship graph. Time consumption is reduced, and system performance and user experience are improved.
The embodiment of the disclosure further provides a method for maintaining the directed relational graph of the spatial object, in order to ensure the consistency of data. The method further comprises the steps of:
step S111 acquires change information.
Wherein, the change information refers to the addition, deletion and modification of information, and includes: space change information, object change information, and/or identity change information.
Optionally, the obtaining of the change information includes the following steps:
and step S111-1, receiving the change message sent by the distributed publish-subscribe message system.
A distributed publish-subscribe messaging system, including a kafka system.
The Kafka system is a high-throughput distributed publish-subscribe messaging system that can handle all the action flow data of a consumer in a web site. The biggest characteristic of the method is that a large amount of data can be processed in real time to meet various demand scenarios. Such as a messaging service.
A message is a unit of data that is transferred between two computers. Before transmitting the change message, different change information needs to be encapsulated in the change message body according to a preset encapsulation rule.
And step S111-2, analyzing the change message according to a preset analysis rule, and acquiring the change message.
After receiving the change message, the change message body needs to be analyzed according to a preset analysis rule and is restored to the change message.
Step S112, adjusting the space object directed relationship graph based on the change information.
Optionally, after the obtaining of the change information, the method further includes:
step S113 stores the change information in the space object data set.
Because the space object directed relation graph is the data information stored in the memory, when the system is shut down due to reasons, the space object directed relation graph can be recovered through the information in the space object data set.
In order to prevent the message from being lost, the information in the space object data set is inconsistent with the information in the space object directed relational graph. Optionally, the method further includes:
step S121, obtaining effective information from the space object data set based on a preset refreshing period, and refreshing the space object directed relationship graph;
wherein the valid information includes: and the object identification corresponding to the object node, the space identification corresponding to the space node, and the identity identification and the identity attribute information corresponding to the identity node.
The refreshing is to make the information of the space object directed relationship graph consistent with the information in the space object data set.
The embodiment of the disclosure establishes the space object directed relationship graph, and obtains the object attribute information of the object in the space by searching the space object directed relationship graph. Time consumption is reduced, and system performance and user experience are improved.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, that is, an apparatus for acquiring object attribute information in a space. Since the second embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 3 shows an embodiment of an apparatus for acquiring object attribute information in a space provided by the present disclosure. Fig. 3 is a block diagram of elements of an apparatus for acquiring object attribute information in a space according to an embodiment of the present disclosure.
Referring to fig. 3, the present disclosure provides an apparatus for obtaining object attribute information in a space, including: the searching unit 301, the analyzing unit 302, and the object attribute information acquiring unit 303.
A searching unit 301, configured to search a space object directed relationship graph based on first query information of an object and second query information of a space, and obtain search information of a path from a corresponding object node to a corresponding space node;
an analysis unit 302, configured to analyze whether a path condition that satisfies a condition from a corresponding object node to a corresponding space node exists in the search information;
an object attribute information obtaining unit 303, configured to, if an output result of the analysis unit is "yes," obtain an object path from a corresponding object node to a corresponding space node based on the search information, and obtain identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space.
Optionally, the identity attribute information includes: identity restriction information; the object attribute information includes object restriction information;
the unit 303 for acquiring object attribute information includes:
and the object attribute information acquisition subunit is used for analyzing the logical relationship among the identity restriction information and determining identity restriction intersection information as the object restriction information of the object in the space.
Optionally, in the apparatus, the apparatus further includes: adjusting a space object directed relation graph unit;
in the unit of adjusting the spatial object directed relationship graph, the method includes:
a change information acquiring subunit for acquiring change information; wherein the change information includes: space change information, object change information and/or identity change information;
and the adjusting space object directed relationship graph subunit is used for adjusting the space object directed relationship graph based on the change information.
Optionally, the change information obtaining subunit includes:
a receiving change message subunit, configured to receive a change message sent by the distributed publish-subscribe message system;
and the analysis subunit is used for analyzing the change message according to a preset analysis rule to acquire the change message.
Optionally, in the unit of adjusting the spatial object directed relationship graph, the method further includes:
and a change information saving subunit, configured to save the change information in the space object data set.
Optionally, in the apparatus, the apparatus further includes:
the refreshing unit is used for acquiring effective information from the space object data set based on a preset refreshing period and refreshing the space object directed relational graph; wherein the valid information includes: and the object identification corresponding to the object node, the space identification corresponding to the space node, and the identity identification and the identity attribute information corresponding to the identity node.
Optionally, in the apparatus, the apparatus further includes:
and the judging unit is used for judging that the object does not belong to the space if the output result of the analyzing unit is negative.
The embodiment of the disclosure establishes the space object directed relationship graph, and obtains the object attribute information of the object in the space by searching the space object directed relationship graph. Time consumption is reduced, and system performance and user experience are improved.
The embodiment of the present disclosure provides a third embodiment, that is, an electronic device, where the electronic device is used in a method for acquiring object attribute information in a space, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of obtaining attribute information of an object in a space according to the first embodiment.
The present disclosure provides a fourth embodiment, which is a computer storage medium for acquiring object attribute information in a space, where the computer storage medium stores computer-executable instructions that can execute the method for acquiring object attribute information in a space as described in the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for obtaining object attribute information in a space is characterized by comprising the following steps:
searching a space object directed relation graph based on first query information of an object and second query information of a space, and acquiring search information of a path from a corresponding object node to a corresponding space node;
analyzing whether the search information has a path condition which meets the requirement from the corresponding object node to the corresponding space node;
if so, acquiring an object path from the corresponding object node to the corresponding space node based on the search information, and acquiring identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space.
2. The method of claim 1, wherein the identity attribute information comprises: identity restriction information; the object attribute information includes object restriction information;
the analyzing the identity attribute information to obtain the object attribute information of the object in the space includes:
and analyzing the logic relation among the identity limit information, and determining identity limit intersection information as the object limit information of the object in the space.
3. The method of claim 1, further comprising:
acquiring change information; wherein the change information includes: space change information, object change information and/or identity change information;
and adjusting the space object directed relationship graph based on the change information.
4. The method of claim 3, wherein obtaining change information comprises:
receiving a change message sent by a distributed publish-subscribe message system;
and analyzing the change message according to a preset analysis rule to acquire the change message.
5. The method of claim 3, further comprising, after said obtaining change information:
and storing the change information into a space object data set.
6. The method of claim 5, further comprising:
obtaining effective information from the space object data set based on a preset refreshing period, and refreshing the space object directed relationship graph; wherein the valid information includes: and the object identification corresponding to the object node, the space identification corresponding to the space node, and the identity identification and the identity attribute information corresponding to the identity node.
7. The method according to claim 1, wherein after analyzing whether the search information has a path condition that satisfies a path from the corresponding object node to the corresponding spatial node, the method further comprises:
if not, the object is judged not to belong to the space.
8. An apparatus for obtaining attribute information of an object in a space, comprising:
the searching unit is used for searching the space object directed relationship graph based on the first query information of the object and the second query information of the space, and acquiring the searching information of the path from the corresponding object node to the corresponding space node;
the analysis unit is used for analyzing whether the search information has a path condition which meets the requirement from the corresponding object node to the corresponding space node;
an object attribute information obtaining unit, configured to, if an output result of the analysis unit is "yes", obtain an object path from a corresponding object node to a corresponding space node based on the search information, and obtain identity attribute information of all identity nodes on the object path; and analyzing the identity attribute information to acquire the object attribute information of the object in the space.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN201911071547.XA 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for acquiring object attribute information in space Active CN110941683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911071547.XA CN110941683B (en) 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for acquiring object attribute information in space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911071547.XA CN110941683B (en) 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for acquiring object attribute information in space

Publications (2)

Publication Number Publication Date
CN110941683A true CN110941683A (en) 2020-03-31
CN110941683B CN110941683B (en) 2023-05-26

Family

ID=69906306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911071547.XA Active CN110941683B (en) 2019-11-05 2019-11-05 Method, device, medium and electronic equipment for acquiring object attribute information in space

Country Status (1)

Country Link
CN (1) CN110941683B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448667A (en) * 2021-06-09 2021-09-28 绿盟科技集团股份有限公司 Method and device for generating display relation graph

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190693A1 (en) * 2005-02-24 2006-08-24 Masayasu Asano Computer system, managing computer, host computer, and volume management method
CN1852145A (en) * 2005-11-23 2006-10-25 华为技术有限公司 System and method for identifying authority using relative inquire
KR20090000045A (en) * 2006-12-19 2009-01-07 주식회사 케이티 Method of role based access control in object oriented geographic information system
CN103078859A (en) * 2012-12-31 2013-05-01 普天新能源有限责任公司 Service system authority management method, equipment and system
CN108628879A (en) * 2017-03-19 2018-10-09 上海格尔安全科技有限公司 A kind of search method of the access control construction with priority policy
CN109818757A (en) * 2019-03-18 2019-05-28 广东工业大学 Cloud storage data access control method, Attribute certificate awarding method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190693A1 (en) * 2005-02-24 2006-08-24 Masayasu Asano Computer system, managing computer, host computer, and volume management method
CN1852145A (en) * 2005-11-23 2006-10-25 华为技术有限公司 System and method for identifying authority using relative inquire
KR20090000045A (en) * 2006-12-19 2009-01-07 주식회사 케이티 Method of role based access control in object oriented geographic information system
CN103078859A (en) * 2012-12-31 2013-05-01 普天新能源有限责任公司 Service system authority management method, equipment and system
CN108628879A (en) * 2017-03-19 2018-10-09 上海格尔安全科技有限公司 A kind of search method of the access control construction with priority policy
CN109818757A (en) * 2019-03-18 2019-05-28 广东工业大学 Cloud storage data access control method, Attribute certificate awarding method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SONGYUN LIU ET AL: "Role-Based Access Control for Distributed Cooperation Environment" *
李凤华 等: "面向网络空间的访问控制模型" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448667A (en) * 2021-06-09 2021-09-28 绿盟科技集团股份有限公司 Method and device for generating display relation graph
CN113448667B (en) * 2021-06-09 2023-08-01 绿盟科技集团股份有限公司 Method and device for generating display relationship diagram

Also Published As

Publication number Publication date
CN110941683B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN110634047B (en) Method and device for recommending house resources, electronic equipment and storage medium
CN110096584B (en) Response method and device
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
US20230351032A1 (en) Document permission processing method and apparatus, electronic device, and storage medium
CN110909521A (en) Synchronous processing method and device for online document information and electronic equipment
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN113704291A (en) Data query method and device, storage medium and electronic equipment
CN110852720A (en) Document processing method, device, equipment and storage medium
CN111241137A (en) Data processing method and device, electronic equipment and storage medium
CN111355784B (en) Method, device, medium and electronic equipment for processing request information
CN110737846B (en) Social interface recommendation method and device, electronic equipment and storage medium
CN110941683B (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN115344688B (en) Business data display method and device, electronic equipment and computer readable medium
CN111798251A (en) Verification method and device of house source data and electronic equipment
CN110781066A (en) User behavior analysis method, device, equipment and storage medium
CN112307061A (en) Method and device for querying data
CN111787043A (en) Data request method and device
CN111581930A (en) Online form data processing method and device, electronic equipment and readable medium
CN110716885B (en) Data management method and device, electronic equipment and storage medium
CN116662672B (en) Value object information transmitting method, device, equipment and computer readable medium
CN111404890B (en) Flow data detection method, system, storage medium and electronic device
CN111258670B (en) Method and device for managing component data, electronic equipment and storage medium
CN110633324B (en) Method, apparatus, electronic device and computer readable medium for synchronizing data
CN110619087B (en) Method and apparatus for processing information

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