For upload, the mission is clear, based on file extension, tell Jena, which type of serialization it is.
What about URL download? I don't like the idea of switching to Virtuoso internal functions now... But without it, we won't have TriG support for URL download.