Start Reconciliation API with guess_types_of_column

This commit is contained in:
Paul Makepeace 2011-06-08 17:05:55 +00:00
parent fce48f1e4c
commit cfd7b9ac99
1 changed files with 16 additions and 1 deletions

View File

@ -489,3 +489,18 @@ class RefineProject:
self.get_models() self.get_models()
return response return response
# Reconciliation
# http://code.google.com/p/google-refine/wiki/ReconciliationServiceApi
def guess_types_of_column(self, column, service):
"""Query the reconciliation service for what it thinks this column is.
service -- reconciliation endpoint URL
Returns [
{"id":"/artfinder/artist","name":"Artist","score":10.2,"count":18},
...
]
"""
response = self.do_json('guess-types-of-column', {
'columnName': column, 'service': service})
return response['types']