eu.monnetproject.lemon.model
Interface LexicalSense

All Superinterfaces:
LemonElement, LemonElementOrPredicate
All Known Implementing Classes:
LexicalSenseImpl

public interface LexicalSense
extends LemonElement

A lexical sense indicates a meaning of an entry by mapping it to an ontology entity

Author:
John McCrae

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

getReference

URI getReference()
Get the URI of the referenced ontology entity


setReference

void setReference(URI reference)
Set the URI of the referenced ontology entity


getRefPref

LexicalSense.ReferencePreference getRefPref()
Get the preference of the ontology entity for this sense's entry or null for no preference


setRefPref

void setRefPref(LexicalSense.ReferencePreference refPref)
Set the preference of the ontology entity for this sense's entry or null for no preference


addContext

boolean addContext(SenseContext context)
Add a context to the sense


removeContext

boolean removeContext(SenseContext context)
Remove a context from the sense


getContexts

Collection<SenseContext> getContexts()
Get the contexts of the lexical sense


getConditions

Map<Condition,Collection<SenseCondition>> getConditions()
Get the conditions on this sense


getCondition

Collection<SenseCondition> getCondition(Condition predicate)
Get the set of conditions for a particular predicate on this sense


addCondition

boolean addCondition(Condition predicate,
                     SenseCondition condition)
Add a condition to this sense


removeCondition

boolean removeCondition(Condition predicate,
                        SenseCondition condition)
Remove a condition from this sense


getExamples

Collection<Example> getExamples()
Get examples of this sense


addExample

boolean addExample(Example example)
Add an example to this sense


removeExample

boolean removeExample(Example example)
Remove an example from this sense


getDefinitions

Map<Definition,Collection<SenseDefinition>> getDefinitions()
Get the definitions of this sense


getDefinition

Collection<SenseDefinition> getDefinition(Definition predicate)
Get the definitions of this sense for a particular predicate


addDefinition

boolean addDefinition(Definition predicate,
                      SenseDefinition definition)
Add a definition to this sense


removeDefinition

boolean removeDefinition(Definition predicate,
                         SenseDefinition definition)
Remove a definition from this sense


getSubjOfProps

Collection<Argument> getSubjOfProps()
Get the arguments that are the subject of the ontology predicate


addSubjOfProp

boolean addSubjOfProp(Argument argument)
Add an argument as the subject of the ontology predicate


removeSubjOfProp

boolean removeSubjOfProp(Argument argument)
Remove an argument as the subject of the ontology predicate


getObjOfProps

Collection<Argument> getObjOfProps()
Get the arguments that are the object of the ontology predicate


addObjOfProp

boolean addObjOfProp(Argument argument)
Add an argument as the subject of the onotology predicate


removeObjOfProp

boolean removeObjOfProp(Argument argument)
Remove an argument as the subject of the ontology predicate


getIsAs

Collection<Argument> getIsAs()
Get the arguments that are members of the ontology predicate


addIsA

boolean addIsA(Argument argument)
Add an argument that is a member of the ontology predicate


removeIsA

boolean removeIsA(Argument argument)
Remove an argument this is a member of the ontology predicate


getSubsenses

Collection<LexicalSense> getSubsenses()
Get the atomic senses that compose this sense, if any


addSubsense

boolean addSubsense(LexicalSense sense)
Add an atomic sense to the composition of this sense


removeSubsense

boolean removeSubsense(LexicalSense sense)
Remove all atomic senses from the composition of this sense


getSenseRelations

Map<SenseRelation,Collection<LexicalSense>> getSenseRelations()
Get the relations to other sense


getSenseRelation

Collection<LexicalSense> getSenseRelation(SenseRelation senseRelation)
Get the set of sense related by a particular predicate


addSenseRelation

boolean addSenseRelation(SenseRelation senseRelation,
                         LexicalSense senseRelationVal)
Add a related sense


removeSenseRelation

boolean removeSenseRelation(SenseRelation senseRelation,
                            LexicalSense senseRelationVal)
Remove a related sense


getIsSenseOf

LexicalEntry getIsSenseOf()
Get the lexical entry this sense is attached to


setIsSenseOf

void setIsSenseOf(LexicalEntry entry)
Set the lexical entry this sense is attached to (avoid calling)



Copyright © 2012. All Rights Reserved.