Table of Contents

Class OperationMetadata

Namespace
Gve.Text
Assembly
Gve.Text.dll

Generic metadata about a text operation.

public class OperationMetadata
Inheritance
OperationMetadata
Derived
Inherited Members

Constructors

OperationMetadata()

Initializes a new instance of the OperationMetadata class.

public OperationMetadata()

Fields

OPID_KEY

The key for the operation ID feature. This is assigned to each node added by an operation (=by insertion or replacement).

public const string OPID_KEY = "opid"

Field Value

string

RANK_KEY

The key for the rank feature. This is automatically projected from Rank.

public const string RANK_KEY = "rank"

Field Value

string

SOURCE_KEY

The key for the source feature(s). These are automatically projected from Sources.

public const string SOURCE_KEY = "source"

Field Value

string

TYPE_SYMBOLS

The symbols corresponding to OperationType's.

public static readonly string[] TYPE_SYMBOLS

Field Value

string[]

X_KEY

The key for the X coordinate feature. This is assigned to each node which requires to be manually positioned. Usually this happens for the first node of a set of nodes added by an operation; the others just follow it.

public const string X_KEY = "x"

Field Value

string

Y_KEY

The key for the Y coordinate feature. This is assigned to each node which requires to be manually positioned. Usually this happens for the first node of a set of nodes added by an operation; the others just follow it.

public const string Y_KEY = "y"

Field Value

string

Properties

Diplomatics

Gets or sets the diplomatic description of this operation, representing its graphical representation in the original document.

public OperationDiplomatics? Diplomatics { get; set; }

Property Value

OperationDiplomatics

Features

Gets or sets the features to be attached to the result of this operation.

public IList<OperationFeature> Features { get; set; }

Property Value

IList<OperationFeature>

GroupId

Gets or sets the optional group identifier. When an operation is part of a group, all the operation in it are considered as a unique virtual operation.

public string? GroupId { get; set; }

Property Value

string

Id

Gets or sets the operation identifier. This can be used to reference a specific operation in a transformation, and is automatically generated using Generate(string, int) unless you want to assign it some human-friendly name.

public string Id { get; set; }

Property Value

string

Rank

Gets or sets the certainty rank for this operation: 0=not specified, 1=most probable, 2=less probable, etc.

public short Rank { get; set; }

Property Value

short

Sources

Gets or sets the sources for this operation. These represent any type of source for it, such as a manuscript, an author, etc.

public IList<OperationSource> Sources { get; set; }

Property Value

IList<OperationSource>

Methods

GenerateId()

Generates a new identifier for an operation.

public static string GenerateId()

Returns

string

Identifier.