antoniogarrote/rdfstore-js — pull request #17 by ktym (2012-01-24 21:27:41+00:00)
Title: media type check

Hi Antonio,

Thank you for your great work!

When I tried to load a local RDF file, I've got a following error message

% ./bin/rdfstorejs load file:///opt/rdf/sample.ttl http://test.db/sample --media-type 'text/turtle' --store-name sample --store-engine mongodb
Error: Media type used to encode incoming data must be specified using the --media-type flag when loading data from disk or stdin

and found this is caused by the inverse condition.

Cheers,
Toshiaki Katayama