You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Bob DuCharme <bo...@snee.com> on 2011/03/26 16:46:35 UTC
LOAD command and serializations
I have some test files with different RDF serializations in
http://www.snee.com/temp/temp. The following command works fine in Fuseki:
LOAD <http://www.snee.com/temp/temp/test3.rdf>
Loading the samples from the other serializations doesn't work. I tried
setting the ttl extension to a MIME type of text/turtle with an
.htaccess file, but that didn't help.
I'm not sure whether it's a Fuseki issue or something covered by one of
the specs. I looked through the SPARQL 1.1 Protocol for RDF spec a bit,
but couldn't find anything on this. Any suggestions?
thanks,
Bob
Re: LOAD command and serializations
Posted by Andy Seaborne <an...@epimorphics.com>.
On 26/03/11 15:46, Bob DuCharme wrote:
> I have some test files with different RDF serializations in
> http://www.snee.com/temp/temp. The following command works fine in Fuseki:
>
> LOAD <http://www.snee.com/temp/temp/test3.rdf>
>
> Loading the samples from the other serializations doesn't work. I tried
> setting the ttl extension to a MIME type of text/turtle with an
> .htaccess file, but that didn't help.
>
> I'm not sure whether it's a Fuseki issue or something covered by one of
> the specs. I looked through the SPARQL 1.1 Protocol for RDF spec a bit,
> but couldn't find anything on this. Any suggestions?
>
> thanks,
>
> Bob
LOAD calls
FileManager.get().readModel(model, source) ;
to do the work. Currently, over HTTP, that means RDF/XML. file:// will
play extension games.
Work-in-progress is generalizing all this in the anticipation of Turtle
and standardized N-triples (it's a testing format, and MIME type
text/plain which is a bit of a pain). But it's WIP, not done.
Don't rely on turtle becoming text/turtle BTW. "text/" defaults to
ISO-8859-1.
Fuseki does support RESTful upload with MIME type negotiation. The SOH
scripts will look at the file name being PUT/POST'ed and do media type
negotiation.
Andy