Concept "Inheriting annotations if not customized by Indexer"

From FindAndLearn::Cookbook
C180913155853
Jump to: navigation, search



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.