Compatibility¶
Table of content
Lodel and TEI schema¶
Lodel websites must use one of the editorial models compatible with the TEI schema to import documents. The editorial model contains XPath used by the TEI parser of Lodel to fill the database. It is imperative to monitor the compatibility of the versions between the editorial model and the schema.
To import text document (doc, docx, odt) you must use the OTX version compatible with the TEI schema.
Version compatibility¶
OpenEdition TEI | OJ Editorial model | OB Editorial model | OTX |
---|---|---|---|
1.6.2 | 1.0.2 | 1.0.2 | v1.2.0 |
1.6.1 | 1.0.0 | 1.0.0 | v1.1.2 |
- OpenEdition Journals editorial model : https://github.com/OpenEdition/oej.em/releases
- OpenEdition Books editorial model : https://github.com/OpenEdition/oeb.em/releases
- OTX : https://github.com/OpenEdition/OTX/releases
[*] | this section is for Lodel users outside OpenEdition platforms. |
Usage of TEI elements¶
The following tables presents the possibilities of using the elements of the OpenEdition schema for:
- the import of documents on OpenEdition Journals (Import OJ);
- the import of documents on OpenEdition Books (Import OB);
- documents exported in TEI OpenEdition format (OE Export).
The documents exported in TEI OpenEdition format are use for the following purposes:
- Re-publication on another platform;
- Text and Data Mining;
- Long-term archiving.
Caption:
- ✓ : element is allowed
- - : element is not allowed
- X.X.X+: element is allowed from the X.X.X version of OpenEdition TEI schema
- X.X.X-: element is allowed up to the X.X.X version of OpenEdition TEI schema
fileDesc¶
titleStmt¶
/TEI/teiHeader/fileDesc/titleStmt/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.1.1.1 titles, subtitles, overtitles, translated titles | |||
title[@type=’main’] | ✓ | ✓ | ✓ |
title[@type=’sub’] | ✓ | ✓ | ✓ |
title[@type=’sup’] | ✓ | ✓ | ✓ |
title[@type=’alt’ and @xml:lang] [1] | ✓ | ✓ | ✓ |
1.1.1.2 Authors, editors, translators | |||
author | ✓ | ✓ | ✓ |
editor[@role=’translator’] | ✓ | ✓ | ✓ |
editor[not(@role)] | ✓ | ✓ | ✓ |
editor[@role=’excavationsdirector’] | EM archeo [2] | - | ✓ |
editor[@role=’collaborator’] | EM archeo [2] | some EM [3] | ✓ |
author and editor¶
/TEI/teiHeader/fileDesc/titleStmt/author/ | |||
/TEI/teiHeader/fileDesc/titleStmt/editor/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
persName/forename | ✓ | ✓ | ✓ |
persName/surname | ✓ | ✓ | ✓ |
affiliation | ✓ | ✓ | ✓ |
orgName | ✓ | ✓ | ✓ |
roleName[@type=’function’] | ✓ | ✓ | ✓ |
roleName[@type=’honorific’] | ✓ | ✓ | ✓ |
✓ | ✓ | ✓ | |
ref[@type=’website’] | ✓ | ✓ | ✓ |
publicationStmt¶
/TEI/teiHeader/fileDesc/publicationStmt/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.1.2.1 Date of electronic publication | |||
date | ✓ | - | ✓ |
1.1.2.2 Publisher, Distributor | |||
publisher | - | - | ✓ |
distributor | - | - | 1.6.1+ |
1.1.2.3 Identifier | |||
idno[@type=’documentnumber’] | ✓ | - | ✓ |
idno[@type=’url’] | - | - | ✓ |
idno[@type=’doi’] | - | - | 1.6.1+ |
1.1.2.4 License | |||
availability | ✓ | - | ✓ |
sourceDesc/biblStruct¶
analytic¶
/TEI/teiHeader/fileDesc/sourceDesc/biblStruct/analytic/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.1.3.2.1 biblStruct/analytic | |||
title[@type=’main’] | - | - | 1.6.1+ |
title[@type=’sup’] | - | - | 1.6.1+ |
title[@type=’sub’] | - | - | 1.6.1+ |
title[@type=’alt’] | - | - | 1.6.1+ |
author | - | - | 1.6.1+ |
editor[@role=’translator’] | - | - | 1.6.1+ |
editor[not(@role)] | - | - | 1.6.1+ |
editor[@role=’excavationsdirector’] | - | - | 1.6.1+ |
editor[@role=’collaborator’] | - | - | 1.6.1+ |
monogr¶
/TEI/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.1.3.2.2 biblStruct/monogr | |||
title[@level] | - | - | 1.6.1+ |
title[@leveland @type] | - | - | 1.6.1+ |
idno[@type] | - | - | 1.6.1+ |
idno[@type and @subtype] | - | - | 1.6.1+ |
imprint/biblScope[@unit=’issue’] | - | - | 1.6.1+ |
imprint/publisher | - | - | 1.6.1+ |
imprint/biblScope[@unit=’page’] | 1.6.2+ | 1.6.2+ | 1.6.1+ |
imprint/date[@type=’published’] | 1.6.2+ | - | 1.6.1+ |
series¶
/TEI/teiHeader/fileDesc/sourceDesc/biblStruct/series/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.1.3.2.3 biblStruct/series | |||
title[@level] | - | - | 1.6.1+ |
title[@leveland @type] | - | - | 1.6.1+ |
idno[@type] | - | - | 1.6.1+ |
encodingDesc¶
tagsDecl¶
/TEI/teiHeader/encodingDesc/tagsDecl/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
2.2.3 Text layout: hi tags, rend and rendition attributes | |||
rendition[@xml:id and @scheme=”css”] | ✓ | ✓ | ✓ |
profileDesc¶
/TEI/teiHeader/profileDesc/ |
langUsage/language¶
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.3.2 Language | |||
langUsage/language | ✓ | ✓ | ✓ |
textClass/keywords¶
/TEI/teiHeader/profileDesc/textClass/keywords/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
1.3.1 Index: keywords, geography, chronology, themes, etc. | |||
[@scheme=’keyword’ and xml:lang] [1] | ✓ | ✓ | ✓ |
[@scheme=’geographical’] | ✓ | ✓ | ✓ |
[@scheme=’chronological’] | ✓ | ✓ | ✓ |
[@scheme=’subject’] | ✓ | ✓ | ✓ |
[@scheme=’personcited’] | some EM [3] | some EM [3] | - |
text¶
front¶
/TEI/text/front/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
2.1.1 Abstracts | |||
div[@type=’abstract’ and @xml:lang] [1] | ✓ | ✓ | ✓ |
2.1.2 Reading notes and reviews | |||
div[@type=’review’]/p[@rend=’review-title’] | ✓ | - | ✓ |
div[@type=’review’]/p[@rend=’review-author’] | ✓ | - | ✓ |
div[@type=’review’]/p[@rend=’review-bibliography’] | ✓ | - | ✓ |
div[@type=’review’]/p[@rend=’review-date’] | ✓ | - | ✓ |
2.1.3 Author notes, editors notes, errata, acknowledgements | |||
div[@type=’correction’]/p | ✓ | ✓ | ✓ |
div[@type=’dedication’]/p | ✓ | ✓ | ✓ |
div[@type=’ack’]/tei:p | ✓ | ✓ | ✓ |
note[@type=’author’]/p | 1.6.2+ | 1.6.2+ | 1.6.1+ |
note[@type=’publisher’]/p | 1.6.2+ | 1.6.2+ | 1.6.1+ |
body¶
/TEI/text/body/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
2.2.1 Structure of the text and section titles | |||
div | ✓ | ✓ | ✓ |
head[@subtype=’leveln’] | ✓ | ✓ | ✓ |
2.2.2 Footnotes and endnotes | |||
note[@place=’foot’ and @n]/p | ✓ | ✓ | ✓ |
note[@place=’end’ and @n]/p | ✓ | ✓ | ✓ |
2.2.3 Text layout: hi tags, rend and rendition attributes | |||
hi[@rend] [4] | ✓ | ✓ | ✓ |
2.2.4 Quotation | |||
q[@rend=’quotation’] | ✓ | ✓ | ✓ |
q[@rend=’quotation2’] | ✓ | ✓ | ✓ |
q[@rend=’quotation3’] | ✓ | ✓ | ✓ |
2.2.5 Paragraph styles | |||
p[@rend=’answer’] | ✓ | ✓ | ✓ |
p[@rend=’noindent’] | ✓ | ✓ | ✓ |
p[@rend=’box’] | ✓ | ✓ | ✓ |
p[@rend=’epigraph’] | ✓ | ✓ | ✓ |
p[@rend=’break’] | ✓ | ✓ | ✓ |
2.2.6 Lists | |||
list[@type=’unordered’]/item | ✓ | ✓ | ✓ |
list[@type=’ordered’]/item | ✓ | ✓ | ✓ |
2.2.7 Tables | |||
table | ✓ | ✓ | ✓ |
row | ✓ | ✓ | ✓ |
cell[@rows and @cols] | ✓ | ✓ | ✓ |
2.2.8 Hypertext links | |||
ref[@target] | ✓ | ✓ | ✓ |
2.2.9 Images | |||
p/figure/graphic[@url] | ✓ | ✓ | ✓ |
p[@rend=’figure-title’] | ✓ | ✓ | ✓ |
p[@rend=’figure-legend’] | ✓ | ✓ | ✓ |
p[@rend=’figure-license’] | ✓ | ✓ | ✓ |
2.2.10 Formula | |||
formula[@notation=’latex’] [5] | ✓ | ✓ | ✓ |
2.2.11 Code | |||
code[@lang] | ✓ | ✓ | ✓ |
2.2.12 Linguistic examples | |||
quote[@type and @n]/quote | ✓ | ✓ | ✓ |
quote[@type and @n]/seg | ✓ | ✓ | ✓ |
quote[@type and @n]/bibl | ✓ | ✓ | ✓ |
quote[@type and @n]/gloss | ✓ | ✓ | - |
back¶
/TEI/text/back/ |
Element | Import OJ | Import OB | Export OE |
---|---|---|---|
2.3.1 Bibliography | |||
div[@type=’bibliography’]/listBibl | ✓ | ✓ | ✓ |
div[@type=’bibliography’]/listBibl/bibl | ✓ | ✓ | ✓ |
div[@type=’bibliography’]/listBibl/head[@subtype=’leveln’] | ✓ | ✓ | ✓ |
2.3.2 Annexes | |||
div[@type=’appendix’] | ✓ | ✓ | ✓ |
[1] | (1, 2, 3) the attribute xml:lang must be given in ISO 639-1 format. |
[2] | (1, 2) Some archaeological journals have an “archeo” editorial model that provides additional elements to the generic editorial model. |
[3] | (1, 2, 3) Some journals or publishers use an editorial model that contains additional elements in addition to the generic editorial model. |
[4] | allowed values for the attribute ‘rend’ of the element <hi> : italic , bold , sup , sub , uppercase , small-caps , underline . |
[5] | Some sites use MathJax to display LaTeX formulas in the browser. |