Glenn Proctor wrote: > Hi Paolo > > Thanks for looking into this for me. I've tried using the n3 file from > the same source, filtering out any --------- lines, and including only > 100 lines. The test file I'm using is > > http://dl.dropbox.com/u/23033/hgnc-100.n3
Hi Glenn, ok... this file is correct. You are using the SPARQL 1.1 Graph Store HTTP Protocol spec to upload your data. All the examples in that spec use RDF/XML (i.e. application/rdf+xml), but this is not a good reason not to support other serializations. I've also tried to use curl instead on s-put (just to remove another variable from the table). I have your problem as well. No problem with: curl -X PUT -H "Content-Type: application/rdf+xml" -d@/tmp/hgnc-100.rdf http://localhost:3030/dataset/data?default Next step (mine or your) is to check in the Fuseki source code if the PUT handles other RDF serializations (and if not, this could be a good candidate to open a new feature request). I found the parseBody method in Fuseki, but I'll look in details later, here it is, just in case another pair of eyes is faster than mine: http://svn.apache.org/repos/asf/incubator/jena/Jena2/Fuseki/trunk/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_REST.java > > There are no unusual lines (as far as I can see) and no ^^ prefixes. > The file linked above validates using > http://www.rdfabout.com/demo/validator/ and also on the command line > using the rapper utility from the Raptor library (89 triples in > total). > > However when I try to start a simple Fuseki instance using > > fuseki-server --update --mem /dataset > > and load in the n3 file using > > s-put http://localhost:3030/dataset/data default ~/Dropbox/Public/hgnc-100.n3 > > I get > > 400 Unknown: text/rdf+n3application/rdf+n3 I think this: "text/rdf+n3application/rdf+n3" is also a problem in the s-put file. Should we have a comma? Or just one? Paolo > http://localhost:3030/dataset/data?default > > I can't see what it is about the file that Fuseki doesn't like. > > Glenn. > > On Mon, Feb 27, 2012 at 1:43 PM, Paolo Castagna > <[email protected]> wrote: >> Glenn Proctor wrote: >>> The file in question is the uncompressed version of >>> http://download.bio2rdf.org/data/hgnc/hgnc.nq.gz >> Hi Glenn, >> maybe this is not the problem (or maybe it is). >> >> I've just noticed that the hgnc.nq.gz file above starts/ends >> with "--------------------" (i.e. it's not a valid N-Quads >> file). >> >> Paolo
