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 .
|
Inherits org.corpus_tools.salt.common.SaltProject.
Public Member Functions | |||
List< SCorpusGraph > | getCorpusGraphs () | ||
Returns all corpus structures contained in this project.
| |||
void | addCorpusGraph (SCorpusGraph corpusGraph) | ||
Adds the passed SCorpusGraph object to the list of corpus graphs.
| |||
void | basic_addCorpusGraph (SCorpusGraph corpusGraph) | ||
Adds the corpus graph to the internal list of corpus graphs. More... | |||
void | removeCorpusGraph (SCorpusGraph corpusGraph) | ||
Removes the passed SCorpusGraph object to the list of corpus graphs. More... | |||
void | basic_removeCorpusGraph (SCorpusGraph corpusGraph) | ||
Removes the corpus graph to the internal list of corpus graphs. More... | |||
String | getName () | ||
Returns the name of this salt project.A name is optional.
| |||
void | setName (String name) | ||
Sets the name of this salt project.A name is optional.
| |||
void | saveSaltProject (URI saltProjectURI) | ||
Persists this SaltProject object to the location given by the passed URI object as SaltXML. More... | |||
void | loadSaltProject (URI saltProjectURI) | ||
Loads data from URI into this SaltProject object. More... | |||
void | loadCorpusStructure (URI saltProjectURI) | ||
Reads a saltProject.salt file and imports the contained corpus structure, without importing the document structure corresponding to the imported SDocument nodes. More... | |||
String | toString () | ||
SCorpusGraph | createCorpusGraph () | ||
Creates a new corpus graph and adds it to the Salt project.
| |||
void org.corpus_tools.salt.common.impl.SaltProjectImpl.basic_addCorpusGraph | ( | SCorpusGraph | corpusGraph | ) |
Adds the corpus graph to the internal list of corpus graphs.
corpusGraph | to add |
void org.corpus_tools.salt.common.impl.SaltProjectImpl.basic_removeCorpusGraph | ( | SCorpusGraph | corpusGraph | ) |
Removes the corpus graph to the internal list of corpus graphs.
corpusGraph | graph to remove |
void org.corpus_tools.salt.common.impl.SaltProjectImpl.loadCorpusStructure | ( | URI | saltProjectURI | ) |
Reads a saltProject.salt file and imports the contained corpus structure, without importing the document structure corresponding to the imported SDocument nodes.
saltProjectURI | the uri to the location of the folder containing the saltProject.salt file. |
Implements org.corpus_tools.salt.common.SaltProject.
void org.corpus_tools.salt.common.impl.SaltProjectImpl.loadSaltProject | ( | URI | saltProjectURI | ) |
Loads data from URI into this SaltProject object.
Data in location saltProjectURI must be conform to SaltXML format.
This will load all document graphs into memory as well. If you only intend to load the corpus structure call loadCorpusStructure(org.eclipse.emf.common.util.URI) instead. Then you can load the single document graphs you are interested in with SDocument#loadDocumentGraph().
saltProjectURI | the URI to the location to load the project |
Implements org.corpus_tools.salt.common.SaltProject.
void org.corpus_tools.salt.common.impl.SaltProjectImpl.removeCorpusGraph | ( | SCorpusGraph | corpusGraph | ) |
Removes the passed SCorpusGraph object to the list of corpus graphs.
corpusGraph | new corpus graph object |
Implements org.corpus_tools.salt.common.SaltProject.
void org.corpus_tools.salt.common.impl.SaltProjectImpl.saveSaltProject | ( | URI | saltProjectURI | ) |
Persists this SaltProject object to the location given by the passed URI object as SaltXML.
saltProjectURI | the URI to the location to persist the project |
Implements org.corpus_tools.salt.common.SaltProject.