~ubuntu-branches/ubuntu/vivid/juju-core/vivid-proposed

« back to all changes in this revision

Viewing changes to src/google.golang.org/api/freebase/v1/freebase-api.json

  • Committer: Package Import Robot
  • Author(s): Curtis C. Hovey
  • Date: 2015-09-29 19:43:29 UTC
  • mfrom: (47.1.4 wily-proposed)
  • Revision ID: package-import@ubuntu.com-20150929194329-9y496tbic30hc7vp
Tags: 1.24.6-0ubuntu1~15.04.1
Backport of 1.24.6 from wily. (LP: #1500916, #1497087)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
 "kind": "discovery#restDescription",
 
3
 "etag": "\"FrPV2U6xXFUq8eRv_PO3IoAURkc/kTDiVESNLycoqIbveRofH5KPD08\"",
 
4
 "discoveryVersion": "v1",
 
5
 "id": "freebase:v1",
 
6
 "name": "freebase",
 
7
 "version": "v1",
 
8
 "revision": "20140418",
 
9
 "title": "Freebase Search",
 
10
 "description": "Find Freebase entities using textual queries and other constraints.",
 
11
 "ownerDomain": "google.com",
 
12
 "ownerName": "Google",
 
13
 "icons": {
 
14
  "x16": "http://www.google.com/images/icons/product/freebase-16.png",
 
15
  "x32": "http://www.google.com/images/icons/product/freebase-32.png"
 
16
 },
 
17
 "documentationLink": "https://developers.google.com/freebase/",
 
18
 "protocol": "rest",
 
19
 "baseUrl": "https://www.googleapis.com/freebase/v1/",
 
20
 "basePath": "/freebase/v1/",
 
21
 "rootUrl": "https://www.googleapis.com/",
 
22
 "servicePath": "freebase/v1/",
 
23
 "batchPath": "batch",
 
24
 "parameters": {
 
25
  "alt": {
 
26
   "type": "string",
 
27
   "description": "Data format for the response.",
 
28
   "default": "json",
 
29
   "enum": [
 
30
    "json"
 
31
   ],
 
32
   "enumDescriptions": [
 
33
    "Responses with Content-Type of application/json"
 
34
   ],
 
35
   "location": "query"
 
36
  },
 
37
  "fields": {
 
38
   "type": "string",
 
39
   "description": "Selector specifying which fields to include in a partial response.",
 
40
   "location": "query"
 
41
  },
 
42
  "key": {
 
43
   "type": "string",
 
44
   "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
 
45
   "location": "query"
 
46
  },
 
47
  "oauth_token": {
 
48
   "type": "string",
 
49
   "description": "OAuth 2.0 token for the current user.",
 
50
   "location": "query"
 
51
  },
 
52
  "prettyPrint": {
 
53
   "type": "boolean",
 
54
   "description": "Returns response with indentations and line breaks.",
 
55
   "default": "true",
 
56
   "location": "query"
 
57
  },
 
58
  "quotaUser": {
 
59
   "type": "string",
 
60
   "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
 
61
   "location": "query"
 
62
  },
 
63
  "userIp": {
 
64
   "type": "string",
 
65
   "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
 
66
   "location": "query"
 
67
  }
 
68
 },
 
69
 "schemas": {
 
70
  "ReconcileCandidate": {
 
71
   "id": "ReconcileCandidate",
 
72
   "type": "object",
 
73
   "properties": {
 
74
    "confidence": {
 
75
     "type": "number",
 
76
     "description": "Percentage likelihood that this candidate is the unique matching entity. Value will be between 0.0 and 1.0",
 
77
     "format": "float"
 
78
    },
 
79
    "lang": {
 
80
     "type": "string",
 
81
     "description": "Language code that candidate and notable names are displayed in."
 
82
    },
 
83
    "mid": {
 
84
     "type": "string",
 
85
     "description": "Freebase MID of candidate entity."
 
86
    },
 
87
    "name": {
 
88
     "type": "string",
 
89
     "description": "Freebase name of matching entity in specified language."
 
90
    },
 
91
    "notable": {
 
92
     "type": "object",
 
93
     "description": "Type or profession the candidate is notable for.",
 
94
     "properties": {
 
95
      "id": {
 
96
       "type": "string",
 
97
       "description": "MID of notable category."
 
98
      },
 
99
      "name": {
 
100
       "type": "string",
 
101
       "description": "Name of notable category in specified language."
 
102
      }
 
103
     }
 
104
    }
 
105
   }
 
106
  },
 
107
  "ReconcileGet": {
 
108
   "id": "ReconcileGet",
 
109
   "type": "object",
 
110
   "properties": {
 
111
    "candidate": {
 
112
     "type": "array",
 
113
     "description": "If filled, then the listed candidates are potential matches, and such should be evaluated by a more discerning algorithm or human. The matches are ordered by confidence.",
 
114
     "items": {
 
115
      "$ref": "ReconcileCandidate"
 
116
     }
 
117
    },
 
118
    "costs": {
 
119
     "type": "object",
 
120
     "description": "Server costs for reconciling.",
 
121
     "properties": {
 
122
      "hits": {
 
123
       "type": "integer",
 
124
       "description": "Total number of hits found.",
 
125
       "format": "int32"
 
126
      },
 
127
      "ms": {
 
128
       "type": "integer",
 
129
       "description": "Total milliseconds spent.",
 
130
       "format": "int32"
 
131
      }
 
132
     }
 
133
    },
 
134
    "match": {
 
135
     "$ref": "ReconcileCandidate",
 
136
     "description": "If filled, this entity is guaranteed to match at requested confidence probability (default 99%)."
 
137
    },
 
138
    "warning": {
 
139
     "type": "array",
 
140
     "description": "If filled, then there were recoverable problems that affected the request. For example, some of the properties were ignored because they either are not valid Freebase predicates or are not indexed for reconciliation. The candidates returned should be considered valid results, with the caveat that sections of the request were ignored as specified by the warning text.",
 
141
     "items": {
 
142
      "type": "object",
 
143
      "properties": {
 
144
       "location": {
 
145
        "type": "string",
 
146
        "description": "Location of warning in the request e.g. invalid predicate."
 
147
       },
 
148
       "message": {
 
149
        "type": "string",
 
150
        "description": "Warning message to display to the user."
 
151
       },
 
152
       "reason": {
 
153
        "type": "string",
 
154
        "description": "Code for identifying classes of warnings."
 
155
       }
 
156
      }
 
157
     }
 
158
    }
 
159
   }
 
160
  }
 
161
 },
 
162
 "methods": {
 
163
  "reconcile": {
 
164
   "id": "freebase.reconcile",
 
165
   "path": "reconcile",
 
166
   "httpMethod": "GET",
 
167
   "description": "Reconcile entities to Freebase open data.",
 
168
   "parameters": {
 
169
    "confidence": {
 
170
     "type": "number",
 
171
     "description": "Required confidence for a candidate to match. Must be between .5 and 1.0",
 
172
     "default": "0.99",
 
173
     "format": "float",
 
174
     "minimum": "0.0",
 
175
     "maximum": "1.0",
 
176
     "location": "query"
 
177
    },
 
178
    "kind": {
 
179
     "type": "string",
 
180
     "description": "Classifications of entity e.g. type, category, title.",
 
181
     "repeated": true,
 
182
     "location": "query"
 
183
    },
 
184
    "lang": {
 
185
     "type": "string",
 
186
     "description": "Languages for names and values. First language is used for display. Default is 'en'.",
 
187
     "repeated": true,
 
188
     "location": "query"
 
189
    },
 
190
    "limit": {
 
191
     "type": "integer",
 
192
     "description": "Maximum number of candidates to return.",
 
193
     "default": "3",
 
194
     "format": "int32",
 
195
     "minimum": "0",
 
196
     "maximum": "25",
 
197
     "location": "query"
 
198
    },
 
199
    "name": {
 
200
     "type": "string",
 
201
     "description": "Name of entity.",
 
202
     "location": "query"
 
203
    },
 
204
    "prop": {
 
205
     "type": "string",
 
206
     "description": "Property values for entity formatted as\n:",
 
207
     "repeated": true,
 
208
     "location": "query"
 
209
    }
 
210
   },
 
211
   "response": {
 
212
    "$ref": "ReconcileGet"
 
213
   }
 
214
  },
 
215
  "search": {
 
216
   "id": "freebase.search",
 
217
   "path": "search",
 
218
   "httpMethod": "GET",
 
219
   "description": "Search Freebase open data.",
 
220
   "parameters": {
 
221
    "as_of_time": {
 
222
     "type": "string",
 
223
     "description": "A mql as_of_time value to use with mql_output queries.",
 
224
     "location": "query"
 
225
    },
 
226
    "callback": {
 
227
     "type": "string",
 
228
     "description": "JS method name for JSONP callbacks.",
 
229
     "pattern": "([A-Za-z0-9_$.]|\\[|\\])+",
 
230
     "location": "query"
 
231
    },
 
232
    "cursor": {
 
233
     "type": "integer",
 
234
     "description": "The cursor value to use for the next page of results.",
 
235
     "format": "int32",
 
236
     "location": "query"
 
237
    },
 
238
    "domain": {
 
239
     "type": "string",
 
240
     "description": "Restrict to topics with this Freebase domain id.",
 
241
     "repeated": true,
 
242
     "location": "query"
 
243
    },
 
244
    "encode": {
 
245
     "type": "string",
 
246
     "description": "The encoding of the response. You can use this parameter to enable html encoding.",
 
247
     "default": "off",
 
248
     "enum": [
 
249
      "html",
 
250
      "off"
 
251
     ],
 
252
     "enumDescriptions": [
 
253
      "Encode certain characters in the response (such as tags and ambersands) using html encoding.",
 
254
      "No encoding of the response. You should not print the results directly on an web page without html-escaping the content first."
 
255
     ],
 
256
     "location": "query"
 
257
    },
 
258
    "exact": {
 
259
     "type": "boolean",
 
260
     "description": "Query on exact name and keys only.",
 
261
     "location": "query"
 
262
    },
 
263
    "filter": {
 
264
     "type": "string",
 
265
     "description": "A filter to apply to the query.",
 
266
     "pattern": "^\\(.*\\)$",
 
267
     "repeated": true,
 
268
     "location": "query"
 
269
    },
 
270
    "format": {
 
271
     "type": "string",
 
272
     "description": "Structural format of the json response.",
 
273
     "default": "entity",
 
274
     "enum": [
 
275
      "ac",
 
276
      "classic",
 
277
      "entity",
 
278
      "guids",
 
279
      "ids",
 
280
      "mids"
 
281
     ],
 
282
     "enumDescriptions": [
 
283
      "Compact format useful for autocomplete/suggest UIs.",
 
284
      "[DEPRECATED] Same format as was returned by api.freebase.com.",
 
285
      "Basic information about the entities.",
 
286
      "[DEPRECATED] Ordered list of a freebase guids.",
 
287
      "Ordered list of freebase ids.",
 
288
      "Ordered list of freebase mids."
 
289
     ],
 
290
     "location": "query"
 
291
    },
 
292
    "help": {
 
293
     "type": "string",
 
294
     "description": "The keyword to request help on.",
 
295
     "enum": [
 
296
      "langs",
 
297
      "mappings",
 
298
      "predicates"
 
299
     ],
 
300
     "enumDescriptions": [
 
301
      "The language codes served by the service.",
 
302
      "The property/path mappings supported by the filter and output request parameters.",
 
303
      "The predicates and path-terminating properties supported by the filter and output request parameters."
 
304
     ],
 
305
     "location": "query"
 
306
    },
 
307
    "indent": {
 
308
     "type": "boolean",
 
309
     "description": "Whether to indent the json results or not.",
 
310
     "location": "query"
 
311
    },
 
312
    "lang": {
 
313
     "type": "string",
 
314
     "description": "The code of the language to run the query with. Default is 'en'.",
 
315
     "repeated": true,
 
316
     "location": "query"
 
317
    },
 
318
    "limit": {
 
319
     "type": "integer",
 
320
     "description": "Maximum number of results to return.",
 
321
     "default": "20",
 
322
     "format": "int32",
 
323
     "location": "query"
 
324
    },
 
325
    "mid": {
 
326
     "type": "string",
 
327
     "description": "A mid to use instead of a query.",
 
328
     "pattern": "^/[mgtx]/[0-2][0-9bcdfghjklmnpqrstvwxyz_]{1,24}$",
 
329
     "repeated": true,
 
330
     "location": "query"
 
331
    },
 
332
    "mql_output": {
 
333
     "type": "string",
 
334
     "description": "The MQL query to run againist the results to extract more data.",
 
335
     "location": "query"
 
336
    },
 
337
    "output": {
 
338
     "type": "string",
 
339
     "description": "An output expression to request data from matches.",
 
340
     "pattern": "^\\(.*\\)$",
 
341
     "location": "query"
 
342
    },
 
343
    "prefixed": {
 
344
     "type": "boolean",
 
345
     "description": "Prefix match against names and aliases.",
 
346
     "location": "query"
 
347
    },
 
348
    "query": {
 
349
     "type": "string",
 
350
     "description": "Query term to search for.",
 
351
     "location": "query"
 
352
    },
 
353
    "scoring": {
 
354
     "type": "string",
 
355
     "description": "Relevance scoring algorithm to use.",
 
356
     "default": "entity",
 
357
     "enum": [
 
358
      "entity",
 
359
      "freebase",
 
360
      "schema"
 
361
     ],
 
362
     "enumDescriptions": [
 
363
      "Use freebase and popularity entity ranking.",
 
364
      "Use freebase entity ranking.",
 
365
      "Use schema ranking for properties and types."
 
366
     ],
 
367
     "location": "query"
 
368
    },
 
369
    "spell": {
 
370
     "type": "string",
 
371
     "description": "Request 'did you mean' suggestions",
 
372
     "default": "no_spelling",
 
373
     "enum": [
 
374
      "always",
 
375
      "no_results",
 
376
      "no_spelling"
 
377
     ],
 
378
     "enumDescriptions": [
 
379
      "Request spelling suggestions for any query at least three characters long.",
 
380
      "Request spelling suggestions if no results were found.",
 
381
      "Don't request spelling suggestions."
 
382
     ],
 
383
     "location": "query"
 
384
    },
 
385
    "stemmed": {
 
386
     "type": "boolean",
 
387
     "description": "Query on stemmed names and aliases. May not be used with prefixed.",
 
388
     "location": "query"
 
389
    },
 
390
    "type": {
 
391
     "type": "string",
 
392
     "description": "Restrict to topics with this Freebase type id.",
 
393
     "repeated": true,
 
394
     "location": "query"
 
395
    },
 
396
    "with": {
 
397
     "type": "string",
 
398
     "description": "A rule to match against.",
 
399
     "repeated": true,
 
400
     "location": "query"
 
401
    },
 
402
    "without": {
 
403
     "type": "string",
 
404
     "description": "A rule to not match against.",
 
405
     "repeated": true,
 
406
     "location": "query"
 
407
    }
 
408
   },
 
409
   "supportsMediaDownload": true
 
410
  }
 
411
 }
 
412
}