Concept "Creating Elasticsearch documents for Entities extracted from Resources extracted from ResourceSilos"

From SMW CindyKate - Main
Component0406282300
Jump to: navigation, search

Content


hEntityDoc = {
  # Resource silo level
  OriginatedFromResourceSiloID: oEntity.get_sObjectValue_for_sPREDICATENAME('OriginatedFromResourceSiloID'),
  OriginatedFromResourceSiloLabel: oEntity.get_sObjectValue_for_sPREDICATENAME('OriginatedFromResourceSiloLabel'),
  OriginatedFromResourceSiloType: oEntity.get_sObjectValue_for_sPREDICATENAME('OriginatedFromResourceSiloType'),
  # Resource level
  HasResourceName: oEntity.get_sObjectValue_for_sPREDICATENAME('HasResourceName'),
  HasResourceURL: oEntity.get_sObjectValue_for_sPREDICATENAME('HasResourceURL'),
  HasResourceType: oEntity.get_sObjectValue_for_sPREDICATENAME('HasResourceType'),
  # Entity/subject level
  HasEntityClass: oEntity.get_sObjectValue_for_sPREDICATENAME('HasEntityClass'),
  HasEntityName: oEntity.get_sObjectValue_for_sPREDICATENAME('HasEntityName'),
  HasEntityType: oEntity.get_sObjectValue_for_sPREDICATENAME('HasEntityType'),
  HasEntityURL: oEntity.get_sObjectValue_for_sPREDICATENAME('HasEntityURL'),
  HasEntityTitle: oEntity.get_sObjectValue_for_sPREDICATENAME('HasTitle'),
  HasEntityBlurb: oEntity.get_sObjectValue_for_sPREDICATENAME('HasEntityBlurb'),
  HasEntityContent: oEntity.get_sObjectValue_for_sPREDICATENAME('HasEntityContent'),
  HasEntityTypeAndEntityTitle: oEntity.get_sObjectValue_for_sPREDICATENAME('HasTypeAndTitle'),
  HasEntityKeywords: oEntity.get_aObjectValues_for_sPREDICATENAME('HasEntityKeyword'),
  HasEntityAnnotations: oEntity.get_aHasEntityAnnotations # This allows skipping predicates!
}

What can be a dataspectsEntity?

Dataspects::Entity
GitHubRepositoryFile
SemanticMediaWikiPage

What can be a dataspectsResource?

Dataspects::ResourceDataspects::Resource.hResourceURIAEntities
GitHubRepositoryFileJSON.load(Sawyer::Resource.attrs.to_json) coming from Octokit.contentsDataspects::Resource.aEntities
SemanticMediaWikiPageJSON.load({sSMWPageName: sSMWPageName}.to_json)Dataspects::Resource.aEntities

What can be a dataspectsResourceSilo?

Dataspects::ResourceSilo
GitHubRepository
SemanticMediaWiki