Salt
3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
|
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.
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.
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.