|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.monnetproject.lemon.impl.LemonModelImpl
public class LemonModelImpl
Instantiated via LemonSerializerImpl
Field Summary |
---|
Fields inherited from interface eu.monnetproject.lemon.LemonModel |
---|
LEMON_URI |
Constructor Summary | |
---|---|
LemonModelImpl(RemoteUpdaterFactory updaterFactory)
|
|
LemonModelImpl(String baseURI,
RemoteResolver resolver,
RemoteUpdaterFactory updaterFactory)
|
|
LemonModelImpl(String baseURI,
RemoteUpdaterFactory updaterFactory)
|
Method Summary | ||
---|---|---|
Lexicon |
addLexicon(URI uri,
String language)
Add a (new blank) lexicon |
|
void |
addPattern(MorphPattern pattern)
Add a pattern to the model |
|
boolean |
allowRemote()
|
|
boolean |
allowUpdate()
|
|
URI |
getContext()
Get the base URI of the model. |
|
LemonFactory |
getFactory()
Get the factory for making new elements |
|
LemonElementOrPredicate |
getLemonElement(URI uri)
|
|
Collection<Lexicon> |
getLexica()
Get the set of lexica contained by this model |
|
Collection<MorphPattern> |
getPatterns()
Get all patterns now in the model |
|
void |
importLexicon(Lexicon lxcn,
LinguisticOntology lo)
Import a lexicon from another model |
|
|
merge(Elem from,
Elem to)
Merge two elements |
|
void |
purgeLexicon(Lexicon lxcn,
LinguisticOntology lo)
Remove a lexicon and all entries |
|
|
query(Class<Elem> target,
String sparqlQuery)
Return all elements in the lemon model matching some certain SPARQL query |
|
void |
register(URI uri,
LemonElementOrPredicate lep)
|
|
void |
removeLexicon(Lexicon lexicon)
Remove a lexicon from the repository. |
|
RemoteResolver |
resolver()
|
|
RemoteUpdater |
updater()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LemonModelImpl(RemoteUpdaterFactory updaterFactory)
public LemonModelImpl(String baseURI, RemoteUpdaterFactory updaterFactory)
public LemonModelImpl(String baseURI, RemoteResolver resolver, RemoteUpdaterFactory updaterFactory)
Method Detail |
---|
public Collection<Lexicon> getLexica()
LemonModel
getLexica
in interface LemonModel
public LemonElementOrPredicate getLemonElement(URI uri)
public URI getContext()
LemonModel
getContext
in interface LemonModel
public LemonFactory getFactory()
LemonModel
getFactory
in interface LemonModel
public Lexicon addLexicon(URI uri, String language)
LemonModel
addLexicon
in interface LemonModel
public void removeLexicon(Lexicon lexicon)
LemonModel
removeLexicon
in interface LemonModel
public void addPattern(MorphPattern pattern)
LemonModel
addPattern
in interface LemonModel
pattern
- The patternpublic Collection<MorphPattern> getPatterns()
LemonModel
getPatterns
in interface LemonModel
public <Elem extends LemonElementOrPredicate> Iterator<Elem> query(Class<Elem> target, String sparqlQuery)
LemonModel
query
in interface LemonModel
target
- The class of the targetsparqlQuery
- The query in sparql, must be a select query returning a single variable
public <Elem extends LemonElement> void merge(Elem from, Elem to)
LemonModel
merge
in interface LemonModel
from
- The element to be removedto
- The element to be preservedpublic void purgeLexicon(Lexicon lxcn, LinguisticOntology lo)
LemonModel
purgeLexicon
in interface LemonModel
lxcn
- The lexiconlo
- The linguistic ontology used for links in the lexicon. If this
is incorrect it may result in links being followed that are not in the model
resulting in to many entries being deletedpublic void importLexicon(Lexicon lxcn, LinguisticOntology lo)
LemonModel
importLexicon
in interface LemonModel
lxcn
- The lexiconlo
- The linguistic ontology used for links in the lexicon. If this
is incorrect it may result in links being followed that are not in the model
resulting in to many entries being importedpublic final boolean allowRemote()
public final boolean allowUpdate()
public final RemoteResolver resolver()
public final RemoteUpdater updater()
public void register(URI uri, LemonElementOrPredicate lep)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |