OLD | NEW |
1 library googleapis.freebase.v1; | 1 library googleapis.freebase.v1; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
11 import '../common/common.dart' as common; | 11 import '../common/common.dart' as common; |
12 | 12 |
13 export '../common/common.dart' show ApiRequestError; | 13 export '../common/common.dart' show ApiRequestError; |
14 export '../common/common.dart' show DetailedApiRequestError; | 14 export '../common/common.dart' show DetailedApiRequestError; |
15 | 15 |
16 /** Find Freebase entities using textual queries and other constraints. */ | 16 /** Find Freebase entities using textual queries and other constraints. */ |
17 class FreebaseApi { | 17 class FreebaseApi { |
18 | 18 |
19 final common_internal.ApiRequester _requester; | 19 final common_internal.ApiRequester _requester; |
20 | 20 |
21 FreebaseApi(http.Client client) : | 21 FreebaseApi(http.Client client) : |
22 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/freebase/v1/"); | 22 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "freebase/v1/"); |
23 | 23 |
24 /** | 24 /** |
25 * Reconcile entities to Freebase open data. | 25 * Reconcile entities to Freebase open data. |
26 * | 26 * |
27 * Request parameters: | 27 * Request parameters: |
28 * | 28 * |
29 * [confidence] - Required confidence for a candidate to match. Must be | 29 * [confidence] - Required confidence for a candidate to match. Must be |
30 * between .5 and 1.0 | 30 * between .5 and 1.0 |
31 * Value must be between "0.0" and "1.0". | 31 * Value must be between "0.0" and "1.0". |
32 * | 32 * |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 _json["match"] = (match).toJson(); | 515 _json["match"] = (match).toJson(); |
516 } | 516 } |
517 if (warning != null) { | 517 if (warning != null) { |
518 _json["warning"] = warning.map((value) => (value).toJson()).toList(); | 518 _json["warning"] = warning.map((value) => (value).toJson()).toList(); |
519 } | 519 } |
520 return _json; | 520 return _json; |
521 } | 521 } |
522 } | 522 } |
523 | 523 |
524 | 524 |
OLD | NEW |