Issue 1003 by nicholascar · Pull Request #1005 · RDFLib/rdflib (original) (raw)
I've made the changes I said I would above and got RDF/XML & TriX to work. TriG only 1/2 works since it can't express a base per graph, only one for the whole dataset/conjunctive graph. This means the full solution, which I have no time for, is to reverse QNAME any URI in any individual graph that doesn't use the same base as the dataset/conjunctive graph but the Turtle serializer, which the TriG serializer uses, doesn't keep track of things to make this easy!
So there is a loss of info if multiple graphs within a dataset/conjunctive graph declare base URIs different to the dataset/conjunctive graph and then serialize to TriG... future work!