How to preserve namespace prefixes in a Jena TDB dataset?
问题 I am using Jena TDB (1.1.1) to store a set of named graphs. Everything works fine but whenever I retrieve a named graph from the the dataset, all the namespace prefix information is lost. Is there a way to preserve the namespace prefixes in the original RDF graph. Following code snippet shows the issue. @Test public void testPreserveNsPrefixes(){ String modelText = "@prefix ro: <http://purl.org/wf4ever/ro#> ." + "@prefix ore: <http://www.openarchives.org/ore/terms/> ." + "@prefix ldp: <http:/