Haibo Liu
Wed, 02 Jun 2010 08:30:42 -0700
Dear Ivan, Thanks for the prompt reply!
Hi Haibo,In order to preserve the context across serialization/import procedure you need to utilize a context-aware RDF format, e.g. TriG. After you serialize your repository in some file e.g. export.trig you need to execute the following steps in the workbench:1/ Go to [Add] 2/ Choose Data format: TriG 3/ Choose RDF Data File: export.trig4/ Clear the Context textfield (it was set to the URI of the file). If you don't clear this field all RDF will go to the <file://export.trig> context or alike.5/ Upload
Yes, the TriG format does work!
This should import back your data in the respective contexts. You can also use the TriX format (another XML-based context-aware RDF serialization format).Let me know if this worked for you.
The TriX format failed with error message:The processing instruction target matching "[xX][mM][lL]" is not allowed. [line 4, column 6]
The first few lines of the TriX file: <?xml version='1.0' encoding='UTF-8'?> <TriX xmlns='http://www.w3.org/2004/03/trix/trix-1/'> </TriX> <?xml version='1.0' encoding='UTF-8'?> <TriX xmlns='http://www.w3.org/2004/03/trix/trix-1/'> <graph> Thanks a lot, Haibo
Cheers, Ivan On Wednesday 02 June 2010 16:26:45 Haibo Liu wrote:Dear, I have a question about reserving contexts in serialization. I'm running a context based Sesame-SwiftOWLIM triple store. So the statements are organized under various contexts. However when I load the serialized N-Triples into a Sesame-SwiftOWLIM server through the openrdf-workbench, the only context visible is the file name just loaded, all other contexts disappeared. My questions are: 1. Does the serialization reserve the context in the triple store? 2. How to make the serialization reserve the context and be able to be loaded that way (organized under contexts)? Thanks, Haibo
_______________________________________________ OWLIM-discussion mailing list OWLIM-discussion@ontotext.com http://ontotext.com/mailman/listinfo/owlim-discussion