|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.monnetproject.lemon.LemonSerializer
public abstract class LemonSerializer
Interface for I/O on lemon models
| Field Summary | |
|---|---|
protected RemoteUpdaterFactory |
remoteUpdateFactory
|
| Constructor Summary | |
|---|---|
LemonSerializer()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Close the connection to the serializer. |
abstract LemonModel |
create()
Create a blank model. |
abstract LemonModel |
create(URI graph)
Deprecated. Deprecated, use either create() if the context is
irrelevant or methods of particular implementations such as LemonModels.sparqlEndpoint()
to define a context. |
static LemonModel |
modelFromURL(URL url)
Get a model from the web starting from a given URL. |
abstract void |
moveLexicon(Lexicon lexicon,
LemonModel from,
LemonModel to)
Move a lexicon from one model to another. |
static LemonSerializer |
newInstance()
Get a new instance of a lemon serializer. |
static LemonSerializer |
newInstance(LinguisticOntology lingOnto)
Get a new instance of a lemon serializer |
abstract void |
read(LemonModel model,
Reader source)
Read a lemon model putting the data in a given model |
abstract LemonModel |
read(Reader source)
Read a lemon model from a given data source |
abstract LexicalEntry |
readEntry(Reader source)
Read a single entry |
void |
setRemoteUpdateFactory(RemoteUpdaterFactory remoteUpdateFactory)
Set the value of the remote updater factory used to copy changes to a remote repository |
abstract void |
write(LemonModel model,
Writer target)
Write a lemon model to a given data source |
abstract void |
write(LemonModel model,
Writer target,
boolean xml)
Write a lemon model to a given data source |
abstract void |
writeEntry(LemonModel model,
LexicalEntry entry,
LinguisticOntology lingOnto,
Writer target)
Write a single entry to a file |
abstract void |
writeEntry(LemonModel model,
LexicalEntry entry,
LinguisticOntology lingOnto,
Writer target,
boolean xml)
Write a single entry to a file |
abstract void |
writeLexicon(LemonModel model,
Lexicon lexicon,
LinguisticOntology lingOnto,
Writer target)
Write a single lexicon to a file |
abstract void |
writeLexicon(LemonModel model,
Lexicon lexicon,
LinguisticOntology lingOnto,
Writer target,
boolean xml)
Write a single lexicon to a file |
void |
writeLexiconDescription(LemonModel model,
Lexicon lexicon,
Writer target)
Write the description of a lexicon, i.e., only links to entries not the entries' descriptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RemoteUpdaterFactory remoteUpdateFactory
| Constructor Detail |
|---|
public LemonSerializer()
| Method Detail |
|---|
public abstract LemonModel read(Reader source)
public abstract void read(LemonModel model,
Reader source)
public abstract LexicalEntry readEntry(Reader source)
public abstract LemonModel create()
@Deprecated public abstract LemonModel create(URI graph)
create() if the context is
irrelevant or methods of particular implementations such as LemonModels.sparqlEndpoint()
to define a context.
graph - The context of the model or null for no context
public abstract void write(LemonModel model,
Writer target)
model - The model to writetarget - The target to write to
public abstract void writeEntry(LemonModel model,
LexicalEntry entry,
LinguisticOntology lingOnto,
Writer target)
model - The model to write fromentry - The entry to writelingOnto - The linguistic ontology (necessary to avoid following to
other entries)target - The target to write to
public abstract void writeLexicon(LemonModel model,
Lexicon lexicon,
LinguisticOntology lingOnto,
Writer target)
model - The model to write fromlexicon - The lexicon to writelingOnto - The linguistic ontology (necessary to avoid following to
other entries)target - The target to write to
public void writeLexiconDescription(LemonModel model,
Lexicon lexicon,
Writer target)
model - The modellexicon - The lexicontarget - The target to write to
public abstract void write(LemonModel model,
Writer target,
boolean xml)
model - The model to writetarget - The target to write toxml - Write as XML?
public abstract void writeEntry(LemonModel model,
LexicalEntry entry,
LinguisticOntology lingOnto,
Writer target,
boolean xml)
model - The model to write fromentry - The entry to writelingOnto - The linguistic ontology (necessary to avoid following to
other entries)target - The target to write toxml - Write as XML?
public abstract void writeLexicon(LemonModel model,
Lexicon lexicon,
LinguisticOntology lingOnto,
Writer target,
boolean xml)
model - The model to write fromlexicon - The lexicon to writelingOnto - The linguistic ontology (necessary to avoid following to
other entries)target - The target to write toxml - Write as XML?
public abstract void moveLexicon(Lexicon lexicon,
LemonModel from,
LemonModel to)
lexicon - The lexicon to movefrom - The source model containing the lexiconto - The target modelpublic static final LemonSerializer newInstance()
public static final LemonSerializer newInstance(LinguisticOntology lingOnto)
lingOnto - The linguistic ontology used in all models
public static LemonModel modelFromURL(URL url)
throws IOException
url - The URL of the lemon data
IOException - If an error occurred accessing the URLpublic abstract void close()
public void setRemoteUpdateFactory(RemoteUpdaterFactory remoteUpdateFactory)
remoteUpdateFactory -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||