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 .
|
After we have shown how to create a Salt model, we now show some methods to access its data. If you start reading from here, and did not already have a Salt model, you can use the class SampleGenerator, to generate predefined sample models.
The following snippet exemplifies accessing a Salt model. If you copy the following lines and run the code you won't see anything. There are no outputs in the code below.
Another and very powerful mechanism to access a Salt model is the traversal of a Salt graph. Traversing in Salt means, that along a traversing order each node and relation in the Salt graph is visited. Via a callback the traversal give you the chance to react on the current node and relation. For more information, please read the article Traversing graphs.