Salt  3.3.6-SNAPSHOT
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
Persist and Load

Persisting a model is very easy: Only a nonempty SaltProject object and a valid local URI are needed. The following snippet shows how to persist an entire model.

saltProject.saveSaltProject(URI);

Please note, that the URI used as parameter is not a URI of type java.net.URI - it is of type org.eclipse.emf.common.util.URI.

To load a valid SaltXML document, create an empty SaltProject object and call the load method as shown in the following snippet.

saltProject = SaltFactory.createSaltProject();
saltProject.loadSaltProject(URI);

Salt document structrues can get very large, and maintaining a bunch od them in main memory can get problematical. Therefore Salt contains a mechanism to persist single document structures. The following snippet shows how to store a single document.

// storing
sampleDocument.saveDocumentGraph(URI);
// loading
sampleDocument.loadDocumentGraph(URI);