I cant understand this API. I have downloaded (maven) google-api-services-freebase and to test I have tried to do this code:
JsonHttpRequestInitializer initializer =
new GoogleKeyInitializer("MY KEY");
HttpTransport httpTransport = new NetHttpTransport();
JsonFactory jsonFactory = new JacksonFactory();
Freebase freebase =
Freebase.builder(httpTransport,
jsonFactory).setJsonHttpRequestInitializer(initializer).build();
Now i want to do this:
https://www.googleapis.com/freebase/v1/search?query=cardiff&lang=en&type=university
And next, I want to parse the json output.
Please, where is the method to this in freebase object?. I see freebase.mqlread and freebase.text but i cant find any method similar for API SEARCH (http://wiki.freebase.com/wiki/ApiSearch).
Unfortunately, the Java API Client doesn’t support Freebase Search yet. Here’s how to do a search using Apache HttpClient instead.
This code also uses the json-simple and json-path libraries.