Jena adds path/url to URIs
问题 I just started working with RDF and Jena. I got a RDF model which I want to read, modify and write out again. Assume my model file is located at http://xyz/model.ttl and contains an element with URI "someURI". When I do Model model = ModelFactory.createDefaultModel(); model.read("http://xyz/model.ttl", "", "TURTLE"); model.write(System.out, "TURTLE"); the URI in the output changes from "someURI" to http://xyz/someURI . When I read the model from the local filesystem, the URI changes to file:/