| <article> An article (determiner) for a noun | |
| Member of | |
| Contained by | |
| May contain | Character data only |
| Content model |
<content> |
| Schema Declaration |
element article { text }
|
| <body> A body contains a superEntry with entries (for example for homonyms) or one entry | |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element body { superEntry | entry }
|
| <cit> A cit is used as a container holding either a quote, forms (@type='translation') or senses (@type='sensegroup'). When @type='translation', multiple quotes are allowed, when @type='collocation' nested cits of @type=example are allowed. All types can be described using a note, for @type='proverb' and @type='collocation' a definition may be added | |||||||
| Attributes |
|
||||||
| Contained by | |||||||
| May contain | |||||||
| Schematron |
<s:report test="(@type='sensegroup' and not(tei:sense)) or (tei:form and @type!='translation') or ((@type='example' or @type='collocation' or @type='proverb') and not(tei:quote))"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : @type=sensegroup requires cit/sense, @type!=translation|sensegroup requires cit/quote, form requires @type=translation </s:report> |
||||||
| Schematron |
<s:report test="@type='sensegroup' and *[not(self::tei:note or self::tei:sense)]"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : @type=sensegroup may only contain sense and note </s:report> |
||||||
| Schematron |
<s:report test="count(tei:quote) > 1 and @type!='translation'"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : multiple quotes requires @type=translation </s:report> |
||||||
| Schematron |
<s:report test="tei:def and @type!='collocation' and @type!='proverb'"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : def is only for collocation and proverb </s:report> |
||||||
| Schematron |
<s:report test="@type='translation' and not(@xml:lang)"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : translation requires @xml:lang </s:report> |
||||||
| Schematron |
<s:report test="tei:cit/tei:cit/tei:cit"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : maximum nesting depth for cit is 2 </s:report> |
||||||
| Schematron |
<s:report test="ancestor::tei:cit and @type!='translation' and @type!='example' and @type!='sensegroup'"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : nested cit must be translation, example or sensegroup </s:report> |
||||||
| Content model |
<content> |
||||||
| Schema Declaration |
element cit { attribute type { "translation" | "example" | "collocation" | "proverb" | "sensegroup" }, ( ( sense+, note? ) | ( quote+, def*, note?, cit* ) | ( form+, note? ) ) } |
||||||
| <def> A def contains a definition of a sense and may contain text (with hi, q and ref) followed by label, glosses or note. | |
| Module | dictionaries |
| Contained by | |
| May contain | |
| Schematron |
<s:report test="not(node())"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : def should contain something </s:report> |
| Content model |
<content> |
| Schema Declaration |
element def { macro.textLike?, etym?, label?, gloss*, note? }
|
| <entry> An entry contains at least a form, it optionally contains sense(s) of that form and translations, examples, proverbs or collocations in cit elements, also note and ref can be used. Cits directly under an entry are assumed to hold information valid for all senses. | |
| Contained by | |
| May contain | |
| Schematron |
<s:assert test="tei:form/@type='lemma'"> <s:value-of select="tei:form/tei:orth"/>: entry/form/@type must be of type "lemma" </s:assert> |
| Schematron |
<s:report test="tei:cit[@type='translation']/tei:quote or tei:sense/tei:cit[@type='translation']/tei:quote"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : cit/@type='translation requires form, not quote' <s:value-of select="ancestor::TEI/teiHeader/fileDesc/titleStmt/title"/> </s:report> |
| Schematron |
<s:report test="tei:cit[@type!='translation']/tei:form"> <s:value-of select="tei:cit[@type!='translation']/tei:form/tei:orth"/>: cit/form requires cit/@type='translation' </s:report> |
| Schematron |
<s:report test="tei:sense/tei:cit[@type!='translation']/tei:form"> <s:value-of select="tei:sense/tei:cit[@type!='translation']/tei:form/tei:orth"/>: cit/form requires cit/@type='translation' </s:report> |
| Content model |
<content> |
| Schema Declaration |
element entry { form, ( note | sense | cit | ref )* }
|
| <form> A form contains at least an orth for the word, grammar information in gram elements may be added, for these universal dependencies terminology is used. Several other elements may be used to describe the form, as well as nested form elements for example for paradigm forms. A form may also contain text nodes, q and hi, use of which is discouraged preferably use note instead. | |||||||
| Attributes | att.namekinds (@namekind)
|
||||||
| Contained by | |||||||
| May contain | |||||||
| Schematron |
<s:report test="@namekind and not(@type='lemma')"> <s:value-of select="tei:orth"/>: define @namekind on a lemma form </s:report> |
||||||
| Schematron |
<s:report test="@type='lemma' and parent::tei:form"> <s:value-of select="tei:orth"/>: A lemma form must be at the highest level of a form tree </s:report> |
||||||
| Schematron |
<s:report test="tei:form/tei:form/tei:form"> <s:value-of select="tei:orth"/>: maximum 2 levels of form nesting allowed </s:report> |
||||||
| Content model |
<content> |
||||||
| Schema Declaration |
element form { att.namekinds.attributes, attribute type { "lemma" | "paradigm" | "synonym" | "variant" | "compound" }, ( orth, ( gramGrp* | gram* ), article?, hyph?, ( pron | stress | form | etym | note )* ) } |
||||||
| <gram> A gram provides grammar information for a form using universal dependencies terminology. No @type is used for the category, this simplifies querying and makes an index possible | |
| Member of | |
| Contained by | |
| May contain | Empty element |
| Content model |
<content>Legal values are:
|
| Schema Declaration |
element gram { "islemma.yes" | "abbr.yes" | "poss.yes" | "reflex.yes" | "prefix.yes" | "prontype.prs" | "prontype.rcp" | "prontype.art" | "prontype.int" | "prontype.rel" | "prontype.ind" | "prontype.emp" | "prontype.exc" | "prontype.dem" | "case.nom" | "case.acc" | "case.dat" | "case.gen" | "case.ins" | "case.par" | "tense.past" | "tense.pres" | "tense.fut" | "voice.act" | "voice.pass" | "number.sing" | "number.plur" | "number.ptan" | "number.coll" | "person.1" | "person.2" | "person.3" | "verbtype.mod" | "verbtype.tense" | "verbform.inf" | "verbform.part" | "verbform.ger" | "verbform.conv" | "polite.infm" | "polite.form" | "numtype.ord" | "numtype.card" | "degree.cmp" | "degree.sup" | "degree.dim" | "mood.imp" | "mood.sub" | "mood.ind" | "gender.masc" | "gender.fem" | "gender.neut" | "gender.com" | "hyph.yes" | "prodrop.yes" | "clitic.yes" | "inflection.infl" | "inflection.uninf" | "suffix.yes" | "valency.1" | "valency.2" | "valency.3" | "convertedfrom.adj" | "convertedfrom.adv" | "convertedfrom.ver" | "convertedfrom.num" | "convertedfrom.pro" | "convertedfrom.part" | "predicate.yes" | "construction.attr" | "pos.adj" | "pos.adp" | "pos.adv" | "pos.aux" | "pos.cconj" | "pos.det" | "pos.intj" | "pos.noun" | "pos.num" | "pos.part" | "pos.pron" | "pos.propn" | "pos.punct" | "pos.sconj" | "pos.sym" | "pos.verb" | "pos.x" }Legal values are:
|
| <gramGrp> Groups together gram elements | |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element gramGrp { gram* }
|
| <msIdentifier> | |
| Module | msdescription |
| Contained by |
—
|
| May contain | Empty element |
| Schematron | |
| <note> | |
| Module | core |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element note { macro.textLike }
|
| <purpose> Purpose is used to indicate the capabilities of a dictionary in its @type attribute, when a certain capability is present this implies it is viable to query for data belonging to the capability. Clients are free to either or not act upon the registered capabilities. | |||||||||
| Attributes |
|
||||||||
| Contained by |
—
|
||||||||
| May contain | Empty element | ||||||||
| <quote> A quote contains text (with hi, q and ref) and optionally etymological or bibliographical information or a note. | |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element quote { macro.textLike, etym?, bibl?, note? }
|
| <sense> A sense contains zero or more ref, def, note and translations, examples, proverbs or collocations in cit elements, followed by an optional form | |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element sense { ( ref | def | cit | note )*, form? }
|
| <superEntry> A superEntry contains entries that are grouped together, for example for homonyms | |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element superEntry { entry+ }
|
| <TEI> Each article is a TEI document with a teiHeader holding at least an msIdentifier/idno for the article. The contents of the article can be found under body/text. msIdentifier/collection/@ref points to metainfo of the dictionary. | |||||||||
| Attributes |
|
||||||||
| Contained by | |||||||||
| May contain | |||||||||
| Schematron |
<s:assert test="tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"> <s:value-of select="tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/>: missing teiHeader/fileDesc/sourceDesc/msDesc/msIdentifier/idno. </s:assert> |
||||||||
| Content model |
<content> |
||||||||
| Schema Declaration |
element TEI { attribute linguisticsversion { "1" }, ( teiHeader, text ) }
|
||||||||
| <teiCorpus> A teiCorpus document contains a teiHeader with meta information about the dictionary. It may contain the articles in nested TEI elements, but the default application expects articles in separate TEI documents where collection/@ref points to the file containing dictionary metainfo in teiCorpus/teiHeader. | |
| Contained by |
—
|
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element teiCorpus { teiHeader, TEI* }
|
| <text> A text container contains a body | |
| Contained by | |
| May contain | |
| Content model |
<content> |
| Schema Declaration |
element text { body }
|
| <textDesc> Use textDesc/purpose to indicate the capabilities of a dictionary, so clients can know what it can be used for | |
| Contained by |
—
|
| May contain | Empty element |
| Schematron |
<s:assert test="ancestor::tei:teiHeader[parent::tei:teiCorpus]"> <s:value-of select="ancestor::tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:msIdentifier/tei:idno"/> : textDesc/purpose should be in teiCorpus/teiHeader not in TEI/teiHeader </s:assert> |
| <usg> usage information for forms or text | |||||||
| Attributes |
|
||||||
| Contained by |
—
|
||||||
| May contain | Empty element | ||||||
| att.namekinds | |||||||||
| Module | namesdates | ||||||||
| Members | form | ||||||||
| Attributes |
|
||||||||
| macro.textLike Several elements (i.e. def, quote and note) can contain text with simple styling and references. In note one may want to explain forms, for this several elements for characteristics of forms can be used. | |
| Used by | |
| Content model |
<content> |
| Declaration |
macro.textLike = ( text | q | hi | ref | pron | stress | gram | article )* |