Re: Reconciliation service for Google Refine

Here's an example which will show you what the standard service returns.

http://standard-reconcile.freebaseapps.com/reconcile?callback=foo

I'll add it to the wiki along with some clarifications about what
things are mandatory to implement.

Tom

On Tue, Feb 22, 2011 at 4:32 PM, Shawn Simister <narphorium@gmail.com> wrote:
> I took a look at the Refine code and it looks like its making a JSONP call
> when it tries to register your new recon service. However, your service
> doesn't seem to support JSONP right now. The following request:
>
> http://acm.rkbexplorer.com/crs/reconcile/?callback=abc123
>
> should return something like this:
>
> abc123({ "name" : "Netflix Reconciliation through Freebase", ... });
>
> If you get that working you should at least be able to register it in
> Refine.
>
> Shawn
>
> On 2/22/2011 4:13 PM, Hugh Glaser wrote:
>
> Yes, sorry - it wasn't working so I put the html page back.
>
> Any suggestions as to exactly what it should like.
> I assume some variation of:
> {
>   "name" : "Netflix Reconciliation through Freebase",
>   "identifierSpace" : "http://rdf.freebase.com/ns/authority.netflix.movie",
>   "schemaSpace" : "http://rdf.freebase.com/ns/type.object.id",
>   "view" : {
>     "url" : "http://www.netflix.com/WiMovie//{{id}}"
>   },
>   "preview" : {
>     "url" : "http://netflix-reconcile.freebaseapps.com/preview/{{id}}",
>     "width" : 430,
>     "height" : 300
>   },
>   "suggest" : {
>     "type" : {
>       "service_url" : "http://netflix-reconcile.freebaseapps.com",
>       "service_path" : "/suggest_type",
>       "flyout_service_url" : "http://www.freebase.com"
>     },
>     "property" : {
>       "service_url" : "http://netflix-reconcile.freebaseapps.com",
>       "service_path" : "/suggest_property",
>       "flyout_service_url" : "http://www.freebase.com"
>     },
>     "entity" : {
>       "service_url" : "http://netflix-reconcile.freebaseapps.com",
>       "service_path" : "/suggest",
>       "flyout_service_path" : "/flyout"
>     }
>   },
>   "defaultTypes" : []
> }
>
> I eventually thought that if I put exactly that on my service it should at
> least pick it up.
> Or is it to do with the MIME type or something?
> Clearly I don't understand what I am doing :-)
> But if you could suggest enough to get it to work, that would be really
> kind.
> That is what it returns now.
>
> Best
> Hugh
>
> On 22 Feb 2011, at 20:47, Shawn Simister wrote:
>
> I tried visiting your recon service without passing it any arguments but
> I just get an HTML form rather than the JSON metadata that Refine is
> expecting. That seems like the most likely explanation for your trouble.
>
> Shawn
>
> On 2/22/2011 3:26 PM, Hugh Glaser wrote:
>
> Anyone have experience of writing one of these?
>
> Thought it would be a good idea to put them on *.rkbexplorer.com
> So did the query bit, such as:
> http://acm.rkbexplorer.com/crs/reconcile/?query=Shadbolt
> For simple queries (query, limit, type).
> But Refine doesn't seem to accept it to start with when I try to "Add
> Standard Service".
> I tried adding the sort of service metadata specified at
> http://code.google.com/p/google-refine/wiki/ReconciliationServiceApi
> but I guess I am not getting it right.
> Anyone help please?
> Cheers
>
>

Received on Tuesday, 22 February 2011 22:12:22 UTC