|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LexicalSense
A lexical sense indicates a meaning of an entry by mapping it to an ontology entity
| Nested Class Summary | |
|---|---|
static class |
LexicalSense.ReferencePreference
|
| Method Summary | |
|---|---|
boolean |
addCondition(Condition predicate,
SenseCondition condition)
Add a condition to this sense |
boolean |
addContext(SenseContext context)
Add a context to the sense |
boolean |
addDefinition(Definition predicate,
SenseDefinition definition)
Add a definition to this sense |
boolean |
addExample(Example example)
Add an example to this sense |
boolean |
addIsA(Argument argument)
Add an argument that is a member of the ontology predicate |
boolean |
addObjOfProp(Argument argument)
Add an argument as the subject of the onotology predicate |
boolean |
addSenseRelation(SenseRelation senseRelation,
LexicalSense senseRelationVal)
Add a related sense |
boolean |
addSubjOfProp(Argument argument)
Add an argument as the subject of the ontology predicate |
boolean |
addSubsense(LexicalSense sense)
Add an atomic sense to the composition of this sense |
Collection<SenseCondition> |
getCondition(Condition predicate)
Get the set of conditions for a particular predicate on this sense |
Map<Condition,Collection<SenseCondition>> |
getConditions()
Get the conditions on this sense |
Collection<SenseContext> |
getContexts()
Get the contexts of the lexical sense |
Collection<SenseDefinition> |
getDefinition(Definition predicate)
Get the definitions of this sense for a particular predicate |
Map<Definition,Collection<SenseDefinition>> |
getDefinitions()
Get the definitions of this sense |
Collection<Example> |
getExamples()
Get examples of this sense |
Collection<Argument> |
getIsAs()
Get the arguments that are members of the ontology predicate |
LexicalEntry |
getIsSenseOf()
Get the lexical entry this sense is attached to |
Collection<Argument> |
getObjOfProps()
Get the arguments that are the object of the ontology predicate |
URI |
getReference()
Get the URI of the referenced ontology entity |
LexicalSense.ReferencePreference |
getRefPref()
Get the preference of the ontology entity for this sense's entry or null for no preference |
Collection<LexicalSense> |
getSenseRelation(SenseRelation senseRelation)
Get the set of sense related by a particular predicate |
Map<SenseRelation,Collection<LexicalSense>> |
getSenseRelations()
Get the relations to other sense |
Collection<Argument> |
getSubjOfProps()
Get the arguments that are the subject of the ontology predicate |
Collection<LexicalSense> |
getSubsenses()
Get the atomic senses that compose this sense, if any |
boolean |
removeCondition(Condition predicate,
SenseCondition condition)
Remove a condition from this sense |
boolean |
removeContext(SenseContext context)
Remove a context from the sense |
boolean |
removeDefinition(Definition predicate,
SenseDefinition definition)
Remove a definition from this sense |
boolean |
removeExample(Example example)
Remove an example from this sense |
boolean |
removeIsA(Argument argument)
Remove an argument this is a member of the ontology predicate |
boolean |
removeObjOfProp(Argument argument)
Remove an argument as the subject of the ontology predicate |
boolean |
removeSenseRelation(SenseRelation senseRelation,
LexicalSense senseRelationVal)
Remove a related sense |
boolean |
removeSubjOfProp(Argument argument)
Remove an argument as the subject of the ontology predicate |
boolean |
removeSubsense(LexicalSense sense)
Remove all atomic senses from the composition of this sense |
void |
setIsSenseOf(LexicalEntry entry)
Set the lexical entry this sense is attached to (avoid calling) |
void |
setReference(URI reference)
Set the URI of the referenced ontology entity |
void |
setRefPref(LexicalSense.ReferencePreference refPref)
Set the preference of the ontology entity for this sense's entry or null for no preference |
| Methods inherited from interface eu.monnetproject.lemon.model.LemonElement |
|---|
addAnnotation, addProperty, addType, getAnnotations, getAnnotations, getID, getProperty, getPropertys, getTypes, removeAnnotation, removeProperty, removeType |
| Methods inherited from interface eu.monnetproject.lemon.model.LemonElementOrPredicate |
|---|
getURI |
| Method Detail |
|---|
URI getReference()
void setReference(URI reference)
LexicalSense.ReferencePreference getRefPref()
void setRefPref(LexicalSense.ReferencePreference refPref)
boolean addContext(SenseContext context)
boolean removeContext(SenseContext context)
Collection<SenseContext> getContexts()
Map<Condition,Collection<SenseCondition>> getConditions()
Collection<SenseCondition> getCondition(Condition predicate)
boolean addCondition(Condition predicate,
SenseCondition condition)
boolean removeCondition(Condition predicate,
SenseCondition condition)
Collection<Example> getExamples()
boolean addExample(Example example)
boolean removeExample(Example example)
Map<Definition,Collection<SenseDefinition>> getDefinitions()
Collection<SenseDefinition> getDefinition(Definition predicate)
boolean addDefinition(Definition predicate,
SenseDefinition definition)
boolean removeDefinition(Definition predicate,
SenseDefinition definition)
Collection<Argument> getSubjOfProps()
boolean addSubjOfProp(Argument argument)
boolean removeSubjOfProp(Argument argument)
Collection<Argument> getObjOfProps()
boolean addObjOfProp(Argument argument)
boolean removeObjOfProp(Argument argument)
Collection<Argument> getIsAs()
boolean addIsA(Argument argument)
boolean removeIsA(Argument argument)
Collection<LexicalSense> getSubsenses()
boolean addSubsense(LexicalSense sense)
boolean removeSubsense(LexicalSense sense)
Map<SenseRelation,Collection<LexicalSense>> getSenseRelations()
Collection<LexicalSense> getSenseRelation(SenseRelation senseRelation)
boolean addSenseRelation(SenseRelation senseRelation,
LexicalSense senseRelationVal)
boolean removeSenseRelation(SenseRelation senseRelation,
LexicalSense senseRelationVal)
LexicalEntry getIsSenseOf()
void setIsSenseOf(LexicalEntry entry)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||