Skip to content

Methods of the Knowledge Base

Dustin F edited this page Nov 6, 2017 · 1 revision

Insert

The insert of the Knowledge Base merges new Knowledge into the Knowledge Base. All Semantic Tags and Predicates of the new Knowledge are merged. There are four possible merge statuses for an insert which are also commentated inside the class:

  • Status 0: Add all Tags of the new Knowledge to the Knowledge Base
  • Status 1: Add only Tags of the new Knowledge which are yet unknown to the Knowledge Base. (This uses the overwritten check for equality method in Semantic Tag)
  • Status 2: Add only Tags of the new Knowledge which are yet unknown to the Knowledge Base. Semantically already known Tags of the Knowledge Base are being replaced by the corresponding Tags of the inserting Knowledge
  • Status 3: Add only Tags of the new Knowledge which are yet unknown to the Knowledge Base. Semantically already known Tags of the Knowledge Base are being merged with the corresponding Tags of the inserting Knowledge (This uses the overwritten merge method in Semantic Tag)

Expose

The Expose of the Knowledge Base extracts Knowledge of the Knowledge Base which is interesting according to the given Interest. Currently only the topic dimension of the Interest is regarded but the method can be expanded for the other dimensions easily if required. The extracted Tags are being put into a Semantic Net which is in turn being put into Knowledge. This Knowledge is the return value of the function.

Clone this wiki locally