View Source GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefWebrefEntity (google_api_content_warehouse v0.4.0)

All information about a single entity available to WebRef. Next available tag: 7

Attributes

  • annotatedRelationship (type: list(GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefWebrefEntityRelationship.t), default: nil) - Information about links (e.g. implications) between the annotated entities.
  • annotations (type: GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefEntityAnnotations.t, default: nil) - All annotations of this entity on the given document.
  • collections (type: GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefWebrefEntityCollections.t, default: nil) - Information about the collections of this entity.
  • entityJoin (type: GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefEntityJoin.t, default: nil) - Metadata and raw signals used by the annotator. Intended for internal use. Steer clear of adding new dependencies on fields in this proto, especially external dependencies. If you are a Refx client and would like to consume entity metadata, consider querying TopicServer instead.
  • id (type: GoogleApi.ContentWarehouse.V1.Model.RepositoryWebrefWebrefEntityId.t, default: nil) - An identifier (usually a MID) for the entity. Consider using GetWebrefEntityMid() in the adjacent webref-entities-util.h to read this.
  • mrf (type: list(GoogleApi.ContentWarehouse.V1.Model.KnowledgeAnswersIntentQueryArgument.t), default: nil) - MRF equivalent representations of this entity as a compound, one for each unique MRF representation. Populated for compounds. Each MRF expression contains a minimum FunctionCall structure wrapped in a nameless Argument without signals and range data. This is not meant to be directly usable as MRF, use QueryJoinToMeaningStructConverter to expand it into a usable form. References to entities are made as component_reference ArgumentValue. Each compound Mention of this entity (not all of its mentions need be compounds, some may be plain entity mentions) have one or more compound_value fields claiming these MRF expressions via their mrf_index. The compound_value has nested components, one for each unique component_reference.index in the MRF expression. The processing expectation is that each ArgumentValue which has a component_reference has its contents discarded and replaced with the MRF for the target entity and mention named by the compound_value.component. If the target is not a compound, the ArgumentValue becomes a simple mid value and the signals are taken from the entity and the mention. If the target is a compound itself, the expansion continues recursively. If the target is a compound with multiple MRFs, a cartesian product of recursive expansions may need to be produced. Along with the component_reference we also emit an example value, but this is purely for human consumption so it's easier to understand what the full compound is like. The processing expectation remains that the ArgumentValue containing a component_reference is completely discarded and rebuilt with the reference target value. If the target has more than one MRF expression, it's not specified which one will be used as an example, except that the choice is guaranteed to be deterministic from run to run.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.