Skip to content

library__type

Robert Bossy edited this page Jul 27, 2017 · 1 revision

#type

Synopsis

type provides functions to examine the type of the context element. Element types are coded as single character strings:

  • C: the corpus element;
  • D: a document;
  • S: a section;
  • A: an annotation;
  • R: a relation;
  • T: a tuple.

Functons

type:annotation()

Returns true if the context element is an annotation.

type:corpus()

Returns true if the context element is the corpus.

type:document()

Returns true if the context element is a document.

type:get()

Returns the type of the context element as a single character code.

type:relation()

Returns true if the context element is a relation.

type:section()

Returns true if the context element is a section.

type:test:t()

Tests that the context element has the type t. t must be a single character element type code.

type:tuple()

Returns true if the context element is a tuple.

Clone this wiki locally