public class FreebaseSearch extends Object
| Constructor and Description |
|---|
FreebaseSearch() |
FreebaseSearch(String cacheLocation) |
FreebaseSearch(String cacheLocation,
String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<FreebaseAnswer> |
lookup(String query) |
List<String> |
lookupRdf(String query)
Query Freebase by ID
|
static void |
main(String[] args) |
String[] |
query(String q) |
public FreebaseSearch()
public FreebaseSearch(String cacheLocation)
public List<FreebaseAnswer> lookup(String query) throws Exception
Exceptionpublic List<String> lookupRdf(String query)
query: - in the form of m/09c7w0Exceptionpublic String[] query(String q) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.