Placeholder for some global data. This class has only one instance (global); see its documentation for the meaning of the different fields.

interface GlobalData {
    aliases: Record<string, string>;
    context_mentions: Contexts;
    import: string[];
    real_curies: string[];
    status_counter: StatusCounter;
    vocab_context?: string;
    vocab_prefix: string;
    vocab_url: string;
}

Properties

aliases: Record<string, string>

JSON-LD keyword aliases, to be added to the JSON-LD context file on the user's request

context_mentions: Contexts

Inverted info for contexts: for each context the list of relevant terms are listed.

import: string[]

Imported context files, to be added to the JSON-LD context file on the user's request

real_curies: string[]

List of "real" curies that occur in the vocabulary as terms. These are, usually, external terms but, in theory, may also be bona fide terms defined as part of this vocabulary.

Used to set the right 'id' values for cross-references in the generated HTML file

status_counter: StatusCounter

Counter for the terms with various status values. Some serializers (e.g. HTML) may optimize/improve the final output if one of the categories have no entries whatsoever.

vocab_context?: string

Default context URL for the vocabulary being handled.

vocab_prefix: string

Vocabulary prefix for the vocabulary being handled.

vocab_url: string

Vocabulary URL for the vocabulary being handled.