CN115659405A - Interaction method and device of digital object, electronic equipment and storage medium - Google Patents

Interaction method and device of digital object, electronic equipment and storage medium Download PDF

Info

Publication number
CN115659405A
CN115659405A CN202211442310.XA CN202211442310A CN115659405A CN 115659405 A CN115659405 A CN 115659405A CN 202211442310 A CN202211442310 A CN 202211442310A CN 115659405 A CN115659405 A CN 115659405A
Authority
CN
China
Prior art keywords
digital object
subject
attribute
target
identifier
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
CN202211442310.XA
Other languages
Chinese (zh)
Other versions
CN115659405B (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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202211442310.XA priority Critical patent/CN115659405B/en
Publication of CN115659405A publication Critical patent/CN115659405A/en
Application granted granted Critical
Publication of CN115659405B publication Critical patent/CN115659405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a digital object interaction method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a first attribute digital object of a control main body according to a first operation digital object identified by a first operation identifier in an operation instruction, then determining a second operation identifier according to the corresponding relation between the second operation identifier included in the first attribute digital object and a target main body identity identifier and operation action information, and the target main body identity identifier and the operation action information of the control instruction, and interacting with the target main body by using the second operation digital object identified by the second operation identifier so as to enable the target main body to execute the operation action information. Therefore, by establishing the association between the digital object of the control body and the digital object of the target body, the interaction between the first operation digital object of the control body and the second operation digital object of the target body can be utilized to realize the operation of the control body on the target body.

Description

Interaction method and device of digital object, electronic equipment and storage medium
Technical Field
The present disclosure relates to digital object management and interaction technology, and in particular, to a method and apparatus for interacting digital objects, an electronic device, and a storage medium.
Background
A digital object may be a data file carrying digital information. In the prior art, the digital object can be endowed with identity through unique identification number sharing, so that the digital objects are distinguished from one another. In a digital object system, digital objects are usually independent of each other, so that the digital objects are not fully utilized.
Disclosure of Invention
The disclosed embodiment provides a digital object interaction method and device, an electronic device and a storage medium, so as to solve the above problems.
In one aspect of the disclosed embodiments, there is provided an interaction method for digital objects, including: receiving an operation instruction for operating a target subject by an operation subject, wherein the operation instruction comprises: the first operation identification, the target main body identification and the operation action information of the control main body are provided, the first operation identification is used for identifying a first operation digital object of the control main body, and the target main body identification is used for identifying the target main body; acquiring a first attribute digital object of the control main body according to the first operation digital object identified by the first operation identifier, wherein the first attribute digital object comprises: the corresponding relation between the second operation identification and the target subject identity identification and the operation action information; acquiring a second operation identifier corresponding to the identity identifier of the target subject and the operation action information according to the first attribute digital object, wherein the second operation identifier is used for identifying a second operation digital object of the target subject; and interacting the second operation digital object identified by the second operation identification with the target main body so as to enable the target main body to execute the operation action information.
Optionally, in the method according to any one of the above embodiments of the present disclosure, the interacting, with the target subject, the second operation digital object identified by the second operation identifier to enable the target subject to execute the operation action information includes: acquiring the second operation digital object according to the second operation identifier; modifying the state information of the target main body in a second attribute digital object of the target main body by using the second operation digital object to obtain an updated second attribute digital object; and interacting with the target subject by utilizing the updated second attribute digital object so as to enable the target subject to execute the operation action information.
Optionally, in the method according to any of the above embodiments of the present disclosure, the method further includes: receiving a manipulation subject digital object creation request to create the first operation digital object and the first attribute digital object, wherein the manipulation subject digital object creation request includes: a base identification of the manipulation subject; acquiring a basic digital object of the control body identified by the basic identification of the control body according to the basic identification of the control body, wherein the basic digital object of the control body comprises a creation rule of a template digital object of the control body; generating a template digital object of the manipulation subject according to the basic digital object of the manipulation subject, wherein the template digital object of the manipulation subject comprises: the creation rule of the operation digital object of the control body and the creation rule of the attribute digital object of the control body; and generating the first operation digital object and the first attribute digital object based on the template digital object of the control body.
Optionally, in the method according to any of the above embodiments of the present disclosure, the method further includes: receiving a target subject digital object creation request to create the second operation digital object and the second attribute digital object, wherein the target subject digital object creation request includes: a base identification of the target subject; acquiring a basic digital object of the target subject identified by the basic identification of the target subject according to the basic identification of the target subject, wherein the basic digital object of the target subject comprises a creation rule of a template digital object of the target subject; generating a template digital object of the target subject according to the basic digital object of the target subject, wherein the template digital object of the target subject comprises: creating rules of the operation digital object of the target subject and creating rules of the attribute digital object of the target subject; generating the second operation digital object and the second attribute digital object based on the template digital object of the target subject.
Optionally, in the method according to any of the above embodiments of the present disclosure, the operation instruction further includes a control subject identity, where the control subject identity is used to identify the control subject; the method further comprises the following steps: determining the authority corresponding to the identity of the control subject; and responding to the authority corresponding to the control main body identity identification indicating that the control main body can operate the target main body, and executing the operation of acquiring a first attribute digital object of the control main body according to the first operation digital object identified by the first operation identification.
In one aspect of the disclosed embodiments, an interactive device for digital objects is provided, which includes: the first receiving module is used for receiving an operation instruction of an operation main body for operating a target main body, wherein the operation instruction comprises the following steps: the system comprises a first operation identifier, a target subject identity identifier and operation action information of the control subject, wherein the first operation identifier is used for identifying a first operation digital object of the control subject, and the target subject identity identifier is used for identifying the target subject; a first obtaining module, configured to obtain a first attribute digital object of the manipulation main body according to the first operation digital object identified by the first operation identifier, where the first attribute digital object includes: the corresponding relation between the second operation identification and the target subject identity identification and the operation action information; a second obtaining module, configured to obtain, according to the first attribute digital object, a second operation identifier corresponding to both the target subject identity identifier and the operation action information, where the second operation identifier is used to identify a second operation digital object of the target subject; and the interaction module is used for interacting with the target main body by using the second operation digital object identified by the second operation identifier so as to enable the target main body to execute the operation action information.
Optionally, in an apparatus according to any one of the above embodiments of the present disclosure, the interaction module includes: the acquisition sub-module is used for acquiring the second operation digital object according to the second operation identifier; the state modification submodule is used for modifying the state information of the target main body in the second attribute digital object of the target main body by using the second operation digital object to obtain an updated second attribute digital object; and the interaction submodule is used for interacting with the target main body by utilizing the updated second attribute digital object so as to enable the target main body to execute the operation action information.
Optionally, in the apparatus according to any of the above embodiments of the present disclosure, the apparatus further includes: a second receiving module, configured to receive a manipulation subject digital object creation request for creating the first operation digital object and the first attribute digital object, where the manipulation subject digital object creation request includes: a base identification of the manipulation subject; a third obtaining module, configured to obtain, according to a basic identifier of the control main body, a basic digital object of the control main body identified by the basic identifier of the control main body, where the basic digital object of the control main body includes a creation rule of a template digital object of the control main body; a first generating module, configured to generate a template digital object of the manipulating body according to a basic digital object of the manipulating body, where the template digital object of the manipulating body includes: creating rules of operation digital objects of the control body and creating rules of attribute digital objects of the control body; and the second generation module is used for generating the first operation digital object and the first attribute digital object based on the template digital object of the control main body.
In one aspect of the disclosed embodiments, there is provided an electronic device including: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, wherein when the computer program is executed, the interaction method of the digital object is realized.
In one aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned interaction method for digital objects.
The embodiment of the disclosure provides an interaction method and device of digital objects, electronic equipment and a storage medium, and the method comprises the following steps: receiving an operation instruction of an operation main body for operating a target main body; then, according to a first operation digital object identified by a first operation identifier in the operation instruction, a first attribute digital object of the operation main body is obtained, then, according to a corresponding relation between a second operation identifier included in the first attribute digital object and the identity identifier and the operation action information of the target main body, the identity identifier and the operation action information of the target main body of the operation instruction, a second operation identifier is determined, and the second operation digital object identified by the second operation identifier is used for interacting with the target main body, so that the target main body executes the operation action information. Therefore, in the embodiment of the present disclosure, by manipulating the first manipulation digital object of the main body, the first attribute digital object, and the second manipulation digital object of the target body, the association between the digital object of the manipulation main body and the digital object of the target body is established, so that the manipulation of the target body by the manipulation main body can be realized by using the interaction between the first manipulation digital object of the manipulation main body and the second manipulation digital object of the target body.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 illustrates a flow diagram of one embodiment of a method of interacting digital objects of an embodiment of the present disclosure;
fig. 2 shows a flowchart of step S140 of an embodiment of the present disclosure;
FIG. 3 shows a schematic diagram of an application example of an embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of one embodiment of a method of interacting digital objects of embodiments of the present disclosure;
fig. 5 shows a schematic diagram of a structure of a basic digital object of a manipulation body of an embodiment of the present disclosure;
FIG. 6 illustrates a flow diagram of one embodiment of a method of interacting a digital object of an embodiment of the present disclosure;
FIG. 7 illustrates a flow diagram of one embodiment of a method of interacting a digital object of an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram illustrating an embodiment of an interactive apparatus for digital objects according to the present disclosure;
fig. 9 is a schematic structural diagram of an embodiment of an application of the electronic device of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one element from another, and are not intended to imply any particular technical meaning, nor is the necessary logical order between them.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the present disclosure may be generally understood as one or more, unless explicitly defined otherwise or indicated to the contrary hereinafter.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
The disclosed embodiments may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Fig. 1 shows a flow diagram of an interaction method of a digital object in an embodiment of the disclosure. The present embodiment can be applied to an electronic device, and as shown in fig. 1, the method for providing an interactive method of a digital object of the present embodiment includes the following steps:
step S110, receiving an operation instruction for the control subject to operate on the target subject.
Wherein, the operation instruction comprises: the first operation identification, the target subject identification and the operation action information of the control subject, wherein the first operation identification is used for identifying a first operation digital object of the control subject, and the target subject identification is used for identifying the target subject.
The manipulation main body is used for manipulating the main body for a target, for example, the manipulation main body may be a robot, a mechanical arm, or the like. The target subject may be subjected to manipulation by a manipulation subject, for example, the target subject may be a container, an electronic door, or the like.
The Digital Object (DO) may be a data file carrying Digital information. The first operation digital object may include: the first operation identification and the main body information of the first operation digital object. The body information of the first operation digital object may include an operation code for an interactive operation. For example, the operation code for the interactive operation may be constructed by JS language or C language.
The target subject identity is used to uniquely identify the target subject. The operation action information may include an action of the manipulation subject to operate the target subject. For example, the target subject is a container, the control subject is a robot, and the robot is to perform an operation of closing a door of the container.
Step S120, obtaining a first attribute digital object of the control body according to the first operation digital object identified by the first operation identifier.
Wherein the first attribute digital object comprises: and the second operation identification is in corresponding relation with the target subject identity identification and the operation action information. In the corresponding relation between the second operation identifiers and the target subject identity identifiers and the operation action information, each second operation identifier corresponds to one target subject identity identifier and one operation action information.
The body information of the first operation digital object may further include a first attribute identification for uniquely identifying the first attribute digital object. The first attribute digital object may include: the method comprises a first attribute identification and main body information of a first attribute digital object, wherein the main body information of the first attribute digital object comprises a target main body list, and the target main body list comprises a corresponding relation between a second operation identification and a target main body identity identification and operation action information.
In one implementation manner, the first operation identifier may include first operation digital object storage information, the first attribute identifier includes storage information of the first attribute digital object, and the first operation digital object may be obtained according to the first operation identifier, and the first attribute digital object may be obtained according to the first attribute identifier.
Step S130, according to the first attribute digital object, acquiring a second operation identifier corresponding to both the target subject identity identifier and the operation action information.
Wherein the second operation identification is a second operation digital object for identifying the target subject. The second operation identifier includes stored information of the second operation digital object.
The second operation digital object includes: the second operation identification and the main body information of the second operation digital object. The body information of the second operand digital object may include an operation code for the interactive operation.
In one implementation manner, based on the operation code in the body information of the first operation digital object, the second operation identifier corresponding to both the target body identity identifier and the operation action information may be determined according to the corresponding relationship between the second operation identifier in the body information of the first attribute digital object and the target body identity identifier and the operation action information.
And step S140, interacting the second operation digital object identified by the second operation identifier with the target main body so as to enable the target main body to execute the operation action information.
Wherein the second operation digital object may include the second operation identification and the body information of the second operation digital object. The body information of the second operation digital object may include an operation code for an interactive operation.
In one implementation, the second operation digital object of the target subject may be acquired according to the second operation identifier based on the operation code in the subject information of the first operation digital object. The target subject may be interacted with based on an operation code in the subject information of the second operation digital object to cause the target subject to execute the operation action information.
In the embodiment of the disclosure, the association between the digital object of the manipulation body and the digital object of the target body is established through the first manipulation digital object of the manipulation body, the first attribute digital object, and the second manipulation digital object of the target body, so that the manipulation of the manipulation body on the target body can be realized by using the interaction between the first manipulation digital object of the manipulation body and the second manipulation digital object of the target body.
In an alternative embodiment, as shown in fig. 2, step S140 in the embodiment of the present disclosure may further include the following steps:
and step S141, acquiring a second operation digital object according to the second operation identifier.
And acquiring a second operation digital object of the target subject according to the second operation identifier.
Step S142, modifying the state information of the target subject in the second attribute digital object of the target subject by using the second operation digital object, so as to obtain an updated second attribute digital object.
The second operation digital object may further include a second attribute identifier, where the second attribute identifier is used to uniquely identify a second attribute digital object of the target subject, and the second attribute identifier includes storage information of the second attribute identifier. The second attribute digital object may include: the second attribute identification and the subject information of the second attribute digital object, the subject information of the second attribute digital object includes state information of the target subject, the state information of the target subject is used for representing the state of the target subject, for example, the target subject is a container, and the state information of the target subject may be the state of opening or closing a door of the container. The second attribute digital object after the state information of the target subject is modified may be referred to as an updated second attribute digital object.
In one implementation, the second attribute digital object may be obtained according to the second attribute identifier, and the status information of the target subject in the second attribute digital object may be modified based on an operation code in the subject information of the second operation digital object, so that the status information of the target subject conforms to the operation action information. For example, when the target subject is a container and the operation information is closing of the door of the container, the state information of the container in the second attribute digital object is modified to a closed state based on the operation code in the subject information of the second operation digital object so that the state information of the container corresponds to the closing of the door of the container.
In one implementation, the body information of the first attribute digital object may further include a second attribute identifier. Before modifying the status information of the target subject in the second attribute digital object, the second attribute digital object may be obtained according to the second attribute identifier, it is determined whether the status information of the target subject in the second attribute digital object is consistent with the operation action information, and when not, obtaining the second operation digital object according to the second operation identifier is performed. For example, the state information of the container in the second attribute digital object is that the door of the container is open, and the operation action information is that the door of the container is closed.
And step S143, interacting with the target subject by using the updated second attribute digital object, so that the target subject executes the operation action information.
When the second attribute digital object is detected to be updated, a signal corresponding to the state information of the target subject in the second attribute digital object can be output to the target subject, so that the target subject can execute the operation action information.
For example, the target subject is a container, and the operation action information is closing of a door of the container. When the second attribute digital object is detected to be updated, the state information of the container determined from the updated second attribute digital object is that the container door is closed, at the moment, a signal for closing the container door is output to the container, and the container executes the signal to close the container door.
The following is an application example of the interaction method of the digital object in the embodiment of the present disclosure. The target subject is exemplified by a container, a manipulation subject is exemplified by a robot, and operation information is exemplified by a container door closing.
FIG. 3 shows an interaction diagram of a robot and a container, as shown in FIG. 3, the robot has a robot instance digital object identification (first attribute identification), a door closing operation digital object identification (first operation identification) of an execution container, and a door opening operation digital object identification (first operation identification) of the execution container. The container has a container instance digital object identification (second attribute identification), a closing door operation digital object identification (second operation identification), and an opening door operation digital object identification (second operation identification).
The robot instance digital object identifier, the execution container door closing operation digital object identifier and the execution container door opening operation digital object identifier can be stored on a digital object Server (Do Server) A; the container instance digital object identification, the closing door operation digital object identification and the opening door operation digital object identification may be stored on the digital object server B. The digital object server a and the digital object server B are connected, the digital object server a and the digital object server B are connected to an Industrial Internet (Industrial Internet) for parsing the identity to obtain the digital object. The robot instance digital object identification, the execution container closing door operation digital object identification, the execution container opening door operation digital object identification, the container instance digital object identification, the container closing door operation digital object identification, the opening door operation digital object identification, the template identification of the container template digital object, and the template identification of the robot template digital object can be stored in the industrial internet, and a user can obtain the identifications from the digital object server A, the digital object server B or the industrial internet.
When the digital object server A receives the operation instruction, whether the closing door operation digital object identification of the execution container in the operation instruction is stored in the digital object server A or not can be checked, when the operation instruction is stored, the closing door operation digital object identification of the execution container in the operation instruction is analyzed through the industrial internet, the closing door operation digital object of the execution container identified by the closing door operation digital object identification of the execution container is obtained, and the closing door operation digital object of the execution container comprises: executing the identification of the closing door operation digital object of the container and executing the main body information of the closing door operation digital object of the container, wherein the main body information of the closing door operation digital object of the container comprises an operation code for realizing the operation of the robot instance digital object and the identification of the robot instance digital object, the robot instance digital object identification is analyzed through the industrial internet to obtain the robot instance digital object identified by the robot instance digital object identification, and the robot instance digital object comprises: the robot instance digital object identification and the body information of the robot instance digital object, the body information of the robot instance digital object comprises a container list and a container instance digital object identification, and the container list comprises: a plurality of opening and closing door operation digital object identifications, a corresponding relation between each opening and closing door operation digital object identification and a container identity identification (target subject identity identification) and the closing of the container door (operation action information), and a corresponding relation between each opening door operation digital object identification and the opening of the container door (operation action information); based on the fact that the main information of the closing door operation digital object of the executed container comprises an operation code, the closing door operation digital object identification corresponding to both the container identity identification and the container door closing in the operation instruction is obtained from a container list, the closing door operation digital object identification is sent to a data object server B, whether the relevant door operation digital object identification is stored in the digital object server B or not can be checked, when the relevant door operation digital object identification is stored, the data object server B analyzes the closing door operation digital object identification through the industrial internet, the closing door operation digital object identified by the closing door operation digital object identification is obtained, the main information of the closing door operation digital object comprises the container example digital object identification and the operation code used for controlling the container example digital object, the container example digital object identification is analyzed through the industrial internet, the container example digital object identified by the container example digital object identification is obtained, and the container example digital object identified by the container example digital object identification comprises: the container instance digital object identifier and the subject information of the container instance digital object, the subject information of the container instance digital object may include: status information of the container; and modifying the state information of the container in the main body information of the container instance digital object into the closing of the container door based on the operation code in the main body information of the closing door operation digital object to obtain an updated container instance digital object, outputting and closing information to the container when the updated container instance digital object is detected, and executing the signal to close the door of the container by the container.
The industrial internet is a novel infrastructure, an application mode and an industrial ecology deeply integrated by a new generation of information communication technology and industrial economy, and a brand-new manufacturing and service system covering a whole industrial chain and a whole value chain is constructed by comprehensively connecting people, machines, objects, systems and the like. The identification analysis system is a basic system of the industrial Internet. And the identification is used for uniquely representing one object in the identification analysis system. The digital object server has management capabilities for digital objects, identity management capabilities, secure communication protocols, personalization of digital objects, digital identity authentication, and authorization management. The digital object management capability is that the digital object server can create, modify and delete the digital object and has the capability of storing the digital object; the identification management capability is that the digital object server can be connected with the industrial internet, and can realize identification registration, identification modification and identification deletion; the safety communication protocol is a communication protocol which supports safety for the digital object server, opens a communication interface based on the safety protocol, and realizes the interaction with the digital object server through the protocol interface; the digital object personalized operation is that a digital object server can execute a customized command set, for example, an operating environment with JavaScript syntax meets the method execution of the digital object operation; digital identity authentication and authorization management for a digital object server may implement distributed identity authentication of a digital object based on an identity and support management of a rights list for the digital object after authentication.
In an alternative embodiment, as shown in fig. 4, the method for interacting digital objects in the embodiment of the present disclosure further includes the following steps:
in step S210, a request for creating a manipulation subject digital object for creating a first manipulation digital object and a first attribute digital object is received.
Wherein the manipulation subject digital object creation request includes a base identification of the manipulation subject. The basic identifier of the control body is used for identifying the basic digital object of the control body, and the basic identifier of the control body may include stored information of the basic digital object of the control body.
Step S220, obtaining a basic digital object of the control subject identified by the basic identifier of the control subject according to the basic identifier of the control subject.
Wherein the basic digital object of the manipulation subject includes a creation rule of the template digital object of the manipulation subject. Manipulating the underlying digital object of the subject may include: the basic identification of the control main body and the main body information of the basic digital object of the control main body, wherein the main body information of the basic digital object of the control main body comprises a creation rule of a template digital object of the control main body.
In one implementation, the first operation digital object, the first attribute digital object, the second operation digital object, and the second attribute digital object in the embodiment of the present disclosure, the template digital object of the manipulation body, the base digital object of the manipulation body, the template digital object of the target body, and the base digital object of the target body have the same structure. The following description will take as an example the structure of a basic digital object that manipulates a subject.
As shown in fig. 5, the basic digital object for manipulating the subject includes: a digital object ID (Identity document), a type (type), and an attribute list, the attribute list including: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID.
The digital object ID includes an identification identifying the digital object, here a base identification, and the like. The type may include a base, a template, an operation, an instance, a template identifier identifying a template digital object, etc., where the digital object whose type is the template digital object, the digital object whose type is the operation digital object, the digital object whose type is the instance or the template identifier identifying the template digital object is the attribute digital object, and the digital object whose type is the base digital object, where the type is the base. The profile includes a simple description of the underlying digital object, and the subject information includes custom data fields, code, e.g., target subject list, operation code, etc., here including creation rules (custom fields) that manipulate the subject's template digital object. The permission list includes: the rights management set may include a read rights list and a write rights list, the rights list supports SELF, publish, and a designated user, when the rights of the basic digital object of the manipulation body are SELF or the designated user, the write rights list may include a user that can read and modify the basic digital object of the manipulation body, the read rights list may include a user that can only read the basic digital object of the manipulation body, when the rights of the basic digital object of the manipulation body are publish, the write rights list may be set such that all users can read and modify the basic digital object of the manipulation body, that is, the basic digital object of the manipulation body of the user whose rights are SELF or the designated user is a read-only right, at this time, the user included in the write rights list may read and modify the basic digital object of the manipulation body, and the user included in the read rights list may only read and modify the basic digital object of the manipulation body for all users who use the basic number of the manipulation body. The creation time is a creation time of a base digital object of the manipulation body, the creation person is a person who creates the base digital object of the manipulation body, the modification time includes a time at which the base digital object of the manipulation body is modified, the modifier includes a modifier ID of a person who modifies the base digital object of the manipulation body (for example, the modifier ID uniquely represents the modifier), a time stamp at which the thing ID was last modified on the base digital object of the manipulation body, and an ID of the modifier.
In one implementation, the creation rules for manipulating a template digital object of a subject may include: structural attributes, supported programming languages (e.g., JS language, C language, etc.), and contents to be set in the body information of the template digital object of the manipulation subject (e.g., creation rules of the manipulation digital object of the manipulation subject and creation rules of the attribute digital object of the manipulation subject, constraint methods of the digital object structure of the manipulation subject, etc.). The structural attributes in the creation rules of the template digital object manipulating the subject include: the structure that the template digital object needs to possess. The structure of the template digital object of the control body is the same as the structure of the basic digital object of the control body, and details are not repeated here, wherein the type of the template digital object of the control body includes type.
In one implementation manner, the basic digital object of the manipulation main body identified by the basic identifier of the manipulation main body may be obtained according to the storage information of the basic digital object of the manipulation main body in the basic identifier of the manipulation main body.
In step S230, a template digital object of the manipulation body is generated according to the basic digital object of the manipulation body.
Wherein the template digital object of the manipulation body comprises: a creation rule of an operation digital object of the manipulation subject and a creation rule of an attribute digital object of the manipulation subject.
The template digital object of the manipulation body may be created based on a creation rule of the template digital object of the manipulation body in the basic digital object of the manipulation body, and a structure of the template digital object of the manipulation body is the same as a structure of the basic digital object of the manipulation body, which is not described herein again. Wherein, the main body information of the template digital object of the control main body comprises: the creating rule of the operation digital object of the control body and the creating rule of the attribute digital object of the control body, a control body operation list can be further set in the body information in the template digital object of the control body, and the control body operation list comprises a first operation identifier of a first operation digital object generated based on the creating rule of the operation digital object of the control body of the template digital object of the control body.
In one implementation, the creation rule of the operation digital object of the manipulation subject may be set according to the actual situation. For example, the creation rule of the operation digital object of the manipulation subject may include: the structural attribute and the supported programming language (for example, JS language), the content that needs to be set in the subject information of the operation digital object of the manipulation subject (for example, it is necessary to include an operation code, a first attribute identification, and the like), and the like. The structural attributes in the creation rule of the operation digital object of the manipulation subject include structures that the operation digital object needs to have. The structure of the operation digital object of the control body is the same as the structure of the basic digital object of the control body, and will not be described herein again. The creation rule of the attribute digital object of the manipulation subject may include: the structural properties and supported programming language (e.g., JS language), the contents to be set in the body information of the property digital object of the manipulation body (e.g., a target body list needs to be included), and the like. The structural attributes in the creation rules of the attribute digital object of the control subject include the structures that the attribute digital object needs to possess. The structure of the attribute digital object of the control body is the same as that of the basic digital object of the control body, and therefore, the description thereof is omitted here. In one implementation, manipulating the template digital object of the subject may further include manipulating a constraint method of the digital object structure of the subject. The constraint method of the digital object structure of the manipulation body is used for constraining (checking) the structure of the first manipulation digital object and the structure of the first attribute digital object so that the structure of the first manipulation digital object conforms to the structure attribute specified in the creation rule of the manipulation digital object of the manipulation body and the structure of the first attribute digital object conforms to the structure attribute specified in the creation rule of the attribute digital object of the manipulation body. For example, the constraint method for manipulating the digital object structure of the subject may be JSON Schema or the like.
In step S240, a first operation digital object and a first attribute digital object are generated based on the template digital object of the manipulation subject.
The first operation digital object may be created based on a creation rule of an operation digital object of the control body in the template digital object of the control body, and a structure of the first operation digital object is the same as a structure of a basic digital object of the control body, which is not described herein again. The type of the first operand object includes type, operation, and programming and/or custom field setting may be performed in the body information in the first operand object using a programming language supported in a creation rule of the operand object that manipulates the body to generate an operation code, while adding the first attribute identification in the body information thereof. Wherein the operation code in the first operation digital object can realize the interaction with the first attribute digital object to make the target subject execute the operation action information. The first operation identifier may be generated according to a preset identifier generation rule. The first manipulation identifier may be recorded in a manipulation subject manipulation list of the template digital object of the manipulation subject so that the first manipulation digital object and the template digital object of the manipulation subject are bound.
The first attribute digital object may be created based on a creation rule of an attribute digital object of a manipulation body in a template digital object of the manipulation body, a structure of the first attribute digital object is the same as a structure of a basic digital object of the manipulation body, and details are not repeated here, a type of the first attribute digital object includes type, USER (instance) or a template identifier that identifies the template digital object of the manipulation body, a programming language supported in the creation rule of the attribute digital object of the manipulation body may be used in body information in the first attribute digital object to perform programming and/or custom field setting to generate a target body list, and the target body list includes: the corresponding relation between the second operation identification and the target subject identity identification and the operation action information, and the subject information in the first attribute digital object can also comprise a second attribute identification.
In one implementation, the structure of the first operation digital object and the structure of the first attribute digital object may be verified by using a constraint method of a digital object structure of a manipulation main body in a template digital object of the manipulation main body, to determine whether the structure of the first manipulation digital object conforms to a structure specified by a structure attribute in a creation rule of the operation digital object of the manipulation main body, and determine whether the structure of the first attribute digital object conforms to a structure specified by a structure attribute in a creation rule of the attribute digital object of the manipulation main body, where when it is determined that the structure of the first manipulation digital object conforms to the structure specified by the structure attribute in the creation rule of the operation digital object of the manipulation main body, it is determined that the first manipulation digital object is successfully created, and otherwise, it is determined that the first manipulation digital object is unsuccessfully created; and when the structure of the first attribute digital object is determined to be in accordance with the structure specified by the structure attribute in the creating rule of the attribute digital object of the control main body, determining that the first attribute digital object is successfully created, otherwise, determining that the first attribute digital object is failed to be created.
In an alternative embodiment, as shown in fig. 6, the method for interacting digital objects in the embodiment of the present disclosure further includes the following steps:
in step S310, a target subject digital object creation request to create a second operation digital object and a second attribute digital object is received.
Wherein the target subject digital object creation request comprises: a base identification of the target subject. The base identifier of the target subject is used to identify the base digital object of the target subject, and the base identifier of the target subject may include stored information of the base digital object of the target subject.
Step S320, obtaining the basic digital object of the target subject identified by the basic identifier of the target subject according to the basic identifier of the target subject.
Wherein the base digital object of the target subject includes a creation rule of a template digital object of the target subject.
The structure of the basic digital object of the target subject is the same as that of the basic digital object of the manipulation subject, and will not be described herein again. The body information of the base digital object of the target body includes a creation rule of the template digital object of the target body.
In one implementation, the creation rules of the template digital object of the target subject may include: the structure attribute, the supported programming language (e.g., JS language, C language, etc.), and the content that needs to be set in the body information of the template digital object of the target body (e.g., the creation rule of the operation digital object of the target body and the creation rule of the attribute digital object of the target body, the constraint method of the digital object structure of the target body, etc.). The structural attributes in the creation rules of the template digital object of the target subject include the structure that the template digital object of the target subject needs to possess. The structure of the template digital object of the target subject is the same as the structure of the basic digital object of the control subject, and details are not repeated here, wherein the type of the template digital object of the target subject includes type.
In one implementation, the basic digital object of the target subject identified by the basic identifier of the target subject may be obtained according to the storage information of the basic digital object of the control subject in the basic identifier of the target subject.
Step S330, according to the basic digital object of the target subject, generating a template digital object of the target subject.
Wherein the template digital object of the target subject includes: the creation rules of the operation digital object of the target subject and the creation rules of the attribute digital object of the target subject.
The template digital object of the target subject may be created based on a creation rule of the template digital object of the target subject in the basic digital objects of the target subject, and a structure of the template digital object of the target subject is the same as a structure of the basic digital object of the manipulation subject, which is not described herein again. The subject information of the template digital object of the target subject includes: the creation rule of the operation digital object of the target subject and the creation rule of the attribute digital object of the target subject, and a target subject operation list may be further set in the subject information of the template digital object of the target subject, and the target subject operation list includes a second operation identifier of a second operation digital object generated based on the creation rule of the operation digital object of the target subject of the template digital object of the target subject.
In one implementation, the creation rules of the operational digital objects of the target subject may be set according to actual conditions. For example, the creation rules of the operational digital object of the target subject may include: the structural attribute and the supported programming language (e.g., JS language), the content that needs to be set in the body information of the operation digital object of the target body (e.g., the operation code, the second attribute identification, and the like need to be included), and the like. The structural attributes in the creation rule of the operation digital object of the target subject include structures that the operation digital object of the target subject needs to have. The structure of the operation digital object of the target subject is the same as that of the basic digital object of the manipulation subject, and will not be described herein again. The creation rules of the attribute digital object of the target subject may include: the structural attribute and the supported programming language (e.g., JS language), the content that needs to be set in the body information of the attribute digital object of the target body (e.g., status information of the target body), and the like. The structure attribute in the creation rule of the attribute digital object of the target subject includes a structure that the attribute digital object of the target subject needs to have. The structure of the attribute digital object of the target subject is the same as that of the basic digital object of the manipulation subject, and will not be described herein again.
In one implementation, the template digital object of the target subject may further include a constraint method of the digital object structure of the target subject. The constraint method of the digital object structure of the target subject is used to constrain (check) the structure of the second operation digital object and the structure of the second attribute digital object so that the structure of the second operation digital object conforms to the structure attribute specified in the creation rule of the operation digital object of the target subject and the structure of the second attribute digital object conforms to the structure attribute specified in the creation rule of the attribute digital object of the target subject. For example, the constraint method for the digital object structure of the target subject may be JSON Schema or the like. Step S340 generates a second operation digital object and a second attribute digital object based on the template digital object of the target subject.
The second operation digital object may be created based on a creation rule of the operation digital object of the target subject in the template digital object of the target subject, and a structure of the second operation digital object is the same as a structure of the basic digital object of the manipulation subject, which is not described herein again. The type of the second operation digital object includes type, operation, and the second operation digital object may be programmed and/or customized with a programming language supported in a creation rule of the operation digital object of the target subject to generate an operation code, and at the same time, a second attribute identifier may be added to the body information of the second operation digital object, and the operation code may implement modification of the body information of the target subject in the second attribute digital object to cause the target subject to execute the operation action information. The second operation identifier may be generated according to a preset identifier generation rule. The second manipulation identification may be recorded in a target subject manipulation list of the template digital object of the target subject so that the second manipulation digital object and the template digital object of the target subject are bound.
The second attribute digital object may be created based on a creation rule of the attribute digital object of the target subject in the template digital object of the target subject, and a structure of the second attribute digital object is the same as a structure of the basic digital object of the manipulation subject, which is not described herein again. The type of the second attribute digital object includes type. USER (instance) or a template identification of a template digital object identifying the target subject, and the programming and/or custom field settings may be made in the second attribute digital object using a programming language supported in the creation rules of the attribute digital object of the target subject to generate status information of the target subject, which may be represented by boolean values.
In one implementation, the structure of the second operation digital object and the structure of the second attribute digital object may be verified by using a constraint method of a digital object structure of a target subject in a template digital object of the target subject, to determine whether the structure of the second operation digital object conforms to a structure specified by a structure attribute in a creation rule of the operation digital object of the target subject and whether the structure of the second attribute digital object conforms to a structure specified by a structure attribute in a creation rule of the attribute digital object of the target subject, and when it is determined that the structure of the second operation digital object conforms to the structure specified by the structure attribute in the creation rule of the operation digital object of the target subject, it is determined that the second operation digital object is successfully created, otherwise, it is determined that the second operation digital object is failed to be created; and when the structure of the second attribute digital object is determined to be in accordance with the structure specified by the structure attribute in the creating rule of the attribute digital object of the target main body, determining that the second attribute digital object is successfully created, otherwise, determining that the second attribute digital object is failed to be created.
In an optional embodiment, the operation instruction in the embodiment of the present disclosure further includes an identity of the manipulation principal, where the identity of the manipulation principal is used to identify the manipulation principal. As shown in fig. 7, the method for interacting a digital object in the embodiment of the present disclosure further includes the following steps:
step S410, determining the authority corresponding to the identity of the control subject.
In one implementation, the corresponding relationship between the identity of the control subject and the authority can be preset, and the authority corresponding to the identity of the control subject is determined based on the corresponding relationship between the identity of the control subject and the authority and the identity of the control subject.
In an implementation manner, the identity identifier of the control body may further include storage information of an identity digital object of the control body, and the identity digital object of the control body may be obtained according to the storage information of the identity digital object of the control body in the identity identifier of the control body, and the identity digital object of the control body may be obtained. The structure of the identity digital object of the control body is the same as that of the basic digital object of the control body, and is not described herein again. The authority of the control subject can be included in the subject information of the identity digital object of the control subject. The type of identity digital object that manipulates the subject includes an identity, represented as an identity digital object. The authority of the manipulation principal in the identity digital object of the manipulation principal may be determined as the authority of the manipulation principal.
Step S420, in response to the permission indication corresponding to the identity of the control subject indicating that the control subject can operate the target subject, executing an operation of acquiring the first attribute digital object of the control subject according to the first operation digital object identified by the first operation identity.
When the authority corresponding to the identity of the control subject indicates that the control subject can operate the target subject, the operations according to step S120 and after step S120 are executed.
The following is an application example of the interaction method of the digital object in the embodiment of the present disclosure. The target subject is a container, and the control subject is a robot.
1, a door closing operation digital object (second operation digital object) and a container instance digital object (second attribute digital object) are created.
When a container digital object creation request (target subject digital object creation request) is received, the base digital object of the container identified by the base identification of the container is obtained according to the base identification of the container.
And creating the template digital object of the container according to the creating rule of the template digital object of the container in the basic digital object of the container. The template digital object of the container includes: a digital object ID, a type, and a list of attributes, the list of attributes comprising: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID. Wherein the digital object ID of the template digital object of the container comprises a template identification of the template digital object of the container, e.g., giving the template digital object of the container 0.0.0/HG001, the type in the template digital object of the container comprises TYPE. Creation rules of an operation digital object of a container, creation rules of an attribute digital object of a container, a container operation list (target subject operation list), and a constraint method of a digital object structure of a container. The rules for creating the operational digital object of the container may include: the structural attribute and the supported programming language are JS language, and the subject information of the closing door operation digital object needs to include an operation code and a container instance digital object identification (second attribute identification). The creation rules for the property digital object of the container may include: the structural attribute and the supported programming language are JS language, and the subject information of the container instance digital object needs to include: status information of the door of the container (status information of the target subject). The constraint method of the digital object structure of the container is JSON Schema.
Creating a door closing operation digital object according to a creating rule of the container operation digital object in the template digital object of the container, wherein the door closing operation digital object comprises the following steps: a digital object ID, a type, and a list of attributes, the list of attributes comprising: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID. The digital object ID of the door closing operation digital object includes a door closing operation digital object identifier (second operation identifier), for example, the door closing operation digital object identifier is 0.0.0/CZ-SL001. The identification 0.0.0.0/CZ-SL 001 is added to the container operation list. The type of the closing door operation digital object includes type. Operation, and the operation code may be generated by programming in JS language and/or custom field setting in the subject information of the closing door operation digital object, while adding the container instance digital object identification (second attribute identification) in the subject information thereof. The operation code is used to effect a modification of the "status information of the door of the container" to "off". The structure of the door closing operation digital object can be verified by a constraint method of the digital object structure of the container, when the structure of the door closing operation digital object is determined to be in accordance with the structure specified by the structure attribute in the creation rule of the operation digital object of the container, the door closing operation digital object is determined to be successfully created, and otherwise, the door closing operation digital object is determined to be failed to be created. The container instance digital object may be created according to creation rules of the property digital object of the container in the template digital object of the container, the container instance digital object comprising: a digital object ID, a type, and a list of attributes, the list of attributes comprising: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID. Wherein the digital object ID of the container instance digital object comprises a container instance digital object identifier, for example, giving the container instance digital object 0.0.0/HG-SL0001, the type of the container instance digital object comprises 0.0.0/HG001, the JS programming language is used for programming in the second attribute digital object and/or the custom field is used for generating the state information of the door of the container, and the state information of the door of the container can adopt a Boolean value. The structure of the container instance digital object can be verified by a constraint method of the container digital object structure, when the structure of the container instance digital object is determined to be in accordance with the structure specified by the structure attribute in the creation rule of the container attribute digital object, the container instance digital object is determined to be successfully created, otherwise, the container instance digital object is determined to be failed to be created. 2, a closing door operation digital object (first operation digital object) and a robot instance digital object (first attribute digital object) of the execution container are created.
When a robot digital object creation request (an operation main body digital object creation request) is received, the basic digital object of the robot identified by the basic identification of the robot is obtained according to the basic identification of the robot.
Creating a template digital object of the robot according to a creation rule of the template digital object of the robot in the basic digital object of the robot, the template digital object of the robot comprising: a digital object ID, a type, and a list of attributes, the list of attributes comprising: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID. Wherein the digital object ID of the template digital object of the robot includes a template identifier of the template digital object of the robot, for example, the template identifier of the template digital object given to the robot is 0.0.0/JQR001, the type in the template digital object of the robot includes type. A creation rule of an operation digital object of the robot, a creation rule of an attribute digital object of the robot, a robot operation list (manipulation subject operation list), and a constraint method of a digital object structure of the robot. The creation rule of the digital object for the operation of the robot may include: the structural attribute and the supported programming language are JS language, and the subject information of the closing door operation digital object of the execution container needs to include the operation code and the robot instance digital object identification (first attribute identification). The creation rules of the attribute digital object of the robot may include: the structural attributes and supported programming language are JS language, and a container list (target subject list) needs to be included in the subject information of the robot instance digital object. The constraint method of the digital object structure of the container is JSON Schema.
Creating a door closing operation digital object for executing the container according to a creating rule of the operation digital object of the robot in the template digital object of the robot, wherein the door closing operation digital object for executing the container comprises the following steps: a digital object ID, a type, and a list of attributes, the list of attributes comprising: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID. Wherein the digital object ID of the digital object performing the door closing operation of the container comprises a door closing operation digital object identifier (first operation identifier) of the container, for example, the digital object identifier giving the door closing operation of the container is 0.0.0/CZ-SL002. The identification 0.0.0/CZ-SL002 is added to the robot operation list. The type of the digital object for executing the door closing operation of the container comprises type. The operation code realizes the door closing operation of the management container, namely, the door of the container is closed according to the robot example digital object identification and the container body identification (target body identification). The method can be used for verifying the structure of the digital object for executing the door closing operation of the container by using a constraint method of the digital object structure of the robot, when the structure of the digital object for executing the door closing operation of the container is determined to accord with the structure specified by the structure attribute in the creation rule of the digital object for executing the operation of the robot, the door closing operation of the container is determined to be successfully created, otherwise, the door closing operation of the container is determined to be unsuccessfully created.
A robot instance digital object may be created according to creation rules of an attribute digital object of a robot in a template digital object of the robot, the robot instance digital object including: a digital object ID, a type, and a list of attributes, the list of attributes comprising: brief introduction, subject information, authority list and basic information, wherein the basic information comprises: create time, create person, modify time, modify person, thing ID. Wherein the digital object ID of the robot instance digital object includes the robot instance digital object identification, e.g., the robot instance digital object identification is 0.0.0/CZ-SL003, the type of the robot instance digital object includes 0.0.0/JQR001, the JS programming language is utilized in the robot instance digital object to program and/or customize field settings to generate a container list (target subject list), and may also include 0.0.0/HG-SL0001. The structure of the robot instance digital object can be verified by using a constraint method of the robot digital object structure, when the structure of the robot instance digital object is determined to be in accordance with the structure specified by the structure attribute in the creation rule of the attribute digital object of the robot, the robot instance digital object is determined to be successfully created, otherwise, the robot instance digital object is determined to be failed to be created.
Fig. 8 shows a block diagram of an interaction device for a digital object in an embodiment of the disclosure. As shown in fig. 8, the interactive device of the digital object of this embodiment includes:
a first receiving module 510, configured to receive an operation instruction for a control subject to perform an operation on a target subject, where the operation instruction includes: the system comprises a first operation identifier, a target subject identity identifier and operation action information of the control subject, wherein the first operation identifier is used for identifying a first operation digital object of the control subject, and the target subject identity identifier is used for identifying the target subject;
a first obtaining module 520, configured to obtain a first attribute digital object of the manipulation main body according to the first operation digital object identified by the first operation identifier, where the first attribute digital object includes: the corresponding relation between the second operation identification and the target subject identity identification and the operation action information;
a second obtaining module 530, configured to obtain, according to the first attribute digital object, a second operation identifier corresponding to both the target subject identity identifier and the operation action information, where the second operation identifier is used to identify a second operation digital object of the target subject;
and an interaction module 540, configured to interact with the target subject by using the second operation digital object identified by the second operation identifier, so that the target subject executes the operation action information.
In an alternative embodiment, the interaction module 540 in this embodiment of the disclosure includes:
the obtaining submodule is used for obtaining the second operation digital object according to the second operation identification;
the state modification submodule is used for modifying the state information of the target main body in the second attribute digital object of the target main body by using the second operation digital object to obtain an updated second attribute digital object;
and the interaction submodule is used for interacting with the target main body by utilizing the updated second attribute digital object so as to enable the target main body to execute the operation action information.
In an optional implementation manner, the apparatus for interacting a digital object in an embodiment of the present disclosure further includes:
a second receiving module, configured to receive a manipulation subject digital object creation request for creating the first operation digital object and the first attribute digital object, where the manipulation subject digital object creation request includes: a base identification of the manipulation subject;
a third obtaining module, configured to obtain, according to a basic identifier of the control main body, a basic digital object of the control main body identified by the basic identifier of the control main body, where the basic digital object of the control main body includes a creation rule of a template digital object of the control main body;
a first generating module, configured to generate a template digital object of the manipulating body according to a basic digital object of the manipulating body, where the template digital object of the manipulating body includes: the creation rule of the operation digital object of the control body and the creation rule of the attribute digital object of the control body;
and the second generation module is used for generating the first operation digital object and the first attribute digital object based on the template digital object of the control body.
In an optional implementation manner, the apparatus for interacting a digital object in an embodiment of the present disclosure further includes:
a fourth receiving module, configured to receive a target subject digital object creation request for creating the second operation digital object and the second attribute digital object, where the target subject digital object creation request includes: a base identification of the target subject;
a fourth obtaining module, configured to obtain, according to the basic identifier of the target subject, a basic digital object of the target subject identified by the basic identifier of the target subject, where the basic digital object of the target subject includes a creation rule of a template digital object of the target subject;
a third generating module, configured to generate a template digital object of the target subject according to a basic digital object of the target subject, where the template digital object of the target subject includes: creating rules of the operation digital object of the target subject and creating rules of the attribute digital object of the target subject;
a fourth generating module, configured to generate the second operation digital object and the second attribute digital object based on a template digital object of the target subject.
In an optional embodiment, the operation instruction in the embodiment of the present disclosure further includes an identity of a control subject, where the identity of the control subject is used to identify the control subject; the device further comprises:
the authority determining module is used for determining the authority corresponding to the identity of the control subject;
and the judging module is used for responding to the authority corresponding to the control main body identity identification to indicate that the control main body can operate the target main body, executing the first operation digital object identified according to the first operation identification and acquiring the operation of the first attribute digital object of the control main body.
In addition, an embodiment of the present disclosure also provides an electronic device, including:
a memory for storing a computer program;
a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the method for interacting the digital object according to any of the above embodiments of the present disclosure.
Fig. 9 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure. Next, an electronic apparatus according to an embodiment of the present disclosure is described with reference to fig. 9. The electronic device may be either or both of the first device and the second device, or a stand-alone device separate from them, which stand-alone device may communicate with the first device and the second device to receive the acquired input signals therefrom.
As shown in fig. 9, the electronic device includes one or more processors and memory.
The processor may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
The memory may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by a processor to implement the interaction methods of the digital objects of the various embodiments of the present disclosure described above and/or other desired functions.
In one example, the electronic device may further include: an input device and an output device, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device may also include, for example, a keyboard, a mouse, and the like.
The output device may output various information including the determined distance information, direction information, and the like to the outside. The output devices may include, for example, a display, speakers, printer, and the like, as well as a communication network and remote output devices connected thereto.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 9, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the method of interaction of digital objects according to various embodiments of the present disclosure described in the above-mentioned part of the present description.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method of interacting with a digital object according to various embodiments of the present disclosure as described in the above section of this specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The basic principles of the present disclosure have been described above in connection with specific embodiments, but it should be noted that advantages, effects, and the like, mentioned in the present disclosure are only examples and not limitations, and should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by one skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. As used herein, the words "or" and "refer to, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the apparatus, devices, and methods of the present disclosure, various components or steps may be broken down and/or re-combined. Such decomposition and/or recombination should be considered as equivalents of the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (10)

1. A method for interacting with a digital object, comprising:
receiving an operation instruction of an operation main body for operating a target main body, wherein the operation instruction comprises: the system comprises a first operation identifier, a target subject identity identifier and operation action information of the control subject, wherein the first operation identifier is used for identifying a first operation digital object of the control subject, and the target subject identity identifier is used for identifying the target subject;
acquiring a first attribute digital object of the manipulation main body according to the first operation digital object identified by the first operation identifier, wherein the first attribute digital object comprises: the corresponding relation between the second operation identification and the target subject identity identification and the operation action information;
acquiring a second operation identifier corresponding to the identity identifier of the target subject and the operation action information according to the first attribute digital object, wherein the second operation identifier is used for identifying a second operation digital object of the target subject;
and interacting the second operation digital object identified by the second operation identification with the target main body so as to enable the target main body to execute the operation action information.
2. The method of claim 1, wherein the interacting the identified second operation digital object with the second operation identifier with the target subject to cause the target subject to perform the operation action information comprises:
acquiring the second operation digital object according to the second operation identifier;
modifying the state information of the target main body in a second attribute digital object of the target main body by using the second operation digital object to obtain an updated second attribute digital object;
and interacting with the target subject by utilizing the updated second attribute digital object so as to enable the target subject to execute the operation action information.
3. The method of claim 1 or 2, further comprising:
receiving a manipulation subject digital object creation request to create the first operation digital object and the first attribute digital object, wherein the manipulation subject digital object creation request includes: a base identification of the manipulation subject;
acquiring a basic digital object of the control body identified by the basic identification of the control body according to the basic identification of the control body, wherein the basic digital object of the control body comprises a creation rule of a template digital object of the control body;
generating a template digital object of the manipulation subject according to the basic digital object of the manipulation subject, wherein the template digital object of the manipulation subject comprises: creating rules of operation digital objects of the control body and creating rules of attribute digital objects of the control body;
generating the first operation digital object and the first attribute digital object based on a template digital object of the manipulation subject.
4. The method of claim 3, further comprising:
receiving a target subject digital object creation request to create the second operation digital object and the second attribute digital object, wherein the target subject digital object creation request includes: a base identification of the target subject;
acquiring a basic digital object of the target subject identified by the basic identification of the target subject according to the basic identification of the target subject, wherein the basic digital object of the target subject comprises a creation rule of a template digital object of the target subject;
generating a template digital object of the target subject according to the basic digital object of the target subject, wherein the template digital object of the target subject comprises: creating rules of the operation digital object of the target subject and creating rules of the attribute digital object of the target subject;
generating the second operation digital object and the second attribute digital object based on the template digital object of the target subject.
5. The method according to claim 1 or 2, wherein the operation instruction further comprises a control subject identity, wherein the control subject identity is used for identifying the control subject;
the method further comprises the following steps:
determining the authority corresponding to the identity of the control subject;
and responding to the authority corresponding to the control main body identification to indicate that the control main body can operate the target main body, and executing the operation of acquiring the first attribute digital object of the control main body according to the first operation digital object identified by the first operation identification.
6. An apparatus for interacting a digital object, comprising:
the first receiving module is used for receiving an operation instruction of the control main body for operating the target main body, wherein the operation instruction comprises: the system comprises a first operation identifier, a target subject identity identifier and operation action information of the control subject, wherein the first operation identifier is used for identifying a first operation digital object of the control subject, and the target subject identity identifier is used for identifying the target subject;
a first obtaining module, configured to obtain a first attribute digital object of the manipulation main body according to the first operation digital object identified by the first operation identifier, where the first attribute digital object includes: the corresponding relation between the second operation identification and the target subject identity identification and the operation action information;
a second obtaining module, configured to obtain, according to the first attribute digital object, a second operation identifier corresponding to both the target subject identity identifier and the operation action information, where the second operation identifier is used to identify a second operation digital object of the target subject;
and the interaction module is used for utilizing the second operation digital object identified by the second operation identifier to interact with the target main body so as to enable the target main body to execute the operation action information.
7. The apparatus of claim 6, wherein the interaction module comprises:
the obtaining submodule is used for obtaining the second operation digital object according to the second operation identification;
the state modification submodule is used for modifying the state information of the target main body in the second attribute digital object of the target main body by using the second operation digital object to obtain an updated second attribute digital object;
and the interaction submodule is used for interacting with the target main body by utilizing the updated second attribute digital object so as to enable the target main body to execute the operation action information.
8. The apparatus of claim 6 or 7, further comprising:
a second receiving module, configured to receive a manipulation subject digital object creation request for creating the first operation digital object and the first attribute digital object, where the manipulation subject digital object creation request includes: a base identification of the manipulation subject;
a third obtaining module, configured to obtain, according to a basic identifier of the control body, a basic digital object of the control body identified by the basic identifier of the control body, where the basic digital object of the control body includes a creation rule of a template digital object of the control body;
a first generating module, configured to generate a template digital object of the manipulating body according to a basic digital object of the manipulating body, where the template digital object of the manipulating body includes: creating rules of operation digital objects of the control body and creating rules of attribute digital objects of the control body;
and the second generation module is used for generating the first operation digital object and the first attribute digital object based on the template digital object of the control body.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in the memory, and when executed, implementing the method of any of the preceding claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 5.
CN202211442310.XA 2022-11-18 2022-11-18 Interaction method and device of digital object, electronic equipment and storage medium Active CN115659405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211442310.XA CN115659405B (en) 2022-11-18 2022-11-18 Interaction method and device of digital object, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211442310.XA CN115659405B (en) 2022-11-18 2022-11-18 Interaction method and device of digital object, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115659405A true CN115659405A (en) 2023-01-31
CN115659405B CN115659405B (en) 2023-03-10

Family

ID=85019224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211442310.XA Active CN115659405B (en) 2022-11-18 2022-11-18 Interaction method and device of digital object, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115659405B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174125A1 (en) * 2001-03-14 2002-11-21 Microsoft Corporation Messaging infrastructure for identity-centric data access
CN112073471A (en) * 2020-08-17 2020-12-11 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic apparatus
WO2020253344A1 (en) * 2019-06-17 2020-12-24 华为技术有限公司 Authorization control method and apparatus, and storage medium
CN112148509A (en) * 2020-10-16 2020-12-29 腾讯科技(深圳)有限公司 Data processing method, device, server and computer readable storage medium
CN112862573A (en) * 2021-01-15 2021-05-28 珠海必要工业科技股份有限公司 Method and device for generating identity identification information of derivative object and storage medium
CN113934299A (en) * 2021-10-18 2022-01-14 珠海格力电器股份有限公司 Equipment interaction method and device, smart home equipment and processor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020174125A1 (en) * 2001-03-14 2002-11-21 Microsoft Corporation Messaging infrastructure for identity-centric data access
WO2020253344A1 (en) * 2019-06-17 2020-12-24 华为技术有限公司 Authorization control method and apparatus, and storage medium
CN112073471A (en) * 2020-08-17 2020-12-11 青岛海尔科技有限公司 Device control method and apparatus, storage medium, and electronic apparatus
CN112148509A (en) * 2020-10-16 2020-12-29 腾讯科技(深圳)有限公司 Data processing method, device, server and computer readable storage medium
CN112862573A (en) * 2021-01-15 2021-05-28 珠海必要工业科技股份有限公司 Method and device for generating identity identification information of derivative object and storage medium
CN113934299A (en) * 2021-10-18 2022-01-14 珠海格力电器股份有限公司 Equipment interaction method and device, smart home equipment and processor

Also Published As

Publication number Publication date
CN115659405B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
US11451398B2 (en) Management of interoperating machine learning algorithms
US11562293B2 (en) Adaptation of machine learning algorithms
US11698818B2 (en) Load balancing of machine learning algorithms
CN111104652B (en) Authority management method and device, computer readable storage medium and electronic equipment
CN115329033A (en) Method, device, equipment and medium for supervising data uplink in block chain
CN115659405B (en) Interaction method and device of digital object, electronic equipment and storage medium
CN111722994A (en) Task request response method and device
US9189299B2 (en) Framework for system communication for handling data
CN114896293A (en) Data integration management method and device, storage medium and electronic equipment
CN110765003B (en) Code detection method, device and equipment and storage medium
US20210405826A1 (en) System and method for optimized generation of a single page application for multi-page applications
CN112905970A (en) Authority verification method and device, computer readable storage medium and electronic equipment
CN114189709A (en) Method and device for auditing video, storage medium and electronic equipment
CN111752847A (en) Interface comparison method, micro server, computer readable storage medium and electronic device
Riccobene et al. Exploring the concept of abstract state machines for system runtime enforcement
CN115310065B (en) File generation method and device, storage medium and electronic equipment
CN115357548B (en) Block chain-based electronic contract query method, device, equipment and medium
CN116166736B (en) Block chain data uplink method, device and medium based on application program interface
CN112422429B (en) Data request processing method and device, storage medium and electronic equipment
CN112968866B (en) Method, device and system for binding user account information and user identity information
CN110753316B (en) Information sending method and device, computer readable storage medium and electronic equipment
Gupta et al. SEC‐H5: secure and efficient integration of settings of enhanced HTML5 XSS vector defensive framework on edge network of fog nodes
CN115334161A (en) Access request processing method and device, storage medium and electronic equipment
CN113761508A (en) Information processing method, information processing device, electronic equipment and storage medium
CN115033228A (en) Method and device for associating functional components of visual page

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