[Developers] RDF Service

Richard Newman rnewman at twinql.com
Fri Nov 28 15:42:56 UTC 2008


Hi Rodolfo,

> //setting the type of results I want to receive as specified in:
> http://rdf.freebase.com/
> rdfConn.addRequestProperty("Accept", "RDF/XML");

You need to specify a MIME type here, not just any string. E.g.,

rdfConn.addRequestProperty("Accept", "application/rdf+xml");

Sorry, that should be more clear in the docs. This is all HTTP.


> Server returned HTTP response code: 500 for URL:
> http://rdf.freebase.com/rdf/type.lang


... and this should be a better error (last I checked it was, or a default 
representation was used).

Thanks,

-Richard


More information about the Developers mailing list