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