No luck, it goes back to complaining about the formatting of the .rdf file (similar to number 2 below).
On Wednesday, December 18, 2013 9:20:35 PM UTC-6, David Karger wrote: > > Not sure it will work, but try setting type to "application/jsonp" > On 12/18/2013 10:02 PM, Vicente Barreiro wrote: > > I'm trying to create a basic example using Babel to translate RDF into > Json, but I can't make it work. This is what I've tried: > > 1. I was able to successfully reach Babel via a Web Service call. I used > this command: > > curl --insecure --show-error --fail -F [email protected] <javascript:>-o > mycelebs.js ' > http://service.simile-widgets.org/babel/translator?reader=rdf-xml&writer=exhibit-json&mimetype=default > ' > > I was able to successfully get all my rdf tuples from the celebTrunc > file converted to Json and stored in the js file. > > 2. I was able to successfully reach Babel via a Web Service from the > exhibit java script call in my HTML page. Here is the code snippet: > > <link rel="exhibit-data" href="celebTrunc.rdf" > type="application/json" > > <script src= > "http://api.simile-widgets.org/exhibit/3.0.0rc1/exhibit-api.js?babel=http://service.simile-widgets.org/babel/translator?reader=rdf-xml%26writer=exhibit-jsonp%26mimetype=default/"<http://api.simile-widgets.org/exhibit/3.0.0rc1/exhibit-api.js?babel=http://service.simile-widgets.org/babel/translator?reader=rdf-xml%26writer=exhibit-jsonp%26mimetype=default/>type="text/javascript"></script> > I get an error message about celebTrunc.rdf file not being in json > format (I expected as much), and then I get redirected to the Babel web > service which returns an emty json item. So far, so good as I'm at least > reaching Babel. > > 3. I changed the type of the link file from "application/json" to > "application/rdf+xml" > > This time, I get the "Working" pop-up that would indicate that exhibit > is loading data, but if I look into the javascript console, I see the error: > > Uncaught TypeError: Object [object global] has no method '_loadJSONP' > > And the page get stuck there, without showing the data is supposed to. > > And I'm stuck here trying to troubleshoot. Don't know enough javascript > to attempt to debug. Any suggestions or tips? > > Thanks. > -- > You received this message because you are subscribed to the Google Groups > "SIMILE Widgets" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > Visit this group at http://groups.google.com/group/simile-widgets. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/simile-widgets. For more options, visit https://groups.google.com/groups/opt_out.
