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 .
org.corpus_tools.salt.common.impl.SaltProjectImpl Class Reference

Inherits org.corpus_tools.salt.common.SaltProject.

Public Member Functions

List< SCorpusGraphgetCorpusGraphs ()
 Returns all corpus structures contained in this project.
Returns
all contained corpus structures

 
void addCorpusGraph (SCorpusGraph corpusGraph)
 Adds the passed SCorpusGraph object to the list of corpus graphs.
Parameters
corpusGraphnew corpus graph object

 
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.
Returns
name of the project

 
void setName (String name)
 Sets the name of this salt project.A name is optional.
Parameters
nameof the project

 
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.
Returns
the new created Salt project

 

Member Function Documentation

◆ basic_addCorpusGraph()

void org.corpus_tools.salt.common.impl.SaltProjectImpl.basic_addCorpusGraph ( SCorpusGraph  corpusGraph)

Adds the corpus graph to the internal list of corpus graphs.

Parameters
corpusGraphto add

◆ basic_removeCorpusGraph()

void org.corpus_tools.salt.common.impl.SaltProjectImpl.basic_removeCorpusGraph ( SCorpusGraph  corpusGraph)

Removes the corpus graph to the internal list of corpus graphs.

Parameters
corpusGraphgraph to remove

◆ loadCorpusStructure()

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.

Parameters
saltProjectURIthe uri to the location of the folder containing the saltProject.salt file.

Implements org.corpus_tools.salt.common.SaltProject.

◆ loadSaltProject()

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().

Parameters
saltProjectURIthe URI to the location to load the project

Implements org.corpus_tools.salt.common.SaltProject.

◆ removeCorpusGraph()

void org.corpus_tools.salt.common.impl.SaltProjectImpl.removeCorpusGraph ( SCorpusGraph  corpusGraph)

Removes the passed SCorpusGraph object to the list of corpus graphs.

Parameters
corpusGraphnew corpus graph object

Implements org.corpus_tools.salt.common.SaltProject.

◆ saveSaltProject()

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.

Parameters
saltProjectURIthe URI to the location to persist the project

Implements org.corpus_tools.salt.common.SaltProject.