IP Library Granted Patent US 9,015,733
Granted Patent B2
US 9,015,733 · App. 13/601,815 · Granted Apr 21, 2015

API version testing based on query schema

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,015,733
App. No.
13/601,815
Granted
Apr 21, 2015
Kind
B2
Abstract

In one embodiment, a method includes storing one or more first schemas associated with a first version of an Application Programming Interface (API), the API being used for retrieving data items stored in one or more hierarchical graphs, the first schemas comprise one or more definitions of one or more data types to which the data items belong; forming one or more second schemas associated with a second version of the API; and validating the second version of the API by comparing the second query schemas with the first query schemas.

Claims (39)

1. A computer-implemented method comprising:

storing one or more first query schemas associated with a first version of an Application Programming Interface (API), the first version of the API being used for retrieving data items stored in one or more hierarchical graphs, wherein the first query schemas comprise a first set of one or more definitions of one or more data types to which the data items belong;

forming one or more second query schemas associated with a second version of the API, wherein the second query schemas comprise a second set of the definitions; and

validating the second version of the API by comparing the second query schemas with the first query schemas to determine whether the second set of the definitions is the same as the first set of the definitions; and

in response to determining that the second set of the definitions is the same as the first set of the definitions, providing the second version of the API for use in retrieving the data items stored in the one or more hierarchical graphs.

2. The computer-implemented method of claim 1 , wherein comparing the second query schemas with the first query schemas further comprises determining whether all definitions of data types available in the first query schemas are also available in the second query schemas.

3. The computer-implemented method of claim 1 , wherein for each of one or more first data types in the first query schemas, the definition of the first-data type comprises an identifier and a description of the first data type.

4. The computer-implemented method of claim 3 , further comprising:

receiving a query for a specific first data type; and

outputting the identifier and the description of the specific first data type according to the definition of the specific first data type in the first query schemas in response to the query.

5. The computer-implemented method of claim 1 , further comprising:

in response to determining that the second set of the definitions is not the same as the first set of the definitions, identifying errors in the second version of the API.

6. One or more computer-readable non-transitory storage media embodying software that is operable when executed to:

store one or more first query schemas associated with a first version of an Application Programming Interface (API), the first version of the API being used for retrieving data items stored in one or more hierarchical graphs, wherein the first query schemas comprise a first set of one or more definitions of one or more data types to which the data items belong;

form one or more second query schemas associated with a second version of the API, wherein the second query schemas comprise a second set of the definitions; and

validate the second version of the API by comparing the second query schemas with the first query schemas to determine whether the second set of the definitions is the same as the first set of the definitions;

in response to determining that the second set of the definitions is the same as the first set of the definitions, provide the second version of the API for use in retrieving the data items stored in the one or more hierarchical graphs.

7. The media of claim 6 , wherein the software operable when executed to compare the one or more second query schemas with the one or more first query schemas further comprises software operable when executed to: determine whether all definitions of data types available in the first query schemas are also available in the second schemas.

8. The media of claim 6 , wherein for each of one or more first data types in the first query schemas, the definition of the first data type comprises an identifier and a description of the first data type.

9. The media of claim 8 , wherein the software is further operable when executed to:

receive a query for a specific first data type; and

output the identifier and the description of the specific first data type according to the definition of the specific first data type in the first query schemas in response to the query.

10. The media of claim 6 , wherein the software is further operable when executed to:

in response to determining that the second set of the definitions is not the same as the first set of the definitions, identify errors in the second version of the API.

11. A system comprising:

one or more processors; and

a memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to:

store one or more first query schemas associated with a first version of an Application Programming Interface (API), the first version of the API being used for retrieving data items stored in one or more hierarchical graphs, wherein the first query schemas comprise a first set of one or more definitions of one or more data types to which the data items belong;

form one or more second query schemas associated with a second version of the API, wherein the second query schemas comprise a second set of the definitions; and

validate the second version of the API by comparing the second query schemas with the first query schemas to determine whether the second set of the definitions is the same as the first set of the definitions; and

in response to determining that the second set of the definitions is the same as the first set of the definitions, provide the second version of the API for use in retrieving the data items stored in the one or more hierarchical graphs.

12. The system of claim 11 , wherein the processors being operable when executing the instructions to compare the second query schemas with the first query schemas further comprises the processors being operable to:

determine whether all definitions of data types available in the first query schemas are also available in the second schemas.

13. The system of claim 11 , wherein for each of one or more first data types in the first query schemas, the definition of the first data type comprises an identifier and a description of the first data type.

14. The system of claim 13 , wherein the processors are further operable when executing the instructions to:

receive a query for a specific first data type; and

output the identifier and the description of the specific first data type according to the definition of the specific first data type in the first query schemas in response to the query.

15. The system of claim 11 , wherein the processors are further operable when executing the instructions to:

in response to determining that the second set of the definitions is not the same as the first set of the definitions, identify errors in the second version of the API.

Assignments (3)
CHANGE OF NAME Recorded Nov 19, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058214/0351 →
CORRECTIVE ASSIGNMENT TO CORRECT THE CORRECT ASSIGNOR LEE WILLIAMS BYRON (PREVIOUSLY RECORDED AS LEE WILLAMS BYRON) PREVIOUSLY RECORDED ON REEL 029489 FRAME 0087. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNOR SHOULD READ: BYRON, LEE WILLIAMS. Recorded May 14, 2013
From: SCHROCK, NICHOLAS HAGE; BYRON, LEE WILLIAMS; SCHAFER, DANIEL L.
To: FACEBOOK, INC.
Reel/Frame 030416/0358 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 18, 2012
From: SCHROCK, NICHOLAS HAGE; BYRON, LEE WILLAMS; SCHAFER, DANIEL L.
To: FACEBOOK, INC.
Reel/Frame 029489/0087 →