CN110489986A - Response method, system and the electronic equipment of diagram data function - Google Patents

Response method, system and the electronic equipment of diagram data function Download PDF

Info

Publication number
CN110489986A
CN110489986A CN201910780762.0A CN201910780762A CN110489986A CN 110489986 A CN110489986 A CN 110489986A CN 201910780762 A CN201910780762 A CN 201910780762A CN 110489986 A CN110489986 A CN 110489986A
Authority
CN
China
Prior art keywords
diagram data
function
server
data function
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910780762.0A
Other languages
Chinese (zh)
Other versions
CN110489986B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910780762.0A priority Critical patent/CN110489986B/en
Publication of CN110489986A publication Critical patent/CN110489986A/en
Application granted granted Critical
Publication of CN110489986B publication Critical patent/CN110489986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application provides response method, system and the electronic equipments of a kind of diagram data function, method is applied to diagram data service equipment, the equipment is connect with OpenAPI client device, diagram data function services equipment respectively, and method includes: the diagram data function request for receiving OpenAPI client device and sending;Code key and diagram data function services address are carried in the request of diagram data function;It is authenticated based on the request of secret key pair diagram data function;After authenticating successfully, the corresponding server in diagram data function services address is determined as destination server, triggering destination server responds the request of diagram data function, obtains diagram data function and requests corresponding diagram data functional response information;Diagram data functional response information is returned into OpenAPI client device.The application can realize diagram data storage, calculate, using a variety of diagram datas function involved in whole process on the basis of, reduce development cost, improve development efficiency.

Description

Response method, system and the electronic equipment of diagram data function
Technical field
This application involves diagram data technical fields, more particularly, to response method, system and the electricity of a kind of diagram data function Sub- equipment.
Background technique
Diagram data is the data under a kind of non-Euclidean space, has the characteristics that isomery is multiattribute, can in storage, calculate, answer With etc. dedicated solution is provided.The prior art mainly carries out the relevant research and development of diagram data in terms of two: 1) Figure storage, diagram data read-write, the operation such as provide diagram data storage environment and read and write, do not provide nomography training environment;2) The correlative studys such as nomography research, mainly figure deep learning, figure insertion.
Since the daily update of diagram data is limited to application scenarios, typically only allow for carrying out more inside figure storage environment Newly, not the problems such as not meeting the process of development of automation, and easily leading to data safety.And for the deployment of nomography model with make With, need user first to obtain training result file, then disposed on other servers, increase overlapping development at This, reduces development efficiency.
Summary of the invention
A kind of response method, system and the electronic equipment for being designed to provide diagram data function of the application, can be in reality Existing diagram data storage, calculate, using a variety of diagram datas function involved in whole process on the basis of, improve Information Security, Development cost is reduced, development efficiency is improved.
In a first aspect, a kind of response method of diagram data function provided by the embodiments of the present application, this method is applied to figure number According to service equipment, diagram data service equipment is connect with OpenAPI client device, diagram data function services equipment respectively, figure number It include at least one server for realizing diagram data function according to function services equipment, method includes: to receive OpenAPI client The diagram data function request that end equipment is sent;Wherein, in the request of diagram data function with carrying code key and diagram data function services Location;It is authenticated based on the request of secret key pair diagram data function;After authenticating successfully, by the corresponding clothes in diagram data function services address Business device is determined as destination server, and triggering destination server responds the request of diagram data function, obtains diagram data function and ask Seek corresponding diagram data functional response information;Diagram data functional response information is returned into OpenAPI client device.
In the application preferred embodiment, above-mentioned the step of being authenticated based on the request of secret key pair diagram data function, packet It includes: judging that code key whether there is in preset database;If it does, authenticating successfully;If it does not, to OpenAPI visitor Family end equipment sends the prompt information that code key is not present.
It is above-mentioned that the corresponding server in diagram data function services address is determined as target in the application preferred embodiment The step of server, comprising: diagram data function services address is parsed, diagram data function is obtained and requests corresponding function word Section and Function Identification;Server corresponding with function field and Function Identification is looked up from the preset database, by what is found out Server is as destination server.
It is above-mentioned to be looked up from the preset database and function field and Function Identification pair in the application preferred embodiment The step of server answered, comprising: if diagram data function requests corresponding Function Identification for diagram data mark, from function type For locating function field in the server of figure storage environment service function and the corresponding server of Function Identification;If diagram data function It can request that corresponding Function Identification is figure training environment mark or model deployment mark, be that figure calculates environment clothes from function type Locating function field and the corresponding server of Function Identification in the server for function of being engaged in.
It is above-mentioned to be looked up from the preset database and function field and Function Identification in the application preferred embodiment Before the step of corresponding server, method further include: whether the function that detection function field indicates is diagram data inquiry, data One in routine mission, the deployment of nomography model or nomography model use;If so, being sentenced according to Function Identification and code key Whether the disconnected user for initiating the request of diagram data function has diagram data feature operation permission;If so, executing from preset database The step of middle lookup server corresponding with function field and Function Identification.
It is above-mentioned according to Function Identification and code key in the application preferred embodiment, judge to initiate the request of diagram data function User whether have the step of diagram data feature operation permission, comprising: from preset database read code key corresponding first User information and read functions identify corresponding second user information;Judge the first user information is with second user information It is no consistent;If consistent, determine that the user for initiating the request of diagram data function has diagram data feature operation permission.
In the application preferred embodiment, functional parameter is also carried in above-mentioned diagram data function request;Trigger target The step of server responds the request of diagram data function, comprising: be sent to the functional parameter in the request of diagram data function Destination server, so that destination server according to functional parameter, determines that diagram data function requests corresponding diagram data function to be rung Answer information;Receive the diagram data functional response information that destination server returns.
In the application preferred embodiment, the above-mentioned functional parameter by the request of diagram data function is sent to destination service Device, so that destination server according to functional parameter, determines that diagram data function requests corresponding diagram data functional response information Step, comprising: whether audit function parameter is query statement;If so, query statement is sent to destination server, so that mesh It marks server and searches diagram data query result corresponding with query statement;It is requested diagram data query result as diagram data function Corresponding diagram data functional response information.
In the application preferred embodiment, the above-mentioned functional parameter by the request of diagram data function is sent to destination service Device, so that destination server according to functional parameter, determines that diagram data function requests corresponding diagram data functional response information Step, comprising: whether audit function parameter only includes Function Identification;If so, Function Identification is sent to destination server, with Destination server is set to search version querying result corresponding with Function Identification;It is requested version querying result as diagram data function Corresponding diagram data functional response information.
In the application preferred embodiment, above-mentioned server is included at least: function type is that figure storage environment services function The server and function type of energy are the server that figure calculates environmental serving function;If the function that function field indicates is version Inquiry, diagram data inquiry or data routine mission, the corresponding destination server of function field are figure storage environment service function Server;If the function that function field indicates is that nomography model is disposed or nomography model uses, function field is corresponding Destination server be figure calculate environmental serving function server.
Second aspect, the embodiment of the present application also provide a kind of response method of diagram data function, and this method is applied to OpenAPI client device, OpenAPI client device are connect with diagram data service equipment, diagram data service equipment and figure number It being connected according to function services equipment, diagram data function services equipment includes at least one server for realizing diagram data function, Method includes: the diagram data function trigger action that response is directed to OpenAPI client;Diagram data is sent to diagram data service equipment The corresponding diagram data function request of function trigger action;Wherein, code key and diagram data function are carried in the request of diagram data function Address of service;Receive the diagram data functional response information that diagram data service equipment returns, wherein diagram data functional response information is It is after diagram data service equipment authenticates successfully according to secret key pair diagram data function request, diagram data function services address is corresponding Server be determined as destination server, and trigger destination server and the request of diagram data function responded.
The third aspect, the embodiment of the present application also provide a kind of response system of diagram data function, and system includes: OpenAPI Client device, diagram data service equipment and diagram data function services equipment;Wherein, diagram data service equipment respectively with OpenAPI client device is connected with diagram data function services equipment;Diagram data function services equipment includes that at least one is used for Realize the server of diagram data function;Diagram data service equipment is used to execute the responder of diagram data function described in first aspect The step of method;OpenAPI client device is for the step of executing the response method of diagram data function described in second aspect.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, including processor and memory, memory storage There are the computer executable instructions that can be executed by processor, processor executes computer executable instructions to realize first aspect Or method described in second aspect.
5th aspect, the embodiment of the present application also provide a kind of computer readable storage medium, computer readable storage medium Computer executable instructions are stored with, when being called and being executed by processor, computer is executable to be referred to computer executable instructions Order promotes processor to realize method described in first aspect or second aspect.
The embodiment of the present application bring it is following the utility model has the advantages that
The embodiment of the present application provides response method, system and the electronic equipment of a kind of diagram data function, this method application In diagram data service equipment, the diagram data service equipment respectively with OpenAPI client device and diagram data function services equipment Connection, diagram data function services equipment includes at least one server for realizing diagram data function.In specific implementation, first The diagram data function request that OpenAPI client device is sent first is received, carries code key and figure in diagram data function request Data function address of service is authenticated by the request of above-mentioned secret key pair diagram data function, and after authenticating successfully, by above-mentioned figure The corresponding server in data function address of service is determined as destination server, then triggers destination server and asks to diagram data function It asks and is responded, obtain above-mentioned diagram data function and request corresponding diagram data functional response information, finally ring diagram data function Information is answered to return to OpenAPI client device.Pass through above-mentioned diagram data service equipment, OpenAPI client device and figure number According to the interaction between function services equipment, it can realize diagram data storage, calculate, using a variety of figures involved in whole process On the basis of data function, development cost is reduced, improves development efficiency.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the application specific embodiment or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the application, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the response method of diagram data function provided by the embodiments of the present application;
Fig. 2 is the flow chart of the response method of another diagram data function provided by the embodiments of the present application;
Fig. 3 is the flow chart of the response method of another diagram data function provided by the embodiments of the present application;
Fig. 4 is the flow chart of the response method of another diagram data function provided by the embodiments of the present application;
Fig. 5 be in a kind of response method of diagram data function provided by the embodiments of the present application downloading OpenAPI client and The schematic diagram of code key;
Fig. 6 is a kind of structural schematic diagram of the response system of diagram data function provided by the embodiments of the present application;
Fig. 7 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
It is clearly and completely described below in conjunction with technical solution of the embodiment to the application, it is clear that described reality Applying example is some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model of the application protection It encloses.
In view of the storage of existing diagram data is to calculating to during the research and development of application, lack the update of diagram data With the functions such as service arrangement, it is not easy to carry out development of automation during process access, lacking can operate in practical applications Property.Based on this, the embodiment of the present application provides response method, system and the electronic equipment of a kind of diagram data function, can realize Diagram data storage, calculate, using a variety of diagram datas function involved in whole process on the basis of, improve Information Security, subtract Few development cost, improves development efficiency.
For the sound convenient for understanding the present embodiment, first to a kind of diagram data function disclosed in the embodiment of the present application Induction method describes in detail.
Fig. 1 shows a kind of flow chart of the response method of diagram data function provided by the embodiments of the present application, and this method is answered For diagram data service equipment, such as: diagram data service platform, diagram data server, OpenAPI server etc..Above-mentioned figure number It is connect respectively with OpenAPI client device, diagram data function services equipment according to service equipment, the diagram data function services equipment Including at least one for realizing the server of diagram data function, such as: provide figure storage environment service function server or Person schemes to calculate the server of environmental serving function.Above-mentioned diagram data function includes at least following one: version querying, diagram data are looked into Inquiry, the deployment of data routine mission, nomography model or nomography model use.As shown in Figure 1, the response of above-mentioned diagram data function Method specifically includes the following steps:
Step S102 receives the diagram data function request that OpenAPI client device is sent;Wherein, diagram data function is asked Code key and diagram data function services address are carried in asking.
Above-mentioned OpenAPI client device can be mobile terminal, be also possible to computer etc., and OpenAPI client can be with It is mounted to APP of the mobile terminal perhaps on computer or is also possible to code collection, is i.e. code compaction packet.Different programmings Under language, the form of this client encapsulation may be different, but its function of realizing is the same, is all that user is used to connect The medium of server-side.
When it is implemented, above-mentioned diagram data service equipment receives the diagram data function of OpenAPI client device transmission first It can request that, the request of diagram data function may include version querying request, diagram data inquiry request, the request of data routine mission, figure Algorithm model deployment request and nomography model use any one of request.It is carried in the request of above-mentioned diagram data function secret Key and diagram data function services address.
Wherein, code key is one-to-one, with uniqueness, the identifiable word that diagram data service equipment provides the user with Symbol string, loads in the designated position of OpenAPI client, so that diagram data service equipment authenticates above-mentioned request.On It states diagram data function services address to be made of prefix and suffix, usual prefix is conventional server address, such as Www.163.com, suffix can be set as different according to different diagram data functions, such as:
(1) data routine function/graph/load_routine;
(2) version querying/graph/GraphId/versions;
(3) diagram data inquiry/graph/GraphId/gremlin code={ };
(4) model deployment/graph/TrainID/deploy;
(5) model use/graph/ModelID/infer;
Include Function Identification and function field in the above-mentioned different corresponding suffix of diagram data function, or also can wrap Its corresponding functional parameter is included, it is corresponding to realize so that diagram data service equipment finds corresponding destination server by parsing Function.
Step S104 is authenticated based on the request of secret key pair diagram data function.
After diagram data service equipment receives above-mentioned diagram data function request, can further it be requested according to diagram data function The request of the secret key pair of middle carrying is authenticated.In the present embodiment, above-mentioned code key and OpenAPI client all can be users After logging in diagram data service platform, what platform automatically generated.User can download code key and OpenAPI client from platform, The specific position for the code key input OpenAPI client that will acquire again, makes diagram data service equipment carry out authentication operations.
The corresponding server in diagram data function services address is determined as destination service after authenticating successfully by step S106 Device, triggering destination server respond the request of diagram data function, obtain diagram data function and request corresponding diagram data function Response message.
It is specific to respond since diagram data function services equipment includes at least one server for realizing diagram data function When diagram data function is requested, which server corresponding function is realized using, needs the determination process of a destination server, The corresponding server in above-mentioned diagram data function services address is exactly determined as destination server.
After destination server has been determined, diagram data service equipment can join the function of carrying in the request of diagram data function Number, the functional parameter parsed in above-mentioned diagram data function services address in other words are sent to destination server, the destination service Device can determine that diagram data function requests corresponding diagram data functional response information further according to functional parameter, and by the figure Data function response message is sent to diagram data service equipment.
Diagram data functional response information is returned to OpenAPI client device by step S108.
Diagram data service equipment is after the diagram data functional response information for receiving destination server transmission, then returns it into Give OpenAPI client device.
The response method of diagram data function provided by the embodiments of the present application is applied to diagram data service equipment, diagram data clothes Business equipment is connect with OpenAPI client device and diagram data function services equipment respectively, and diagram data function services equipment includes At least one is for realizing the server of diagram data function, and in specific implementation, reception OpenAPI client device first is sent The request of diagram data function, authenticated by the request of the secret key pair diagram data function that is carried in above-mentioned request, and authentication at After function, the corresponding server in diagram data function services address carried in above-mentioned request is determined as destination server, is then touched Hair destination server responds the request of diagram data function, obtains above-mentioned diagram data function and corresponding diagram data function is requested to be rung Information is answered, diagram data functional response information is finally returned into OpenAPI client device.The embodiment of the present application passes through above-mentioned figure Interaction between data service unit, OpenAPI client device and diagram data function services equipment can realize diagram data Storage, calculate, using a variety of diagram datas function involved in whole process on the basis of, improve Information Security, reduce exploitation Cost improves development efficiency.
In the present example embodiment, the step authenticated above-mentioned steps S104: is requested based on secret key pair diagram data function It suddenly can be the following steps are included: judging that code key whether there is in preset database;If it is present authenticating successfully;Such as Fruit is not present, and sends the prompt information that code key is not present to OpenAPI client device.
Specifically, being loaded with after code key in user's OpenAPI client, diagram data clothes can be transmitted to by api interface Business equipment, diagram data service equipment verify whether the code key has existed by database first, such as after obtaining code key Fruit exists, then authenticates success, then carry out follow-up function response, otherwise, user's code key is prompted to be not present.
The present embodiment passes through the code key of OpenAPI client and distribution, is authenticated in diagram data server-side, can be effective Control the operating right of different user.
It is above-mentioned that the corresponding server in diagram data function services address is determined as target in a kind of optional embodiment The step of server, may comprise steps of, as shown in Figure 2:
Step S202 parses diagram data function services address, obtains diagram data function and requests corresponding function word Section and Function Identification.
When determining destination server, above-mentioned diagram data function services address is parsed first, such as diagram data function Energy address of service are as follows: www.163.com/graph/GraphId/versions obtains the request of diagram data function and corresponds to after parsing Function field versions and Function Identification GraphId.
Step S204: server corresponding with function field and Function Identification is looked up from the preset database, will search Server out is as destination server.
Each function field is previously stored in above-mentioned database, each Function Identification is corresponding with each server to close System.Then the corresponding server of versions and GraphId is found out from above-mentioned database, as destination server.
In a preferred embodiment, if diagram data function requests corresponding Function Identification for diagram data mark, Such as: GraphID, then locating function field and function mark from the server that function type is figure storage environment service function Know corresponding server.
If diagram data function requests corresponding Function Identification for figure training environment mark, such as TrainID or mold portion Administration's mark, such as ModelID, then being that figure calculates locating function field and function in the server of environmental serving function from function type Corresponding server can be identified.
I.e. above-mentioned server includes at least: function type is the server of figure storage environment service function and function type is Figure calculates two kinds of server of environmental serving function.Other than above by server of the Function Identification to select different function, Different servers can also be directly selected according to the function that function field indicates, such as:
If the function that above-mentioned function field indicates is version querying, diagram data is inquired or data routine mission, The corresponding destination server of above-mentioned function field is the server of figure storage environment service function;If above-mentioned function field indicates Function be nomography model dispose or nomography model use, then the corresponding destination server of above-mentioned function field be figure meter Calculate the server of environmental serving function.
Diagram data function can be obtained in diagram data service platform by above two mode request corresponding target clothes Business device, unified distribution are requested and are received response, reduce error rate.
In the present example embodiment, certain diagram data functions are requested, it may be after being authenticated successfully by code key, just Can request corresponding function directly in response to the diagram data function, for example, the request of diagram data function be version querying request when It waits;And some other diagram data functions are requested, then the decision process of a function privilege is needed, as shown in Figure 2:
In above-mentioned steps S204: server corresponding with function field and Function Identification is looked up from the preset database Before step, method is further comprising the steps of:
Step S206, whether the function that detection function field indicates is diagram data inquiry, data routine mission, nomography mould One in type deployment or nomography model use.
If so, executing step S208, according to Function Identification and code key, judge that the user for initiating the request of diagram data function is It is no to have diagram data feature operation permission.If not, return step S204, is looked up from the preset database and function field and function Corresponding server can be identified, using the server found out as destination server.
If there is diagram data feature operation permission, execution step S204: being looked up from the preset database and function field Server corresponding with Function Identification, using the server found out as destination server.
If executing step S210 without diagram data feature operation permission: not scheming to the transmission of OpenAPI client device The prompt information of data function operating right.
In the application preferred embodiment, above-mentioned steps S208: according to Function Identification and code key, judge to initiate diagram data Whether the user of function request has diagram data feature operation permission, specifically includes following steps, shown in Figure 3:
Step S302 reads corresponding first user information of code key and read functions mark from preset database Corresponding second user information.
Step S304 judges whether the first user information is consistent with second user information.
If consistent, step S306 is executed, determines that the user for initiating the request of diagram data function has diagram data feature operation power Limit.If inconsistent, step S308 is executed, determines that the user for initiating the request of diagram data function does not have diagram data feature operation power Limit.
It is (either independent in diagram data service platform since user is before obtaining code key and OpenAPI client The platform of exploitation or public open platform) it is registered and has been logged in, so background data base, that is, above-mentioned preset number According to having had recorded the relevant informations such as code key, user in library.Equal users are connected to diagram data service by OpenAPI client and put down When platform, diagram data service platform can parse the first user information according to code key, further according to what is added in OpenAPI client GraphID in the request of diagram data function finds corresponding second user information from database, judges whether the two is consistent, If consistent, illustrate that the user has diagram data feature operation permission.
In the application preferred embodiment, functional parameter is also carried in above-mentioned diagram data function request.It needs to illustrate , which can be arranged side by side with above-mentioned code key, diagram data function services address, and individually addition is in diagram data function In request, it is also possible to by being parsed to above-mentioned diagram data function services address.It can in above-mentioned functional parameter To include many kinds of parameters such as Function Identification, nomography model file path, mode input.
The step of above-mentioned triggering destination server responds the request of diagram data function specifically includes: by diagram data function Functional parameter in request is sent to destination server, so that destination server determines diagram data function according to functional parameter Request corresponding diagram data functional response information;Receive the diagram data functional response information that destination server returns.
The response example of five kinds provided by the embodiments of the present application common diagram data functions is set forth below:
1, version querying function: whether audit function parameter only includes Function Identification;If so, Function Identification is sent to Function type is the server of figure storage environment service function, so that the server searches version querying corresponding with Function Identification As a result;Corresponding diagram data functional response information is requested using version querying result as diagram data function.
Such as: added in OpenAPI client diagram data function services address, code key and Function Identification GraphID it Afterwards, diagram data service platform first carries out the authentication of code key by reading database, after the authentication is passed, is taken by figure storage environment The server for function of being engaged in returns to the corresponding version information of GraphID to OpenAPI client.
2, diagram data query function: whether audit function parameter is query statement;If so, query statement is sent to mesh Server is marked, so that destination server searches diagram data query result corresponding with query statement;Diagram data query result is made Corresponding diagram data functional response information is requested for diagram data function.
Such as: diagram data function services address, code key, Function Identification GraphID are added in OpenAPI client and are looked into After asking sentence code, diagram data service platform first carries out the authentication of code key by reading database, after the authentication is passed, passes through The corresponding user information of code key and the corresponding user information of GraphID in reading database when two user informations are consistent, determine The user has the permission of diagram data query function, further, gives OpenAPI visitor by the server of figure storage environment service function The result of family end return query statement code.
It should be noted that query statement code included is that the server of figure storage environment service function can identify Figure query statement, such as gremlin.
3, data routine mission function: whether audit function parameter is diagram data partition information and figure profile information; If so, diagram data partition information and figure profile information are sent to the clothes that function type is figure storage environment service function Business device so that the server carries out data routine, and generates the customary successful information of diagram data;By the customary successfully letter of diagram data Breath requests corresponding diagram data functional response information as diagram data function.
Such as: diagram data function services address, code key, Function Identification GraphID, figure are added in OpenAPI client After data partition information (as daily or by the hour) and figure profile information, diagram data service platform passes through reading database The authentication for first carrying out code key, it is corresponding by the corresponding user information of code key in reading database and GraphID after the authentication is passed User information, when two user informations are consistent, determine that the user has the permission of data routine mission function, further, pass through The server of figure storage environment service function returns to the customary successful information of diagram data to OpenAPI client.
The function of above-mentioned data routine mission can satisfy the demand that user updates in different scenes data, can make by oneself The frequency and time that adopted data update.
4, nomography model disposes function: whether audit function parameter is nomography model file path;If so, will figure It is the server that figure calculates environmental serving function that algorithm model file path, which is sent to function type, so that the server will be described The corresponding model file in nomography model file path, is deployed in figure training environment, and generates corresponding model service address; Corresponding diagram data functional response information is requested using model service address as diagram data function.
Such as: diagram data function services address, code key, Function Identification TrainID and figure are added in OpenAPI client After algorithm model file path, diagram data service platform first carries out the authentication of code key by reading database, the authentication is passed it Afterwards, by the corresponding user information of code key in reading database and the corresponding user information of TrainID, two user informations are consistent When, it determines that the user has the permission of nomography model deployment function, further, the server of environmental serving function is calculated by figure Model service address is returned to OpenAPI client.
5, nomography model uses function: whether audit function parameter is mode input information;If so, by mode input It is the server that figure calculates environmental serving function that information, which is sent to function type, so that the server is believed based on the mode input Breath carries out on-time model prediction using corresponding model, obtains model prediction result;Using model prediction result as diagram data function It can request that corresponding diagram data functional response information.
Such as: diagram data function services address, code key, Function Identification ModelID and mould are added in OpenAPI client Type inputs after information, and diagram data service platform first carries out the authentication of code key by reading database, after the authentication is passed, passes through The corresponding user information of code key and the corresponding user information of TrainID in reading database when two user informations are consistent, determine The user has the permission of nomography model deployment function, further, is given by the server that figure calculates environmental serving function OpenAPI client returns to model prediction result.
The deployment of above-mentioned nomography model can will be trained with using function after user is trained diagram data Effect is directly connected in specific application scenarios.
The response method of diagram data function based on above-mentioned diagram data service equipment side, the embodiment of the present application also provide one kind The response method of diagram data function, this method are applied to OpenAPI client device, wherein OpenAPI client device and figure Data service unit connection, diagram data service equipment are connect with diagram data function services equipment, diagram data function services equipment packet At least one is included for realizing the server of diagram data function, above-mentioned diagram data service equipment can be diagram data service platform, Diagram data server or OpenAPI server etc..It is shown in Figure 4, method includes the following steps:
Step S402, response are directed to the diagram data function trigger action of OpenAPI client.
When it is implemented, user can carry out registering and logging on diagram data service platform first, after logining successfully, The OpenAPI client and code key of the offer of diagram data service platform can be provided.As shown in figure 5, providing OpenAPI visitor in figure Family end, code key, Demo schematic diagram.OpenAPI client has used python as programming language, so OpenAPI client Using whl file, other language also may be used at end;Code key can be automatically generated according to the user currently logged in, and same user only gives birth to Cheng Yici code key, subsequent login do not regenerate new code key, can be multiplexed the code key of first time;How user shown in Demo makes With client, how to connect server-side carry out using.
When user's mode according to shown in Demo, by diagram data function services address, code key or Function Identification, function After parameter etc. is added to OpenAPI client, diagram data function trigger action just also has been carried out to OpenAPI client.In figure Illustrate only three kinds of diagram data functions: version querying, diagram data inquiry and data routine mission.
Step S404 sends the corresponding diagram data function request of diagram data function trigger action to diagram data service equipment; Wherein, code key and diagram data function services address are carried in the request of diagram data function.
OpenAPI client device is after responding the diagram data function trigger action for OpenAPI client, based on upper The volume of data added in OpenAPI client is stated, the corresponding diagram data function of diagram data function trigger action is generated and asks It asks, and diagram data function request is sent to diagram data service equipment.
Step S406 receives the diagram data functional response information that diagram data service equipment returns, wherein diagram data function is rung Answering information is after diagram data service equipment authenticates successfully according to the request of secret key pair diagram data function, by diagram data function services address Corresponding server is determined as destination server, and triggers what destination server responded the request of diagram data function.
Diagram data service equipment is authenticated, and authenticating successfully after receiving the request of diagram data function by code key Afterwards, destination server is found by diagram data function services address, is requested with further triggering destination server to above-mentioned function Response, obtain final response results.
The present embodiment includes the technical characteristic in a upper embodiment, accordingly it is also possible to realize above-mentioned function and effect, specifically Realization process referring to the embodiment of the method for above-mentioned diagram data service equipment side, details are not described herein.
Based on above method embodiment, the embodiment of the present application also provides a kind of response system of diagram data function, referring to Fig. 6 Shown, which includes: OpenAPI client device 602, diagram data service equipment 604 and diagram data function services equipment 606;Wherein, diagram data service equipment 604 connects with OpenAPI client device 602 and diagram data function services equipment 606 respectively It connects;Diagram data function services equipment 606 includes at least one server for realizing diagram data function;Diagram data service equipment The step of response method of the 604 diagram data functions of being used to execute above-mentioned diagram data service equipment side;OpenAPI client device The step of response method of the 602 diagram data functions of being used to execute above-mentioned OpenAPI client device side.
The embodiment of the present application also provides a kind of electronic equipment, as shown in fig. 7, be the structural schematic diagram of the electronic equipment, Wherein, which includes processor 71 and memory 70, which is stored with and can be executed by the processor 71 Computer executable instructions, the processor 71 execute the computer executable instructions to realize the responder of above-mentioned diagram data function Method.
In the embodiment shown in Fig. 7, which further includes bus 72 and communication interface 73, wherein processor 71, communication interface 73 and memory 70 are connected by bus 72.
Wherein, memory 70 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 73 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..Bus 72 can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus 72 can be divided into address bus, data/address bus, control Bus etc..Only to be indicated with a four-headed arrow in Fig. 7, it is not intended that an only bus or a seed type convenient for indicating Bus.
Processor 71 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 71 or the instruction of software form.Above-mentioned Processor 71 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processor, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.General processor can be microprocessor or should Processor is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present application, can direct body Now executes completion for hardware decoding processor, or in decoding processor hardware and software module combine and execute completion.It is soft Part module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically erasable programmable are deposited In the storage medium of this fields such as reservoir, register maturation.The storage medium is located at memory, and processor 71 is read in memory Information, in conjunction with its hardware complete previous embodiment diagram data function response method the step of.
The embodiment of the present application also provides a kind of computer readable storage medium, which has Computer executable instructions, the computer executable instructions are when being called and being executed by processor, the computer executable instructions Processor is promoted to realize the response method of above-mentioned diagram data function, specific implementation can be found in preceding method embodiment, herein no longer It repeats.
The response method of diagram data function, the response system of diagram data function provided by the embodiment of the present application and electronics are set Standby computer program product, the computer readable storage medium including storing program code, what said program code included Instruction can be used for executing the response method of previous methods diagram data function as described in the examples, and it is real that specific implementation can be found in method Example is applied, details are not described herein.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table It is not limited the scope of the application up to formula and numerical value.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
In the description of the present application, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for describe the application and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore should not be understood as the limitation to the application.In addition, term " first ", " second ", " third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application Within the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (14)

1. a kind of response method of diagram data function, this method is applied to diagram data service equipment, which is characterized in that the figure number It is connect respectively with OpenAPI client device, diagram data function services equipment according to service equipment, the diagram data function services are set Standby includes at least one server for realizing diagram data function, which comprises
Receive the diagram data function request that the OpenAPI client device is sent;Wherein, it is taken in the diagram data function request With code key and diagram data function services address;
It is authenticated based on the request of diagram data function described in the secret key pair;
After authenticating successfully, the corresponding server in diagram data function services address is determined as destination server, triggers institute It states destination server to respond diagram data function request, obtains the diagram data function and request corresponding diagram data function It can response message;
The diagram data functional response information is returned into the OpenAPI client device.
2. the method according to claim 1, wherein being carried out based on the request of diagram data function described in the secret key pair The step of authentication, comprising:
Judge that the code key whether there is in preset database;
If it does, authenticating successfully;
If it does not, sending the prompt information that code key is not present to the OpenAPI client device.
3. the method according to claim 1, wherein by the corresponding server in diagram data function services address The step of being determined as destination server, comprising:
Diagram data function services address is parsed, the diagram data function is obtained and requests corresponding function field and function It can mark;
Server corresponding with the function field and the Function Identification, the clothes that will be found out are looked up from the preset database Device be engaged in as the destination server.
4. according to the method described in claim 3, it is characterized in that, be looked up from the preset database with the function field and The step of Function Identification corresponding server, comprising:
It is figure storage environment clothes from function type if the diagram data function requests corresponding Function Identification for diagram data mark The function field and the corresponding server of the Function Identification are searched in the server for function of being engaged in;
If it is that figure training environment identifies or model deployment identifies that the diagram data function, which requests corresponding Function Identification, from function Energy type is to search the function field and the corresponding service of the Function Identification in the server for scheme calculating environmental serving function Device.
5. according to the method described in claim 3, it is characterized in that, being looked up from the preset database and the function field Before the step of server corresponding with the Function Identification, the method also includes:
Detect function that the function field indicates whether be diagram data inquiry, data routine mission, nomography model dispose or One in nomography model use;
If so, judging whether the user for initiating the diagram data function request has according to the Function Identification and the code key Diagram data feature operation permission;
If so, service corresponding with the function field and the Function Identification is looked up from the preset database described in executing The step of device.
6. according to the method described in claim 5, it is characterized in that, judging to initiate according to the Function Identification and the code key Whether the user of the diagram data function request has the step of diagram data feature operation permission, comprising:
Read corresponding first user information of the code key from preset database, and to read the Function Identification corresponding Second user information;
Judge whether first user information and the second user information are consistent;
If consistent, determine that the user for initiating the diagram data function request has diagram data feature operation permission.
7. the method according to claim 1, wherein also carrying functional ginseng in diagram data function request Number;
Trigger the step of destination server responds diagram data function request, comprising:
Functional parameter in diagram data function request is sent to the destination server, so that the destination server root According to the functional parameter, determine that the diagram data function requests corresponding diagram data functional response information;
Receive the diagram data functional response information that the destination server returns.
8. the method according to the description of claim 7 is characterized in that the functional parameter in diagram data function request is sent To the destination server, so that the destination server determines the diagram data function request according to the functional parameter The step of corresponding diagram data functional response information, comprising:
Check whether the functional parameter is query statement;
If so, the query statement is sent to the destination server, so that destination server lookup is looked into described Ask the corresponding diagram data query result of sentence;
Corresponding diagram data functional response information is requested using the diagram data query result as the diagram data function.
9. the method according to the description of claim 7 is characterized in that the functional parameter in diagram data function request is sent To the destination server, so that the destination server determines the diagram data function request according to the functional parameter The step of corresponding diagram data functional response information, comprising:
Check whether the functional parameter only includes Function Identification;
If so, the Function Identification is sent to the destination server, so that the destination server is searched and the function Corresponding version querying result can be identified;
Corresponding diagram data functional response information is requested using the version querying result as the diagram data function.
10. according to the method described in claim 4, it is characterized in that, the server includes at least: function type is figure storage The server and function type of environmental serving function are the server that figure calculates environmental serving function;
If the function that the function field indicates is version querying, diagram data inquiry or data routine mission, the function The corresponding destination server of field is the server of figure storage environment service function;
If the function that the function field indicates is that nomography model is disposed or nomography model uses, the function field pair The destination server answered is the server that figure calculates environmental serving function.
11. a kind of response method of diagram data function, this method is applied to OpenAPI client device, which is characterized in that described OpenAPI client device is connect with the diagram data service equipment, the diagram data service equipment and diagram data function services Equipment connection, the diagram data function services equipment includes at least one server for realizing diagram data function, the side Method includes:
Response is directed to the diagram data function trigger action of OpenAPI client;
The corresponding diagram data function request of the diagram data function trigger action is sent to the diagram data service equipment;Wherein, Code key and diagram data function services address are carried in the diagram data function request;
Receive the diagram data functional response information that the diagram data service equipment returns, wherein the diagram data functional response letter Breath is after the request of diagram data service equipment diagram data function according to the secret key pair authenticates successfully, by the diagram data The corresponding server in function services address is determined as destination server, and triggers the destination server to the diagram data function What request was responded.
12. a kind of response system of diagram data function, which is characterized in that the system comprises: OpenAPI client device, figure Data service unit and diagram data function services equipment;
Wherein, the diagram data service equipment connects with the OpenAPI client device and diagram data function services equipment respectively It connects;The diagram data function services equipment includes at least one server for realizing diagram data function;
The diagram data service equipment is used for the response method of the perform claim requirement described in any item diagram data functions of 1-10 Step;
The OpenAPI client device is used for the step of response method of diagram data function described in perform claim requirement 11.
13. a kind of electronic equipment, which is characterized in that including processor and memory, the memory is stored with can be described The computer executable instructions that processor executes, the processor execute the computer executable instructions to realize claim Method described in 1 to 10 any one or claim 11.
14. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer can It executes instruction, when being called and being executed by processor, computer executable instructions promote to handle the computer executable instructions Device realizes method described in any one of claims 1 to 10 or claim 11.
CN201910780762.0A 2019-08-22 2019-08-22 Response method and system of graph data function and electronic equipment Active CN110489986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910780762.0A CN110489986B (en) 2019-08-22 2019-08-22 Response method and system of graph data function and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910780762.0A CN110489986B (en) 2019-08-22 2019-08-22 Response method and system of graph data function and electronic equipment

Publications (2)

Publication Number Publication Date
CN110489986A true CN110489986A (en) 2019-11-22
CN110489986B CN110489986B (en) 2021-03-23

Family

ID=68553020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910780762.0A Active CN110489986B (en) 2019-08-22 2019-08-22 Response method and system of graph data function and electronic equipment

Country Status (1)

Country Link
CN (1) CN110489986B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078751A (en) * 2011-12-13 2013-05-01 上海寰创通信科技股份有限公司 High-efficiency memory management method, query method and batch loading method for network management system
CN105760447A (en) * 2016-02-03 2016-07-13 网易(杭州)网络有限公司 Mind map processing method, server and client side
WO2017048303A1 (en) * 2015-09-18 2017-03-23 Linkedin Corporation Graph-based queries
CN107358118A (en) * 2017-07-03 2017-11-17 中兴通讯股份有限公司 SFS access control methods and system, SFS and terminal device
CN108052834A (en) * 2017-12-11 2018-05-18 东北大学 A kind of approximate beeline querying method towards close state graph structure
CN109670089A (en) * 2018-12-29 2019-04-23 颖投信息科技(上海)有限公司 Knowledge mapping system and its figure server
CN110083455A (en) * 2019-05-07 2019-08-02 网易(杭州)网络有限公司 Figure computation processing method, device, medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078751A (en) * 2011-12-13 2013-05-01 上海寰创通信科技股份有限公司 High-efficiency memory management method, query method and batch loading method for network management system
WO2017048303A1 (en) * 2015-09-18 2017-03-23 Linkedin Corporation Graph-based queries
CN105760447A (en) * 2016-02-03 2016-07-13 网易(杭州)网络有限公司 Mind map processing method, server and client side
CN107358118A (en) * 2017-07-03 2017-11-17 中兴通讯股份有限公司 SFS access control methods and system, SFS and terminal device
CN108052834A (en) * 2017-12-11 2018-05-18 东北大学 A kind of approximate beeline querying method towards close state graph structure
CN109670089A (en) * 2018-12-29 2019-04-23 颖投信息科技(上海)有限公司 Knowledge mapping system and its figure server
CN110083455A (en) * 2019-05-07 2019-08-02 网易(杭州)网络有限公司 Figure computation processing method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN110489986B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN109997114B (en) Service layer resource management for universal interworking and extensibility
CN103607385B (en) Method and apparatus for security detection based on browser
JP4785933B2 (en) RFID tag for RFID service based on IP address and RFID service method based on IP address using the same
CN107147647B (en) Webpage authorization method and device
US20220294797A1 (en) Website verification platform
US10477598B2 (en) Methods and apparatus for registering network identifiers and/or taking different actions based on the type of network identifier being registered or reported
EP3399435A1 (en) Method and device for processing short link, and short link server
CN110598280A (en) Equipment simulation system and method and computer readable storage medium
US20130305327A1 (en) Method and apparatus to assist user input based on a mobile terminal browser
KR102517843B1 (en) Chatbot system based on artificial intelligence markup language and method for proding chatbot service
CN103618794A (en) Automatic login method, terminal and server
CN111104677B (en) Vulnerability patch detection method and device based on CPE specification
CN107766393B (en) Information processing method based on database, client and server
CN104640174B (en) Wireless network access point reminding method and device
CN109960521B (en) Application program upgrading method and device, electronic equipment and storage medium
CN108494762A (en) Web access method, device and computer readable storage medium, terminal
CN108829838A (en) A kind of account information batch processing method and server
CN104580237A (en) Method for logging into website, server used in method for logging into website, client terminal used in method for logging into website and peripheral used in method for logging into website
CN105022939A (en) Information verification method and device
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN106209918A (en) The method of a kind of internet security management and terminal
KR101069744B1 (en) Method for Managementing of Application and System thereof
CN101431755B (en) System and method for implementing user login
CN110489986A (en) Response method, system and the electronic equipment of diagram data function
CN105009122A (en) System and method to allow a domain name server to process a natural language query and determine context

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