Translating graph queries into efficient network protocol requests
Abstract
In an embodiment, a method comprises creating and storing a parameter mapping that maps a plurality of resources to a plurality of HTTP URL parameters; receiving, at a client computer, a query comprising a request to access one or more resources of the plurality of resources; using the parameter mapping, determining one or more HTTP URL parameters of the plurality of HTTP URL parameters that are mapped to the one or more resources of the plurality of resources specified in the query; generating a HTTP URL by combining the one or more HTTP URL parameters; submitting a request to a server computer based on the HTTP URL that causes the server computer to retrieve the one or more resources of the plurality of resources.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A computer-implemented method comprising:
creating and storing a parameter mapping that maps a plurality of resource parameters to a plurality of hypertext transfer protocol (HTTP) uniform resource locator (URL) parameters;
receiving, at a client computer, a query based on a schema supported by a graph query language processing system and comprising a request to access one or more resources, each resource of the one or more resources associated with a respective resource parameter of the plurality of resource parameters;
identifying, from the query, each respective resource parameter that is associated with the one or more resources;
for each respective resource parameter identified, using the parameter mapping to determine each HTTP URL parameter from the plurality of HTTP URL parameters that is associated with the one or more resources specified in the query;
generating a single HTTP URL by combining each HTTP URL parameter determined for each respective resource parameter; and
transmitting a representational state transfer (REST) application programming interface (API) request based on the single HTTP URL, causing retrieval of the one or more resources from a server computer.
2. The method of claim 1 , wherein the query is formatted according to a GRAPHQL data query language.
3. The method of claim 2 , wherein
the schema is defined by a schema definition language (SDL).
4. The method of claim 1 , wherein the schema indicates querying operations and mutating operations supported by the graph query language processing system.
5. The method of claim 1 , wherein the one or more resources includes one or more nested resources.
6. The method of claim 5 , wherein a nested resource of the one or more nested resources comprises a resource that is logically a child of another resource of the one or more resources.
7. The method of claim 1 , wherein combining each HTTP URL parameter comprises concatenating each HTTP URL parameter into the single HTTP URL.
8. The method of claim 1 , wherein the single HTTP URL defines an entry point to a REST API of the server computer.
9. The method of claim 1 , wherein the server computer is responsive to requests to a REST API of the server computer.
10. The method of claim 1 , further comprising receiving, at the client computer and from the server computer, a response that includes the one or more resources.
11. A computer system comprising:
one or more processors; and
one or more memories storing instructions which, when executed by the one or more processors, cause the one or more processors to perform:
creating and storing a parameter mapping that maps a plurality of resource parameters to a plurality of hypertext transfer protocol (HTTP) uniform resource locator (URL) parameters;
receiving, at a client computer, a query based on a schema supported by a graph query language processing system and comprising a request to access one or more resources, each resource of the one or more resources associated with a respective resource parameter of the plurality of resource parameters;
identifying, from the query, each respective resource parameter that is associated with the one or more resources;
for each respective resource parameter identified, using the parameter mapping to determine each HTTP URL parameter from the plurality of HTTP URL parameters that is associated with the one or more resources specified in the query;
generating a single HTTP URL by combining each HTTP URL parameter determined for each respective resource parameter; and
transmitting a representational state transfer (REST) application programming interface (API) request based on the single HTTP URL, causing retrieval of the one or more resources from a server computer.
12. The system of claim 11 , wherein the query is formatted according to a GRAPHQL data query language.
13. The system of claim 12 , wherein
the schema is defined by a schema definition language (SDL).
14. The system of claim 11 , wherein the schema indicates querying operations and mutating operations supported by the graph query language processing system.
15. The system of claim 11 , wherein the one or more resources includes one or more nested resources.
16. The system of claim 15 , wherein a nested resource of the one or more nested resources comprises a resource that is logically a child of another resource of the one or more resources.
17. The system of claim 11 , wherein combining each HTTP URL parameter comprises concatenating each HTTP URL parameter into the single HTTP URL.
18. The system of claim 11 , wherein the single HTTP URL defines an entry point to a REST API of the server computer.
19. The system of claim 11 , wherein the server computer is responsive to requests to a REST API of the server computer.
20. The system of claim 11 , further comprising receiving, at the client computer and from the server computer, a response that includes the one or more resources.Join the waitlist — get patent alerts
Track US11055282B1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.