Glenn Proctor wrote:
> s-put http://localhost:3030/dataset/data hgnc ~/Desktop/hgnc.nq
>
> This fails with the following error:
> 400 Unknown: text/n-quads;charset=ascii
Your PUTing a file to a named graph "hgnc" in dataset "dataset".
Put you are PUTing N-Quads, which is multigraph (even if the data is all
for the default graph i.e. triples - the system does not know when it's
deciding the parser to use).
You can't send quads into a graph.
If it's truly N-Triples, then use file extensions ".nt" or use curl/wget
and set the content type to "text/plain" or (IMHO better)
"application/n-triples". Or "text/turtle".
If you want to load quads into a dataset, you may be better off doing a
bulk loader operation offline and then publishing the database.
Andy