Extra optional information is the superclass (ie, the datatypes that was used to derive this one). The cross-references for domains and ranges are calculated.

interface RDFDatatype {
    comment?: string;
    context: string[];
    curie: string;
    defined_by?: string[];
    deprecated?: boolean;
    example?: Example[];
    external?: boolean;
    html_id: string;
    id: string;
    includes_range_of: RDFProperty[];
    known_as?: string;
    label: string;
    one_of: string[];
    pattern: string;
    prefix: string;
    range_of: RDFProperty[];
    see_also?: Link[];
    status?: Status;
    subClassOf: RDFDatatype[];
    term_type: TermType;
    toString: () => string;
    type: RDFTerm[];
    url: string;
    user_type?: RDFTerm[];
}

Hierarchy (View Summary)

Properties

comment?: string
context: string[]
curie: string

The curie of the term. Used this way, for example, in turtle

defined_by?: string[]
deprecated?: boolean

This field is, in fact, potentially deprecated, because the status has taken over. Kept for backward compatibility.

example?: Example[]
external?: boolean

Whether this term is really part of the vocabulary, or is defined externally.

html_id: string

The ID used in the HTML listing. It is, usually, the same as the id, except for an external term

id: string

The name of the term, without the namespace prefix.

includes_range_of: RDFProperty[]
known_as?: string

Alternative label to be used, e.g., in a context file. Rarely used.

label: string
one_of: string[]
pattern: string
prefix: string

The namespace prefix; usually the same as the vocabulary prefix, but not always (e.g., external terms).

range_of: RDFProperty[]
see_also?: Link[]
status?: Status
subClassOf: RDFDatatype[]
term_type: TermType

The exact term type; used in the categorization of the terms

toString: () => string

This is to simplify the text conversion of the terms to strings; it usually refers to the curie

type: RDFTerm[]

The types provided by the YAML file and the generated types by the conversion (e.g., rdf:Property).

url: string

The full URL of the term

user_type?: RDFTerm[]

The types provided by the YAML file