owlim-discussion  

Re: [Owlim-discussion] context in triples after serialization

Ivan Peikov
Wed, 02 Jun 2010 08:02:40 -0700

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.trig
4/ 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

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.


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