CN111190950B - Asset retrieval method and device - Google Patents

Asset retrieval method and device Download PDF

Info

Publication number
CN111190950B
CN111190950B CN201911049340.2A CN201911049340A CN111190950B CN 111190950 B CN111190950 B CN 111190950B CN 201911049340 A CN201911049340 A CN 201911049340A CN 111190950 B CN111190950 B CN 111190950B
Authority
CN
China
Prior art keywords
asset
information
interface
retrieval
terminal user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911049340.2A
Other languages
Chinese (zh)
Other versions
CN111190950A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911049340.2A priority Critical patent/CN111190950B/en
Publication of CN111190950A publication Critical patent/CN111190950A/en
Application granted granted Critical
Publication of CN111190950B publication Critical patent/CN111190950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

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

Abstract

The embodiment of the application provides an asset retrieval method and device, and relates to the technical field of data processing. The method comprises the following steps: receiving an asset retrieval request from a terminal; analyzing the asset retrieval request to obtain retrieval parameters; calling a corresponding data access interface according to the parameter type of the retrieval parameter; utilizing the corresponding data access interface to inquire the asset data corresponding to the retrieval parameters from the asset database; and transmitting the asset data to the terminal. According to the embodiment of the application, the asset data corresponding to the retrieval parameters are inquired in the asset database by providing the plurality of data access interfaces and calling the data access interfaces corresponding to the parameter types, and the functions of performing different management on the assets in the asset database can be realized through the plurality of data access interfaces, so that a software provider is not required to complete the different management functions, and the dependence on the software provider is reduced.

Description

Asset retrieval method and device
Technical Field
The application relates to the technical field of data processing, in particular to an asset retrieval method and device.
Background
With the development of the building industry, the number of existing buildings is increased, and the number of assets in the buildings is increased, so that the assets in the buildings are often managed, such as inquiry, retrieval, operation and maintenance and the like. A currently common scheme for managing assets is to import building information and asset information in a building to a software provider, and a proprietor (end user) manages assets in the building through a client provided by the software provider. However, when the management of the assets in the building is performed by the scheme, when the owner wants to replace the software provider, the original building information and the asset information in the building cannot be inherited to new software at all, and if the management function of the assets is updated, the management can be completed only by high cooperation of the software provider, so that the management of the assets is seriously dependent on the software provider providing the software.
Disclosure of Invention
The embodiment of the application provides an asset retrieval method and device, which can reduce the dependence on a software provider.
The embodiment of the application provides an asset retrieval method, which comprises the following steps:
receiving an asset retrieval request from a terminal;
analyzing the asset retrieval request to obtain retrieval parameters;
calling a corresponding data access interface according to the parameter type of the retrieval parameter;
utilizing the data access interface to inquire the asset data corresponding to the retrieval parameters from an asset database;
and sending the asset data to the terminal.
An embodiment of the present application further provides an asset retrieval device, including:
a receiving unit, configured to receive an asset retrieval request from a terminal;
the analysis unit is used for analyzing the asset retrieval request to obtain retrieval parameters;
the calling unit is used for calling a corresponding data access interface according to the parameter type of the retrieval parameter;
the retrieval unit is used for inquiring the asset data corresponding to the retrieval parameters from an asset database by using the data access interface;
and the sending unit is used for sending the asset data to the terminal.
Further, when the parameter type includes an asset identifier and a first interface identifier, the invoking unit is specifically configured to invoke an asset location query interface according to the asset identifier and the first interface identifier.
Further, when the parameter type includes an asset identifier and a second interface identifier, the calling unit is specifically configured to call an asset track query interface according to the asset identifier and the second interface identifier.
Further, when the parameter type includes an asset identifier and a second interface identifier, the retrieving unit includes: the device comprises a second acquisition unit, a generation unit and a determination unit. The second query unit is configured to obtain, from an asset database, a plurality of pieces of location information corresponding to the asset identifier by using the asset track query interface. And the generating unit is used for generating a motion track corresponding to the asset identification according to the time of the plurality of pieces of position information. And the determining unit is used for determining the motion trail as the asset data corresponding to the retrieval parameter.
Further, when the parameter type includes an asset identifier and a third interface identifier, the invoking unit is specifically configured to invoke an asset video query interface according to the asset identifier and the third interface identifier.
Further, the retrieval parameter includes an end user identifier, and the asset retrieval apparatus further includes: and an authority detection unit. The authority detection unit is used for detecting whether the terminal user corresponding to the terminal user identification has authority to acquire the asset data; and if the terminal user corresponding to the terminal user identification has the authority to acquire the asset data, triggering the sending unit.
Further, the permission detection unit is specifically configured to: acquiring an asset access range of the terminal user corresponding to the terminal user identification; detecting whether the asset data exceeds an asset access range of the end user; if so, determining that the terminal user has no authority to acquire the asset data; if not, determining that the terminal user has the authority to acquire the asset data.
Further, the asset retrieval device further includes: the device comprises a digitizing unit, an importing unit and a storing unit. The system comprises a digitization unit, a building model generation unit and a display unit, wherein the digitization unit is used for digitizing the building model to obtain three-dimensional space information of the building; the importing unit is used for importing asset information in a building and position information of the asset information in the three-dimensional space information; the storage unit is used for storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information into an asset database.
Further, the storage unit is specifically configured to store the three-dimensional spatial information of the building, the asset information in the building, and the location information of the asset information into a blockchain.
The embodiment of the application also provides computer equipment, which comprises a memory and a processor connected with the memory; the memory is used for storing a computer program; the processor is configured to execute the computer program stored in the memory to perform any of the asset retrieval methods described above.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method implements any one of the asset retrieval methods described above.
According to the method and the device, after the asset retrieval request is received, the asset retrieval request is analyzed to obtain the retrieval parameters, the corresponding data access interfaces are called according to the parameter types of the retrieval parameters, and the asset data corresponding to the retrieval parameters are inquired according to the corresponding data access interfaces, so that the asset data corresponding to the retrieval parameters are inquired in the asset database by providing the plurality of data access interfaces and calling the data access interfaces corresponding to the parameter types, and the functions of different management of the assets in the asset database can be realized through the plurality of data access interfaces, so that the functions of different management are not required to be completed by a software provider, and the dependence on the software provider is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a schematic diagram of a system for asset retrieval provided by an embodiment of the present application;
FIG. 1b is a schematic flowchart of an asset retrieval method provided by an embodiment of the present application;
FIG. 1c is a simplified schematic diagram of an asset retrieval interface provided in accordance with an embodiment of the present application;
fig. 1d is a scene schematic diagram of setting permissions provided in an embodiment of the present application;
FIG. 2a is another schematic flow chart diagram of an asset retrieval method provided by an embodiment of the present application;
FIG. 2b is a partial display effect diagram of a BIM model provided in an embodiment of the present application;
FIG. 2c is a schematic diagram of the manner in which the building model is digitized as provided by an embodiment of the present application;
FIG. 3 is a schematic block diagram of an asset retrieval device provided by an embodiment of the present application;
FIG. 4 is another schematic block diagram of an asset retrieval device provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Before explaining the embodiments of the present invention in detail, some terms related to the embodiments of the present invention are explained.
The data access interfaces are predefined function interfaces provided on a data access basis and are used for providing the application program and the developer with the capability of accessing data based on certain software or certain hardware. Some commands (actions) that specify the details of the internal working mechanism, such as those that specify data access, are integrated into the data access interface. The operating system is caused to execute the commands (actions) in the provision of the data access interface by calling the data access interface.
The BIM model is a Building Information model, and is called Building Information Modeling in English. A BIM model not only includes a three-dimensional model of a building, but also can be provided with information on material characteristics, color, designer, manufacturer, author, inspector, date, area, volume, and the like of the building.
CAD refers to Computer Aided Design, which is called Computer aid Design in english, and refers to assisting designers with a Computer and its graphic devices to perform Design work. The CAD model refers to a model created by a computer or a graphic device, and includes a building model and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The information of a batch of network transactions can also be understood as input information of a batch, which in the embodiment of the present application refers to three-dimensional space information of buildings that need to be stored on a block chain, asset information in the buildings, and location information of the asset information. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain link point devices and used for verifying the validity of service requests (such as uploading requests for uploading and storing three-dimensional space information of a building, asset information in the building, position information of the asset information and the like to a block chain in the embodiment of the application), recording the effective requests to a storage after consensus is completed, and for a new service request, firstly, the basic service performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts the service information (consensus management) through a consensus algorithm, transmits the encrypted service information to a shared account (network communication) completely and consistently, and performs recording and storing; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like. The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
The embodiment of the application provides an asset retrieval method, an asset retrieval device, computer equipment and a storage medium.
The embodiment of the application also provides an asset retrieval system which comprises the asset retrieval device provided by any one of the embodiments of the application. The asset retrieval device may be integrated in a network device such as a server. Fig. 1a is a schematic diagram of an asset retrieval system provided in an embodiment of the present application. The asset retrieval system comprises a terminal, a server and an asset database. The terminal comprises at least one server, wherein the server can be a single server or a server cluster, and functions of a data access interface, authority management and the like are integrated in the server. In fig. 1a, the server and the asset database are on different terminals, respectively. In other embodiments, the asset database may be integrated into a server, thus including both storage and business functions. The terminal is connected with the server and the asset database through a network, and the network comprises network entities such as a router, a gateway and the like.
In FIG. 1a, a terminal sends an asset retrieval request to a server; after receiving the asset retrieval request, the server analyzes the asset retrieval request to obtain retrieval parameters; calling a corresponding data access interface according to the parameter type of the retrieval parameter; utilizing the corresponding data access interface to inquire the asset data corresponding to the retrieval parameters from the asset database; the server receives a query result in the asset database based on the retrieval parameters, namely asset data; and then transmitting the asset data to the terminal.
Fig. 1b is a schematic flowchart of an asset retrieval method provided in an embodiment of the present application, where the method is applied in a server, and a specific flowchart of the asset retrieval method may be as follows:
101, receiving an asset retrieval request from a terminal.
The terminal can provide an asset retrieval interface, the asset retrieval interface is provided with a plurality of first controls, and a plurality of setting parameters such as the asset to be retrieved or the information such as the spatial position to be retrieved can be set through the first controls. On the asset retrieval interface, if the second control is detected to be triggered, acquiring an interface identifier related to the second control and setting parameters of the first control, and acquiring a terminal user identifier. The second control can be related buttons such as "asset location query", "asset track query", "asset video query", "asset location name query", "location asset query", and the like. In particular, as shown in fig. 1 c. Fig. 1c is a simplified schematic diagram of an asset retrieval interface provided in the embodiment of the present application, which is only for illustration and does not limit the asset retrieval interface. The interface identifier includes identifier information of a plurality of different interfaces, where the interface identifier information includes information such as an interface ID (e.g., interface 23, interface with a serial number of 23) or an interface name (e.g., function name corresponding to the interface, or interface literal name). The end user identification comprises information used for identifying the user, such as an end user nickname, a mailbox, a two-dimensional code, a WeChat, a telephone number and the like. And the terminal generates an asset retrieval request according to the acquired interface identifier in the second control, the setting parameter of the first control and the terminal user identifier, and sends the asset retrieval request to the server. And the server receives the asset retrieval request sent by the terminal.
The asset retrieval request of the terminal can also be sent to the server in a voice mode, and the server receives the voice asset retrieval request from the terminal.
The terminal can also directly send an asset retrieval request to the server in a command sending mode, and the server receives the asset retrieval request.
The terminal can also send the asset retrieval request to the server in other manners. It should be noted that the asset retrieval request, regardless of the manner in which it is sent, carries the end user identification. The asset retrieval request transmitted in any form may be transmitted to the server via an HTTP Protocol (HyperText Transfer Protocol). The server receives an asset retrieval request.
And 102, analyzing the asset retrieval request to obtain retrieval parameters.
For example, the asset retrieval request received by the server is sent by the terminal by triggering the corresponding control. Thus, parsing the asset retrieval request to obtain retrieval parameters includes: and analyzing the setting parameters, the interface identification and the terminal user identification of the asset retrieval request to obtain retrieval parameters. The setting parameters comprise two types, wherein one type is asset identification and comprises information such as asset ID or asset name and the like; one is a location marker, which includes information such as spatial location coordinates or spatial location ranges. In some cases, the asset ID and asset name are unique, such that a unique asset can be determined by either the asset ID or asset name. In some cases, the asset ID and asset name are not unique, and a unique asset is determined by the location identification and the asset identification together. In the embodiments of the present application, an example is described in which one asset can be uniquely determined by an asset ID or an asset name. By parsing the asset retrieval request, retrieval parameters such as an interface identifier, an asset identifier, or a location identifier may be obtained.
For example, the asset retrieval request received by the server is sent by the terminal in a voice manner. Thus, parsing the asset retrieval request to obtain retrieval parameters includes: identifying voice information in the voice asset retrieval request by a voice identification method to obtain a voice identification result; extracting asset information or position information in the voice recognition result; extracting interface related information and the like according to the semantics of the voice recognition result; and mapping the asset information or the position information into an asset identifier or a position identifier respectively, and mapping the interface related information into an interface identifier. If the voice recognition result comprises the spatial position of the camera to be inquired, extracting asset information of the camera, and taking the camera as an asset name; according to the semantics of the voice recognition result, extracting the spatial position of the interface related information, namely query, and mapping the interface related information into an interface identifier so as to query the spatial position of the asset through the asset information, namely the camera A. For example, "i want to query the number of tables in the third floor", where location information "third floor" is extracted and asset information "table" is extracted; extracting interface related information 'inquiring the third floor.. the number of tables' according to semantics in a voice recognition result; and mapping the interface related information into an interface identifier so as to inquire the information of the asset 'table' through a spatial position 'third floor' and count the quantity information of the asset 'table'. For example, the database includes the interpretation information of the data access interface corresponding to each interface identifier, and the semantics in the speech recognition result is matched with the interpretation information, so as to map the interface-related information to a specific interface identifier.
For example, the asset retrieval request received by the server is sent by the terminal by way of a command. Thus, parsing the asset retrieval request to obtain retrieval parameters includes: acquiring a command corresponding to the asset retrieval request; according to the structure of the command, the asset identification or position information and the interface name in the command are extracted.
And analyzing the asset retrieval request to obtain retrieval parameters such as an interface identifier, an asset identifier or a position identifier. It is to be reminded that user parameters, such as end user identification, may also be obtained.
And 103, calling a corresponding data access interface according to the parameter type of the retrieval parameter.
The retrieval parameters include: interface identification (interface ID, interface name, etc.), asset identification (asset ID, asset name, etc.), or location identification (spatial location coordinates, spatial location range, etc.). The parameter types of the retrieval parameters are divided into two main categories: input information and interface information. The input information also includes two categories: asset identification and location identification to represent two different input information. The interface information includes an interface identification. It is noted that the input information also includes other types of information.
Specifically, when the parameter type includes an asset identifier and a first interface identifier, step 103 includes: and calling an asset position query interface according to the asset identifier and the first interface identifier. The data access interface corresponding to the first interface identifier is an asset location query interface (interface literal name). Namely, according to the asset identification, calling the function of the asset position query interface corresponding to the first interface identification.
Wherein the asset location query interface implements: and inputting the asset identification, and outputting the position information (information such as spatial position coordinates or spatial position coordinate ranges) of the asset corresponding to the asset identification by calling a function of the asset position query interface. For example, if the function corresponding to the asset location query interface is GetCoordByAssetsID, the program/module corresponding to the GetCoordByAssetsID function is called to output the location information of the asset corresponding to the asset identifier according to the input asset identifier.
Specifically, when the parameter type includes an asset identifier and a second interface identifier, step 103 includes: and calling an asset track query interface according to the asset identification and the second interface identification. And the data access interface corresponding to the second interface identifier is the asset track query interface. And calling the function of the asset track query interface corresponding to the second interface identification according to the asset identification.
Wherein, the asset track query interface implements: and inputting the asset identification, and calling a function of the asset track query interface corresponding to the second interface identification to output the motion track information of the asset corresponding to the asset identification. For example, if the function corresponding to the asset track query interface is GetTravelByAssetsID, the program/module corresponding to the GetTravelByAssetsID function is called to output the motion track information of the asset corresponding to the asset identifier according to the input asset identifier.
Specifically, when the parameter type includes an asset identifier and a third interface identifier, step 103 includes: and calling an asset video query interface according to the asset identification and the third interface identification. And the data access interface corresponding to the third interface identifier is the asset video query interface. And calling the function of the asset video query interface corresponding to the third interface identification according to the asset identification.
Wherein, the asset video query interface implements: and inputting the asset identification, and calling a function of the video query interface corresponding to the third interface identification to output video information shot by the asset corresponding to the asset identification. For example, if the function corresponding to the video query interface is GetVideoByAssetsID, the program/module corresponding to the GetVideoByAssetsID function is called to output video information shot by the asset corresponding to the asset identifier according to the input asset identifier.
Specifically, when the parameter type includes an asset identifier and a fourth interface identifier, step 103 includes: and calling an asset position name inquiry interface according to the asset identifier and the fourth interface identifier. And the data access interface corresponding to the fourth interface identifier is the asset position name query interface. And calling the function of the asset position name query interface corresponding to the fourth interface identifier according to the asset identifier.
Wherein, the asset location name query interface implements: and inputting an asset identifier, and calling an asset position name query interface corresponding to the fourth interface identifier to output information such as the position name of the asset corresponding to the asset identifier, wherein the asset is located in a building, a floor, a room and the like. For example, if the function corresponding to the asset track query interface is GetSpaceNameByAssetsID, the program/module corresponding to the GetSpaceNameByAssetsID function is called, so as to output information such as the location name of the asset corresponding to the asset identifier according to the input asset identifier.
Specifically, when the parameter type includes the location identifier and the fifth interface identifier, step 103 includes: and calling a position asset query interface according to the position identifier and the fifth interface identifier. And the data access interface corresponding to the fifth interface identifier is a position asset query interface. And calling a function of the position asset query interface corresponding to the fifth interface identifier according to the position identifier.
Wherein the location asset query interface implements: inputting the position identifier, and calling a position asset query interface corresponding to the fifth interface identifier to output asset information corresponding to the position identifier, such as the quantity of assets corresponding to the position identifier. For example, if the function corresponding to the asset trace query interface is getassetbyspace, the program/module corresponding to the getassetbyspace function is called to output asset information corresponding to the location identifier according to the input location identifier.
It should be noted that the above is only an example, the corresponding interface identifier also includes a plurality of types, and the data access interface corresponding to the identification information also includes a plurality of types.
And 104, inquiring asset data corresponding to the retrieval parameters from the asset database by using the corresponding data access interface.
The asset database stores three-dimensional spatial information of a building, asset information in the building, location information of an asset, and the like. It is understood that, before step 104, the method further includes: and storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information in an asset database, such as the asset database stored on the cloud. More specifically, as stored in a blockchain, etc. Since the original asset information such as the three-dimensional space information of the corresponding building, the asset information in the building, and the position information of the asset is stored in the asset database, the owner shares the original asset information, and thus the original asset information does not need to be stored in the software provider. The security and confidentiality of data are improved.
When the data access interface is an asset location query interface, step 104, comprises: inquiring assets corresponding to the asset identification from an asset database by using an asset position inquiry interface; acquiring position information of an asset; and using the acquired position information as asset data corresponding to the retrieval parameters. Specifically, location information for the asset is queried from an asset database.
The method can be applied to scenes needing to quickly find the asset position, and the asset position query interface can be used for quickly positioning the space position of the asset.
When the data access interface is an asset track query interface, step 104 includes: inquiring assets corresponding to the asset identification from an asset database by using an asset track inquiry interface; acquiring a plurality of position information of assets; generating a motion track of the asset according to the time of the plurality of position information; and taking the generated motion trail as asset data corresponding to the retrieval parameters. After acquiring a plurality of position information of the asset corresponding to the asset identifier, generating a motion track of the asset according to the time sequence of the plurality of position information. Specifically, a plurality of location information of the asset is queried from an asset database.
It is understood that the asset carries a sensor, and the position of the asset is sensed by the sensor, so as to obtain a plurality of position information of the asset.
In this case, the assets corresponding to the asset identifier include assets that can move after receiving the instruction, such as a sweeping robot, a guest greeting robot, and the like, and assets that are carried by the user and move along with the user, such as terminals for a call between buildings, and the like. The method can be applied to checking the sweeping track of the sweeping robot so as to quickly determine whether the sweeping robot finishes sweeping; the method can also be applied to checking the motion trail of the welcome robot so as to quickly determine whether the welcome robot moves in the specified area; the method can also be applied to quickly checking the position of a user carrying the terminal; but also in scenarios where it is quick to see if the asset is at some determined location, etc.
In this case, it is understood that the retrieval parameter in the asset retrieval request may further include a time parameter indicating a motion trajectory corresponding to the asset identifier within a time corresponding to the time parameter. Step 103, specifically including: and calling an asset track query interface according to the asset identifier, the second interface identifier and the time parameter. Step 104, specifically comprising: inquiring assets corresponding to the asset identification from an asset database by using an asset track inquiry interface; acquiring a plurality of position information of the asset within the time corresponding to the time parameter; generating a motion track of the asset in corresponding time according to the position information; and taking the generated motion trail as asset data corresponding to the retrieval parameters.
When the data access interface is an asset video query interface, step 104 includes: inquiring assets corresponding to the asset identification from an asset database by using an asset video inquiry interface; calling video information shot by assets; and taking the obtained video information as asset data corresponding to the retrieval parameters. Wherein, the video information of the assets shooting is called, including: calling video information shot by assets; and calling the video information currently shot by the asset, wherein the calling is understood as calling the camera to check the current monitoring information of the camera. Specifically, video information captured by the asset is queried and called from the asset database.
It will be appreciated that in this case, the retrieval parameters in the asset retrieval request may also include a time parameter. If the time parameter is included, step 103 specifically includes: and calling a video query interface according to the asset identifier, the third interface identifier and the time parameter. Step 104, specifically comprising: inquiring assets corresponding to the asset identification from an asset database by using a video inquiry interface; calling video information shot by the assets within the time corresponding to the time parameter; and taking the obtained video information as asset data corresponding to the retrieval parameters. It is understood that, if the search parameter includes a time parameter, the captured video information of the asset in the time corresponding to the time parameter is called. And if the retrieval parameters do not comprise the time parameters, calling the video information currently shot by the assets by default.
The method can be applied to the scene of water leakage or fire on a certain floor. And calling video information shot by the camera according to the camera on the floor so as to quickly check the reason of water leakage or fire. Or calling the video information currently shot by the camera to quickly check the current water leakage condition or fire condition so as to perform real-time monitoring.
When the data access interface is an asset location name query interface, step 104, comprises: inquiring assets corresponding to the asset identification from an asset database by using an asset position name inquiry interface; acquiring information such as a position name corresponding to the asset; and taking the acquired position name as asset data corresponding to the retrieval parameter. Wherein, the position name that the asset corresponds to includes: building name, floor, room, etc. Such as assets located in the 302 rooms of the third floor of the a building. Specifically, the location name corresponding to the asset is queried from the asset database.
The method can be applied to the scene that the position name corresponding to the asset needs to be quickly searched, and the position name of the asset can be quickly positioned by utilizing the asset position name query interface.
When the access interface is a location asset query interface, step 104, comprises: querying a position corresponding to the position identification from the asset database by using a position asset query interface; acquiring corresponding asset information in the position; and taking the obtained asset information as asset data corresponding to the retrieval parameters. Specifically, the corresponding asset information within the location is queried from the asset database.
The method can be applied to scenes of asset information which is quickly positioned at the position corresponding to a certain position mark, and the speed of acquiring the asset information in the position is increased. For example, in the above scenario of water leakage or fire on a certain floor, a certain coordinate range of the certain floor may leak water or fire, and the cameras in the corresponding range may be quickly queried according to the floor coordinates.
It should be noted that the above-mentioned scenarios are only some scenarios applied therein, and can also be applied in more scenarios.
105, transmitting the asset data to the terminal.
And sending the asset data to a terminal corresponding to the terminal user identification.
According to the method and the device for searching the asset data, after the asset searching request is received, the searching parameters in the asset searching request are analyzed, the data access interfaces corresponding to the parameter types are called, and the asset data corresponding to the searching parameters are inquired in the asset database. Therefore, the assets in the asset database can be managed differently through the provided data access interfaces, a software provider is not required to complete the function of managing the assets differently, and the dependence on the software provider is reduced.
In an actual scenario, the end users include an owner and a caller (including a software provider), which correspond to the first end user and the second end user, respectively. Because the owner shares the original asset information such as the three-dimensional space information of the building, the asset information in the building, the position information of the asset information and the like, the business side can set the authority of the caller, such as the access authority, and only the authorized caller can access the related data in the access authority. As shown in fig. 1d, a first end user sends a permission setting request to a server, and the server receives the permission setting request to set an asset access scope of a second end user through permission management. And the second terminal user sends an asset retrieval request to the server, and the server receives the asset retrieval request so as to determine whether the second terminal user has the right to access asset data corresponding to the retrieval parameters of the asset retrieval request through right management.
Before step 101, the step of receiving an asset retrieval request from a terminal, the method further comprises: and receiving an authority setting request sent by the first terminal user, and setting the authority of the second terminal user according to the authority setting request. Specifically, the method comprises the following steps: receiving an authority setting request sent by a first terminal user, wherein the acquired authority setting request comprises information of a second terminal user and an asset access range of the second terminal user, which is set by the first terminal user; setting the authority of the second terminal user according to the information of the second terminal user and the asset access range; acquiring current time, and generating a timestamp according to the current time; generating a dynamic key according to a preset encryption algorithm; sending the dynamic key to the second end user; first key data is generated based on the dynamic key and the timestamp.
Wherein the information of the second end user refers to user name information, account information, etc. of the second end user that can be used to access the data access interface. The set asset access range may be an asset in a specific building, an asset in a certain floor of a certain building, an asset in a certain room of a certain floor, or the like, and if the asset access range is set: assets in the first, second and third floors of the A floor. The preset encryption algorithm may be any encryption algorithm, such as an SHA256 encryption algorithm, and the SHA256 encryption algorithm is used to generate a dynamic key and send the dynamic key to the second end user. Generating first key data from the dynamic key and the timestamp, comprising: and performing encryption calculation, such as hash calculation, on the dynamic key and the timestamp to generate first key data. Wherein the cryptographic calculation to generate the first key data is an irreversible calculation to improve the security of the data.
And when the second terminal user logs in the server to access the data access interface, the second terminal user logs in by using the information of the second terminal user and the received dynamic key. The server receives the information of the second terminal user and the dynamic key input by the second terminal user; acquiring a corresponding timestamp when the dynamic key is generated; generating second key data according to the dynamic key input by the second terminal user and the acquired timestamp, wherein the manner of generating the second key data is the same as that of generating the first key data; judging whether the second key data is the same as the first key data; if the first terminal user is the same as the second terminal user, the second terminal user successfully logs in; and if not, the second terminal user fails to log in.
It will be appreciated that when the second end user logs in, the login is performed with the dynamic key to make the identity determination for the second end user. Only the second terminal user with the first terminal user having the set authority can log in to ensure the security of data access.
Further, when the retrieval parameter includes an asset identification and an end user identification, before step 105, the asset retrieval method further includes: detecting whether a terminal user corresponding to the terminal user identification has authority to acquire asset data; and if the terminal user corresponding to the user identification has the authority to acquire the asset data, executing the step of sending the asset data to the terminal. The step of detecting whether the terminal user corresponding to the terminal user identification has the authority to acquire the asset data comprises the following steps: acquiring an asset access range of a terminal user corresponding to a terminal user identifier; detecting whether the asset data exceeds the asset access range of the end user; if the asset data exceeds the asset access range of the terminal user, determining that the terminal user has no authority to acquire the asset data; and if the asset data does not exceed the asset access range of the terminal user, determining that the terminal user has the authority to acquire the asset data. And if the terminal user does not have the authority to acquire the asset data, performing alarm prompt. And further detecting whether the terminal user has the authority to acquire the corresponding asset data or not through the asset access range. If the asset access range is the assets in the first floor, the second floor and the third floor of the A floor, and the asset data obtained by query comprises the assets in the fifth floor of the A floor, the asset data exceeds the asset access range of the terminal user, and the terminal user does not have the authority to acquire the asset data.
Further, when the retrieval parameter includes the location identifier and the end user identifier, that is, the corresponding parameter type includes the location identifier and the fifth interface identifier. In this case, it is understood that, before the step of calling the location asset query interface according to the location identifier and the fifth interface identifier, the method further includes: detecting whether a terminal user corresponding to the terminal user identification has the authority to call a position inquiry interface or not; and if the terminal user has the authority to call the position inquiry interface, executing the step of calling the position asset inquiry interface according to the position identification and the fifth interface identification. The step of detecting whether the terminal user corresponding to the terminal user identification has the authority to call the position inquiry interface includes: acquiring an asset access range of a terminal user corresponding to a terminal user identifier; detecting whether the position corresponding to the position identification exceeds the asset access range of the terminal user; if so, determining that the terminal user corresponding to the terminal user identifier has the authority to call the position query interface; if not, determining that the terminal user corresponding to the terminal user identification has no authority to call the position query interface. And if the terminal user does not have the authority to call the position query interface, carrying out alarm prompt. If the asset access range is the assets in the first floor, the second floor and the third floor of the A floor, and the position corresponding to the position identifier is the fifth floor of the A floor, the position corresponding to the position identifier exceeds the asset access range of the terminal user, and the terminal user does not have the right to call the position query interface.
After the terminal user logs in, whether the terminal user has the authority to access the corresponding data access interface or not is further determined according to the asset access range of the terminal user, or whether the terminal user has the authority to acquire asset data obtained through inquiry of the corresponding data access interface or not is further determined, and the safety of data access is further improved. On the other hand, the owner (first end user) has the original asset information stored in the asset database and enjoys it, which further improves the security of the data as compared with the case where the original asset information is stored in the software provider. And the owner shares the original asset information, and the caller (including the software provider) with the corresponding authority can access the data of the original asset information by setting the corresponding authority, so that the data access safety is improved, and the data access efficiency is improved.
Fig. 2a is another schematic flow chart of an asset retrieval method provided by an embodiment of the present application. The asset retrieval method is applied to a server, and the specific flow of the asset retrieval method can be as follows:
and 201, digitizing the building model to obtain three-dimensional space information of the building.
Building models used in the construction industry are typically BIM models, or CAD models. The building model in the embodiment of the present application may also be other types of building models, and the like.
FIG. 2b is a partial display effect diagram of a BIM model. Based on the location data description format, the information for a certain room in the BIM model is similar as follows:
1 layer of polyhedron:
room 0102:
54 surfaces:
noodle 1:
point 1, Point 2, Point 3, Normal, coloring
Face 2:
point 4, point 5, point 6, normal, color
……
Face N:
……
digitizing the building model refers to parsing the building model into data as described above, including point, line, surface, shading, and the like data. After the building model is digitized, three-dimensional space information of the building, namely, structural information of points, lines and surfaces of all three-dimensional spaces of the building, and the like, is obtained.
Specifically, there are several ways to digitize the building model as follows. Please refer to fig. 2c, which is a schematic diagram of a manner of digitizing a building model provided in the embodiment of the present application, including directly parsing the building model and importing the building model through a corresponding data access interface. The following are introduced separately.
(1) And directly analyzing the building model. Specifically, a building model is obtained and analyzed to obtain three-dimensional space information of a building, and the three-dimensional space information is stored in an asset database.
Where the building model is parsed, similar to a traversal tree. Wherein, a tree refers to a data structure in the technical field of computers. In particular, a tree is a data structure consisting of nodes or vertices and edges (which may be non-linear) and without any rings, a tree without nodes is called an empty tree, a non-empty tree includes a root node, and (possibly) a plurality of children nodes and leaf nodes, all of which constitute a multi-level hierarchy. The information of the building is equivalent to the information of the root node, the information of each floor is equivalent to the information of the child node corresponding to the root node, and the information of each room is equivalent to the information of the leaf node.
The method comprises the steps of firstly analyzing the information of the building, then analyzing the information of one floor, analyzing the information of a certain room in the floor, analyzing the information of the next room in the floor until all the room information of the floor is analyzed, and analyzing all the room information of the next floor until all the room information of all the floors of the building is analyzed. In this way, the three-dimensional spatial information of the entire building is obtained by analysis, and the structural information of points, lines, surfaces, and the like of all the three-dimensional spaces of the building is obtained.
It should be noted that if there is asset information in the building, the asset information needs to be analyzed, and then the asset information is used as leaf nodes.
It should be noted that after the BIM model or the CAD model is completed, information of all points, lines, faces, etc. in the BIM model or the CAD model has been identified, such as naming the information of the points, lines, faces, etc., adding attributes (such as coloring colors), etc.
(2) And importing through a corresponding data access interface. Specifically, a building model or inputted building information is acquired; calling a corresponding data access interface according to the building model; and importing the data of the building model into the asset database by using the corresponding data access interface. It can be understood that the embodiment of the present application provides a corresponding data access interface to implement the digitization of the building model to obtain the three-dimensional spatial information of the building.
Specifically, importing through a corresponding data access interface includes the following three cases:
a, for some simple building buildings, a BIM model or a CAD model is not created, and then the embodiment of the present application provides a first data import interface. The first data import interface implements: and analyzing to obtain the three-dimensional space information of the building according to the input building information. The inputted building information includes: the building comprises information such as longitude and latitude information, altitude and the like of four points of a building, information such as longitude and latitude information, altitude and floor height of four points of a floor, and information such as longitude and latitude information, altitude and the like of four points of each room. And analyzing the input building information by using the first data import interface to obtain the three-dimensional space information of the building.
b, in some cases, no BIM or CAD model corresponding to the building is created, but a planar model of the building may be created. The embodiment of the application provides a corresponding drawing plane model interface and a second data import interface. The drawing plane model interface realizes: drawing a plane model of a building, and receiving input information of a point in the plane model of the building, the floor height, the altitude, the longitude and latitude information and the like of the building. The second data import interface implements: and analyzing to obtain the three-dimensional space information of the building according to the plane model of the building and the input related information of the building. The second data import interface is utilized to analyze the plane model of the building and the input related information of the building (including the information of the midpoint of the plane model of the building, the information of the floor height, the altitude, the longitude and latitude and the like of the building) so as to obtain the three-dimensional space information of the building.
c, a BIM model or a CAD model corresponding to the building is created, a corresponding third data import interface is further provided in the embodiment of the application, and the third data import interface realizes: and analyzing according to the BIM model or the CAD model of the building to obtain the three-dimensional space information of the building. Namely, the BIM model or the CAD model of the building is analyzed by using the third data import interface to obtain the three-dimensional space information of the building. In this case, the BIM model or CAD model of the corresponding building is imported through the corresponding third data import interface, and is parsed to obtain the three-dimensional spatial information of the building, which is different from the directly parsing building model described above. The above direct parsing of the building model does not require providing a corresponding third data import interface to import the model of the corresponding building.
The analysis manner in the above three cases a, b, and c is similar to that described above, and is not described herein again.
And 202, importing the asset information in the building and the position information of the asset information in the three-dimensional space information.
Asset information within a building, such as asset number (asset ID), asset name, asset quantity, asset type, etc., wherein asset type includes lights, cameras, tables, chairs, computers, telephones, etc. Location information of asset information, including: asset number (asset ID), drawing point location number of asset (point location number of asset in model), asset type, item to which asset belongs, building to which asset belongs, floor to which asset belongs, area to which asset belongs, etc. As shown in table 1, is example data of location information for an asset.
TABLE 1 example of location information for assets
Figure BDA0002254906750000171
And 203, storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information in the three-dimensional space information into an asset database.
For example, the three-dimensional space information of the building, the asset information in the building and the position information of the asset information in the three-dimensional space information are stored in a cloud asset database.
Specifically, the step of storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information in the three-dimensional space information into an asset database includes: and storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information into the block chain. And uploading original asset information such as three-dimensional space information of the building, asset information in the building, position information of the asset information and the like to the block chain, so that the original asset information is saved through the block chain. And if the uploading request is generated according to the original asset information, the uploading request is used for uploading and storing the original asset information to the block chain, the uploading request is sent to the node equipment of the block chain, the node equipment verifies the validity of the uploading request, and records the valid uploading request after consensus is completed on the storage. And uploading and storing the original asset information to a block chain, wherein the uploading and storing can be carried out for multiple times.
And 204, receiving an asset retrieval request from the terminal.
The asset retrieval request is parsed 205 to obtain retrieval parameters.
And 206, calling a corresponding data access interface according to the parameter type of the retrieval parameter.
And 207, inquiring asset data corresponding to the retrieval parameters from the asset database by using the corresponding data access interface.
208, the asset data is sent to the terminal.
Wherein, the steps 204 to 208 are the same as the steps in the asset retrieval method described in fig. 1b, and please refer to the description in the asset retrieval method described in fig. 1b for details, which are not repeated herein. It is noted that the asset retrieval method further comprises the corresponding steps related to the rights described in the above embodiments. Please refer to the description of the asset retrieval method described in fig. 1b, which is not repeated herein.
The embodiment further provides a corresponding data access interface to realize the analysis and the import of the original asset information to the asset database. The analysis and the import of the original asset information under different conditions can be realized through the corresponding data access interfaces, so that the analysis and the import efficiency of the original asset information are improved; on the other hand, the original asset information is stored in the asset database and shared by the owner, so that the safety of the original asset information can be improved.
According to the method described in the above embodiments, the embodiment will be further described from the perspective of an asset retrieval device, which may be specifically implemented as a stand-alone entity or integrated in a server.
As shown in fig. 3, the asset retrieval device includes corresponding units for executing the asset retrieval method in fig. 1 b. The apparatus may include a receiving unit 301, a parsing unit 302, a calling unit 303, a retrieving unit 304, and a sending unit 305.
A receiving unit 301, configured to receive an asset retrieval request from a terminal.
And an analyzing unit 302, configured to analyze the asset retrieval request to obtain a retrieval parameter.
The calling unit 303 is configured to call a corresponding data access interface according to the parameter type of the search parameter.
Further, the parameter type includes an asset identifier and a first interface identifier, and the invoking unit 303 is specifically configured to invoke an asset location query interface according to the asset identifier and the first interface identifier.
Further, the parameter type includes an asset identifier and a second interface identifier, and the invoking unit 303 is specifically configured to invoke an asset track query interface according to the asset identifier and the second interface identifier.
Further, the parameter type includes an asset identifier and a third interface identifier, and the invoking unit 303 is specifically configured to invoke an asset video query interface according to the asset identifier and the third interface identifier.
Further, the parameter type includes an asset identifier and a fourth interface identifier, and the invoking unit 303 is specifically configured to invoke an asset location name query interface according to the asset identifier and the fourth interface identifier.
Further, the parameter type includes a location identifier and a fifth interface identifier, and the invoking unit 303 is specifically configured to invoke the location asset query interface according to the location identifier and the fifth interface identifier.
And the retrieval unit 304 is configured to query the asset data corresponding to the retrieval parameter from the asset database by using the corresponding data access interface.
Further, when the data access interface is an asset location query interface, the retrieving unit 304 includes: the device comprises a first query unit, a first acquisition unit and a first determination unit. The first query unit is used for querying the assets corresponding to the asset identification from the asset database by using the asset position query interface. The first acquisition unit is used for acquiring the position information of the assets. And the first determining unit is used for taking the acquired position information of the assets as asset data corresponding to the retrieval parameters.
Further, when the data access interface is an asset track query interface, the retrieving unit 304 includes: the device comprises a second query unit, a second acquisition unit, a generation unit and a second determination unit. And the second query unit is used for querying the assets corresponding to the asset identification from the asset database by using the asset track query interface. And the second acquisition unit is used for acquiring a plurality of position information of the assets. And the generating unit is used for generating the motion trail of the asset according to the time of the plurality of pieces of position information. And the second determining unit is used for taking the generated motion trail as asset data corresponding to the retrieval parameter.
Further, when the data access interface is an asset video query interface, the retrieving unit 304 includes: the device comprises a third query unit, a video calling unit and a third determination unit. And the third query unit is used for querying the assets corresponding to the asset identification from the asset database by using the asset video query interface. And the video calling unit is used for calling the video information shot by the assets. And the third determining unit is used for taking the shot video information as the asset data corresponding to the retrieval parameter.
Further, when the data access interface is an asset location name query interface, the retrieving unit 304 includes: a fourth query unit, a fourth acquisition unit and a fourth determination unit. And the fourth query unit is used for querying the assets corresponding to the asset identification from the asset database by using the asset location name query interface. And the fourth acquisition unit is used for acquiring the position name corresponding to the asset. And the fourth determining unit is used for taking the acquired position name as the asset data corresponding to the retrieval parameter.
Further, when the access interface is a location asset query interface, the retrieving unit 304 includes: a fifth query unit, a fifth obtaining unit and a fifth determining unit. And the fifth query unit is used for querying the position corresponding to the position identification from the asset database by using the position asset query interface. And the fifth acquisition unit is used for acquiring the corresponding asset information in the position. And the fifth determining unit is used for taking the acquired asset information as the asset data corresponding to the retrieval parameters.
A sending unit 305, configured to send the asset data to the terminal.
Further, the asset retrieval device further comprises an authority setting unit. The permission setting unit is used for receiving a permission setting request sent by a first terminal user and setting the permission of a second terminal user according to the permission setting request.
Correspondingly, the asset retrieval device further comprises an authority detection unit. The authority detection unit is used for detecting whether a terminal user corresponding to the terminal user identification has authority to acquire asset data; if the terminal user corresponding to the terminal user identifier has the authority to acquire the asset data, the sending unit 305 is triggered to send the asset data to the terminal. The authority detection unit is specifically used for acquiring an asset access range of the terminal user corresponding to the terminal user identifier; detecting whether the asset data exceeds the asset access range of the end user; if yes, determining that the terminal user has no authority to acquire asset data; if not, determining that the terminal user has the authority to acquire the asset data. Or
When the retrieval parameter includes the location identifier and the end user identifier, the retrieving unit 304 further includes: the interface calls the detection unit. The interface calling detection unit is used for detecting whether a terminal user corresponding to the terminal user identification has the authority to call the position inquiry interface; and if the terminal user has the authority to call the position query interface, triggering a fifth query unit to query the position corresponding to the position identification from the asset database by using the position asset query interface.
Fig. 4 is another schematic block diagram of an asset retrieval device provided in an embodiment of the present application, where the device includes corresponding units for executing the asset retrieval method in the embodiment of fig. 2 a. The apparatus includes a digitizing unit 306, an importing unit 307, and a storing unit 308, in addition to a receiving unit 301, a parsing unit 302, a calling unit 303, a retrieving unit 304, and a transmitting unit 305. The digitizing unit 306, the importing unit 307, and the saving unit 308 will be described below.
And a digitizing unit 306 for digitizing the building model to obtain three-dimensional spatial information of the building.
And an importing unit 307 for importing the asset information in the building and the position information of the asset information in the three-dimensional space information.
The saving unit 308 is configured to save the three-dimensional space information of the building, the asset information in the building, and the position information of the asset information in the three-dimensional space information to the asset database. The saving unit 308 is specifically configured to save the three-dimensional spatial information of the building, the asset information in the building, and the location information of the asset information into the blockchain.
Further, the asset retrieval device further includes an authority setting unit, and correspondingly, the asset retrieval device further includes an authority detection unit, and the like, specifically, please refer to the corresponding description of the embodiment of fig. 3.
In specific implementation, the above units may be implemented as independent entities, or may be implemented as one or several entities by any combination. The detailed implementation processes of the above apparatus and each unit, and the achieved beneficial effects, may refer to the corresponding descriptions applied in the asset retrieval method embodiments, and for convenience and conciseness of description, no further description is given here.
The embodiment of the present application further provides a computer device, as shown in fig. 5, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, specifically:
the computer device may include components such as a processor 501 of one or more processing cores, memory 502 of one or more computer-readable storage media, Radio Frequency (RF) circuitry 503, a power supply 504, an input unit 505, and a display unit 506. Those skilled in the art will appreciate that the computer device configurations illustrated in the figures are not meant to be limiting of computer devices and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 501 is a control center of the computer device, connects various parts of the entire computer device by using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby monitoring the computer device as a whole. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
The RF circuit 503 may be used for receiving and transmitting signals during information transmission and reception, and in particular, for receiving downlink information of a base station and then processing the received downlink information by one or more processors 501; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 503 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 503 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The computer device also includes a power supply 504 (e.g., a battery) for powering the various components, and preferably, the power supply 504 is logically coupled to the processor 501 via a power management system such that the power management system performs functions of managing charging, discharging, and power consumption. The power supply 504 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may further include an input unit 505, and the input unit 505 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 505 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 501, and can receive and execute commands sent by the processor 501. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 505 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The computer device may also include a display unit 506, the display unit 506 being operable to display information input by or provided to a user and various graphical user interfaces of the computer device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 506 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 501 to determine the type of the touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of the touch event. Although in the figures the touch sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
Although not shown, the computer device may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 501 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions as follows:
receiving an asset retrieval request from a terminal;
analyzing the asset retrieval request to obtain retrieval parameters;
calling a corresponding data access interface according to the parameter type of the retrieval parameter;
utilizing the corresponding data access interface to inquire the asset data corresponding to the retrieval parameters from the asset database;
and transmitting the asset data to the terminal.
The computer device can implement the steps in any embodiment of the asset retrieval method applied to the server provided by the embodiment of the present application, and therefore, the beneficial effects that any asset retrieval method applied to the server provided by the embodiment of the present application can implement can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any embodiment of the asset retrieval method applied to the server side provided by the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any asset retrieval method embodiment provided by the embodiment of the present invention, the beneficial effects that can be achieved by any asset retrieval method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The asset retrieval method, device, computer equipment and storage medium provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. An asset retrieval method, comprising:
digitizing a building model to obtain three-dimensional spatial information of a building, wherein the digitizing comprises analyzing the building model based on a traversal tree mode and importing the building model through a corresponding data access interface, the building is equivalent to a root node of the tree, each floor of the building is equivalent to a child node corresponding to the root node, and each room is equivalent to a leaf node;
importing asset information in a building and position information of the asset information in the three-dimensional space information;
storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information into an asset database;
receiving an authority setting request sent by a first terminal user, wherein the authority setting request comprises information of a second terminal user and an asset access range of the second terminal user, and the asset access range is set by the first terminal user; setting the authority of the second terminal user according to the information of the second terminal user and the asset access range; acquiring current time, and generating a timestamp according to the current time; generating a dynamic key according to a preset encryption algorithm; sending the dynamic key to the second end user; generating first key data according to the dynamic key and the timestamp; the set asset access range comprises assets in a certain floor or assets in a certain floor of the certain floor or assets in a certain room of the certain floor; the first terminal user is an owner and enjoys original asset information; the second terminal user is a calling party; receiving information of the second end user and the dynamic key input by the second end user; acquiring a corresponding timestamp when the dynamic key is generated; generating second key data according to the dynamic key and the acquired timestamp, and judging whether the second key data is the same as the first key data; if the first terminal user is the same as the second terminal user, allowing the second terminal user to log in; the server generates a dynamic key according to the preset encryption algorithm; when the second terminal user logs in the server to access the data access interface, the second terminal user logs in by using the information of the second terminal user and the received dynamic key;
receiving an asset retrieval request from a terminal, wherein the asset retrieval request is generated based on an interface identifier in a triggered second control on the terminal, setting parameters of a first control and an end user identifier, and end users comprise the first end user and the second end user;
analyzing the setting parameters, the interface identification and the terminal user identification of the asset retrieval request to obtain retrieval parameters; or identifying voice information in the voice asset retrieval request by a voice identification method to obtain a voice identification result, and determining retrieval parameters according to the voice identification result; or acquiring a command corresponding to the asset retrieval request, and extracting information contained in the command according to the structure of the command to obtain a retrieval parameter; the retrieval parameters comprise asset identification, position identification, interface identification and terminal user identification;
calling corresponding data access interfaces according to the parameter types of the retrieval parameters, wherein the data access interfaces comprise a position asset query interface, an asset track query interface, an asset video query interface and an asset position name query interface;
utilizing an asset track query interface to query the motion track of the asset corresponding to the asset identification in the corresponding time from the asset database to obtain asset data corresponding to the retrieval parameters, wherein the asset corresponding to the asset identification comprises an asset which can move after receiving the instruction and an asset which is carried by the user and moves along with the user; or querying video information shot by the assets corresponding to the asset identification from the asset database by using an asset video query interface, and taking the queried video information as asset data corresponding to the retrieval parameters; or, inquiring the position name corresponding to the asset identifier from the asset database by using an asset position name inquiry interface to obtain asset data corresponding to the retrieval parameter; or, inquiring asset information corresponding to the position identification from the asset database by using a position asset inquiry interface to obtain asset data corresponding to the retrieval parameter;
detecting whether the obtained asset data corresponding to the retrieval parameters exceeds the asset access range of the terminal user; if the asset data does not exceed the asset access range of the terminal user, determining that the terminal has the authority to acquire the asset data, and sending the asset data to the terminal;
determining retrieval parameters according to the voice recognition result, comprising: extracting asset information or position information in the voice recognition result; extracting interface related information according to the semantics of the voice recognition result; respectively mapping asset information or position information into asset identifiers or position identifiers, and mapping interface related information into interface identifiers, wherein the asset database comprises explanatory information of a data access interface corresponding to each interface identifier, and semantic meaning in a voice recognition result is matched with the explanatory information so as to map the interface related information into specific interface identifiers.
2. The asset retrieval method of claim 1, wherein the parameter types include an asset identifier and a first interface identifier, and the step of calling the corresponding data access interface according to the parameter type of the retrieval parameter comprises:
and calling an asset position query interface according to the asset identification and the first interface identification.
3. The asset retrieval method of claim 1, wherein the parameter type comprises an asset identifier and a second interface identifier, and the step of calling the corresponding data access interface according to the parameter type of the retrieval parameter comprises:
and calling an asset track query interface according to the asset identification and the second interface identification.
4. The asset retrieval method according to claim 3, wherein the step of using the asset track query interface to query the asset database for the motion track of the asset corresponding to the asset identifier within the corresponding time to obtain the asset data corresponding to the retrieval parameter comprises:
acquiring a plurality of position information corresponding to the asset identification from an asset database by using the asset track query interface;
generating a motion track corresponding to the asset identification according to the time of the plurality of position information;
and determining the motion trail as the asset data corresponding to the retrieval parameter.
5. The asset retrieval method of claim 1, wherein the parameter types include an asset identifier and a third interface identifier, and the step of calling the corresponding data access interface according to the parameter type of the retrieval parameter comprises:
and calling an asset video query interface according to the asset identification and the third interface identification.
6. The asset retrieval method of claim 1, wherein the step of saving the three-dimensional spatial information of the building, the asset information within the building, and the location information of the asset information to an asset database comprises:
and storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information into a block chain.
7. An asset retrieval device, comprising:
the building model is analyzed in a traversing tree mode and imported through a corresponding data access interface, the building is equivalent to a root node of the tree, each floor of the building is equivalent to a child node corresponding to the root node, and each room is equivalent to a leaf node;
the system comprises an importing unit, a storage unit and a processing unit, wherein the importing unit is used for importing asset information in a building and position information of the asset information in three-dimensional space information;
the storage unit is used for storing the three-dimensional space information of the building, the asset information in the building and the position information of the asset information in the three-dimensional space information into an asset database;
a receiving unit, configured to receive an authority setting request sent from a first terminal user, where the authority setting request includes information of a second terminal user and an asset access range of the second terminal user set by the first terminal user; setting the authority of the second terminal user according to the information of the second terminal user and the asset access range; acquiring current time, and generating a timestamp according to the current time; generating a dynamic key according to a preset encryption algorithm; sending the dynamic key to the second end user; generating first key data according to the dynamic key and the timestamp; the set asset access range comprises assets in a certain floor or assets in a certain floor of the certain floor or assets in a certain room of the certain floor; the first terminal user is an owner and enjoys original asset information; the second terminal user is a calling party;
the receiving unit is configured to receive information of the second end user and the dynamic key input by the second end user; acquiring a corresponding timestamp when the dynamic key is generated; generating second key data according to the dynamic key and the acquired timestamp, and judging whether the second key data is the same as the first key data; if the first terminal user is the same as the second terminal user, allowing the second terminal user to log in; the server generates a dynamic key according to the preset encryption algorithm; when the second terminal user logs in the server to access the data access interface, the second terminal user logs in by using the information of the second terminal user and the received dynamic key;
the system comprises a receiving unit, a searching unit and a searching unit, wherein the receiving unit is used for receiving an asset searching request from a terminal, and the asset searching request is generated based on an interface identifier in a triggered second control on the terminal, a setting parameter of a first control and a terminal user identifier; the end users comprise the first end user and the second end user;
the analysis unit is used for analyzing the setting parameters, the interface identification and the terminal user identification of the asset retrieval request to obtain retrieval parameters; or identifying voice information in the voice asset retrieval request by a voice identification method to obtain a voice identification result, and determining retrieval parameters according to the voice identification result; or acquiring a command corresponding to the asset retrieval request, and extracting information contained in the command according to the structure of the command to obtain a retrieval parameter; the retrieval parameters comprise asset identification, position identification, interface identification and terminal user identification;
the calling unit is used for calling a corresponding data access interface according to the parameter type of the retrieval parameter, and the data access interface comprises a position asset query interface, an asset track query interface, an asset video query interface and an asset position name query interface;
the retrieval unit is used for querying the movement track of the asset corresponding to the asset identification in the corresponding time from the asset database by using the asset track query interface to obtain asset data corresponding to the retrieval parameter, wherein the asset corresponding to the asset identification comprises an asset which can move after receiving the instruction and an asset which is carried by the user and moves along with the user; or querying video information shot by the assets corresponding to the asset identification from the asset database by using the asset video query interface, and taking the queried video information as asset data corresponding to the retrieval parameters; or, the asset location name query interface is used for querying the location name corresponding to the asset identifier from the asset database to obtain asset data corresponding to the retrieval parameter; or, the position asset query interface is utilized to query the asset information corresponding to the position in the position corresponding to the position identification from the asset database to obtain the asset data corresponding to the retrieval parameter;
the authority detection unit is used for detecting whether the obtained asset data corresponding to the retrieval parameters exceeds the asset access range of the terminal user; if the asset data does not exceed the asset access range of the terminal user, determining that the terminal user has the authority to acquire the asset data;
a sending unit, configured to send the asset data to the terminal;
the analysis unit is also used for extracting asset information or position information in the voice recognition result; extracting interface related information according to the semantics of the voice recognition result; respectively mapping asset information or position information into asset identifiers or position identifiers, and mapping interface related information into interface identifiers, wherein the asset database comprises explanatory information of a data access interface corresponding to each interface identifier, and semantic meaning in a voice recognition result is matched with the explanatory information so as to map the interface related information into specific interface identifiers.
8. A storage medium having stored thereon a plurality of instructions loadable by a processor to perform the asset retrieval method of any of claims 1 to 7.
9. A computer device, characterized in that the computer device comprises: a memory for storing executable instructions; a processor for implementing the asset retrieval method of any one of claims 1 to 7 when executing the executable instructions stored by the memory.
CN201911049340.2A 2019-10-31 2019-10-31 Asset retrieval method and device Active CN111190950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911049340.2A CN111190950B (en) 2019-10-31 2019-10-31 Asset retrieval method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911049340.2A CN111190950B (en) 2019-10-31 2019-10-31 Asset retrieval method and device

Publications (2)

Publication Number Publication Date
CN111190950A CN111190950A (en) 2020-05-22
CN111190950B true CN111190950B (en) 2021-12-31

Family

ID=70707322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911049340.2A Active CN111190950B (en) 2019-10-31 2019-10-31 Asset retrieval method and device

Country Status (1)

Country Link
CN (1) CN111190950B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782652B (en) * 2020-06-30 2024-04-02 深圳赛安特技术服务有限公司 Data calling method, device, computer equipment and storage medium
CN112464316A (en) * 2020-11-23 2021-03-09 中建四局第六建设有限公司 Method for interaction between revit model and corresponding drawing
CN116821192B (en) * 2023-08-30 2023-11-24 中国中金财富证券有限公司 Asset data query method and device and computer equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652078A (en) * 2004-02-05 2005-08-10 华为技术有限公司 Method for implementing remote-call by application program interface system on database
CN102402548B (en) * 2010-09-17 2013-10-23 金蝶软件(中国)有限公司 Method and system for controlling data query of application system
US9331852B2 (en) * 2011-04-07 2016-05-03 Infosys Technologies, Ltd. System and method for securing data transaction
CN106034130A (en) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 Data access method and device
CN104866383B (en) * 2015-05-29 2018-11-23 北京金山安全软件有限公司 Interface calling method and device and terminal
CN106453195B (en) * 2015-08-04 2020-04-14 腾讯科技(深圳)有限公司 Resource request processing method, authentication request processing device, and authentication device
CN106980772A (en) * 2017-05-17 2017-07-25 雷志勤 Hospital's fixed assets management system based on Internet of Things
CN109067766A (en) * 2018-08-30 2018-12-21 郑州云海信息技术有限公司 A kind of identity identifying method, server end and client
CN109992993A (en) * 2019-02-27 2019-07-09 平安科技(深圳)有限公司 Assets information processing method, device, equipment and storage medium based on block chain

Also Published As

Publication number Publication date
CN111190950A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111190950B (en) Asset retrieval method and device
CN111475841B (en) Access control method, related device, equipment, system and storage medium
EP1220510B1 (en) Method and system for context-aware network policy determination and enforcement
CN107430666A (en) Tenant's lock box
CN108345543B (en) Data processing method, device, equipment and storage medium
CN105100034B (en) The method and apparatus of access function in a kind of network application
CN107852416A (en) The life cycle of monitoring computer network connection
CN104753677B (en) Password hierarchical control method and system
CN104159294A (en) Cloud positioning platform based on Bluetooth 4.0 technology
US10410152B2 (en) System and method for automatically and efficiently monitoring software development life cycles
CN107533618A (en) Protect data from unwarranted access
CN112235303B (en) Account logout method and device and computer equipment
CN114694226B (en) Face recognition method, system and storage medium
KR102652384B1 (en) Method, system, and non-transitory computer readable record medium for controlling device based internet of things using messenger bot
US20070162597A1 (en) Service notification system
CN106940643A (en) Logical APP systems between the police and the people
CN111488594A (en) Authority checking method and device based on cloud server, storage medium and terminal
CN111143391A (en) Data sharing exchange method and system
WO2018210214A1 (en) Device positioning method and apparatus
CN114641782A (en) Construction document management hybrid system based on block chain and method thereof
US11681938B2 (en) Intelligent signal matching of disparate input data in complex computing networks
CN110532324A (en) Notice information methods of exhibiting, device, equipment and storage medium based on block chain
CN106031101A (en) Deriving atomic communication threads from independently addressable messages
CN105468752B (en) A kind of data product building system
CN116451191A (en) Information auditing method, device, electronic equipment and computer readable storage medium

Legal Events

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