Example #1
0
 public void DeleteSeeAlso(Synset existingHyponym)
 {
     if (WordNetData.Context.DeleteSeeAlsoSynsetRelation(ID, existingHyponym.ID).Equals(0))
     {
         SendPropertyChanged("SeeAlso");
         existingHyponym.SendPropertyChanged("SeeAlso");
     }
 }
Example #2
0
 public void DeleteHyponym(Synset existingHyponym)
 {
     if (WordNetData.Context.DeleteHyponymyRelation(ID, existingHyponym.ID).Equals(0))
     {
         SendPropertyChanged("Hyponyms");
         existingHyponym.SendPropertyChanged("Hypernyms");
     }
 }
Example #3
0
 public void AddSeeAlso(Synset newSeeAlso)
 {
     if (WordNetData.Context.AddSeeAlsoSynsetRelation(ID, newSeeAlso.ID).Equals(0))
     {
         SendPropertyChanged("SeeAlso");
         newSeeAlso.SendPropertyChanged("SeeAlso");
     }
 }
Example #4
0
 public void DeleteAttributeWithValue(Synset existingAttribute)
 {
     if (WordNetData.Context.DeleteAttributeRelation(existingAttribute.ID, ID).Equals(0))
     {
         SendPropertyChanged("AttributesWithValue");
         existingAttribute.SendPropertyChanged("ValuesOfAttribute");
     }
 }
Example #5
0
 public void AddHyponym(Synset newHyponym)
 {
     if (WordNetData.Context.AddHyponymyRelation(ID, newHyponym.ID).Equals(0))
     {
         SendPropertyChanged("Hyponyms");
         newHyponym.SendPropertyChanged("Hypernyms");
     }
 }
Example #6
0
 public void DeleteEntailed(Synset existingEntailed)
 {
     if (WordNetData.Context.DeleteEntailmentRelation(ID, existingEntailed.ID).Equals(0))
     {
         SendPropertyChanged("Entails");
         existingEntailed.SendPropertyChanged("IsEntailedBy");
     }
 }
Example #7
0
 public void AddAttributeWithValue(Synset newAttribute)
 {
     if (WordNetData.Context.AddAttributeRelation(newAttribute.ID, ID).Equals(0))
     {
         SendPropertyChanged("AttributesWithValue");
         newAttribute.SendPropertyChanged("ValuesOfAttribute");
     }
 }
Example #8
0
 public void DeleteCaused(Synset existingCaused)
 {
     if (WordNetData.Context.DeleteCausationRelation(ID, existingCaused.ID).Equals(0))
     {
         SendPropertyChanged("IsCauseOf");
         existingCaused.SendPropertyChanged("IsCausedBy");
     }
 }
Example #9
0
 public void AddEntailed(Synset newEntailed)
 {
     if (WordNetData.Context.AddEntailmentRelation(ID, newEntailed.ID).Equals(0))
     {
         SendPropertyChanged("Entails");
         newEntailed.SendPropertyChanged("IsEntailedBy");
     }
 }
Example #10
0
 public void AddCaused(Synset newCaused)
 {
     if (WordNetData.Context.AddCausationRelation(ID, newCaused.ID).Equals(0))
     {
         SendPropertyChanged("IsCauseOf");
         newCaused.SendPropertyChanged("IsCausedBy");
     }
 }
Example #11
0
 public void DeleteInstance(Synset existingInstance)
 {
     if (WordNetData.Context.DeleteInstanceRelation(ID, existingInstance.ID).Equals(0))
     {
         SendPropertyChanged("Instances");
         existingInstance.SendPropertyChanged("Types");
     }
 }
Example #12
0
 public void AddInstance(Synset newInstance)
 {
     if (WordNetData.Context.AddInstanceRelation(ID, newInstance.ID).Equals(0))
     {
         SendPropertyChanged("Instances");
         newInstance.SendPropertyChanged("Types");
     }
 }
Example #13
0
 public void AddMeronym(Synset newMeronym, char meronymType)
 {
     if (WordNetData.Context.AddMeronymyRelation(ID, newMeronym.ID, meronymType).Equals(0))
     {
         SendPropertyChanged("Meronyms");
         newMeronym.SendPropertyChanged("Holonyms");
     }
 }
Example #14
0
 public void DeleteHolonym(Synset existingHolonym)
 {
     if (WordNetData.Context.DeleteMeronymyRelation(existingHolonym.ID, ID).Equals(0))
     {
         SendPropertyChanged("Holonyms");
         existingHolonym.SendPropertyChanged("Meronyms");
     }
 }