By default the read_data() method of SimpleGraph includes the following line:
$request->set_accept('application/json, text/turtle, text/n3,
text/rdf+n3, application/x-turtle,
application/rdf+xml;q=0.8,application/xml;q=0.6, */*');
I've had issues just now with http://education.data.gov.uk/ serving up
non-RDF JSON, which seems like an acceptable response to this Accept
header but not very helpful in the context of Moriarty. Removing
application/json from this line appears to solve the problem.
Have others come across this problem, and do people agree that it's
worth fixing this? It would also seem to make sense to set some
sensible defaults somewhere (can't easily find any evidence of this
already being done) that could be overridden with set_accept() as
required.
What do people think?
Tom.
--
Dr Tom Heath
Lead Researcher
Talis Systems Ltd
W: http://www.talis.com/
W: http://tomheath.com/id/me
Talis Systems Ltd is a company registered in England and Wales.
Registered number: 07196440. Registered office: 43 Temple Row,
Birmingham, B2 5LS, United Kingdom.