Concept "Inheriting annotations if not customized by Indexer"

From dataspects::Wiki
C180913155853
Jump to navigation Jump to search
[edit]
Understand how to customize ES doc compilation
EntityType "Concept"
Keywords/Contexts


Annotations
[edit]
[edit]

See below…



When we index a ResourceSilo, we can customize how its Resources entitize its content.

For example, when indexing a SemanticMediaWiki, we can redefine its SemanticMediaWikiPage's aEntities() method.

If the SemanticMediaWikiPage itself represents a single entity, we can write:

# Dataspects::DataspectsStandardSystemWikiIndexer.rb
module Dataspects
  class SemanticMediaWikiPage
    def aEntities
      oEntity = Subject.new(self)

Now, if you add nothing more to this class, then your entity would set its direct annotations like this:

As you can see in the lists, these 3 classes inherit their corresponding default direct annotations from their respective abstract super classes.