patrimonivm ›› petrae editor: epidoc encoding made easier · • patrimonium erc-stg 716375...
TRANSCRIPT
![Page 1: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/1.jpg)
Patrimonivm ›› Petrae Editor:
Epidoc encoding made easier
Vincent RAZANAJAO
Université Bordeaux Montaigne, Institut AusoniusPATRIMONIUM ERC-StG 716375
Epigraphy.info Workshop III – Vienna – 30.05.2019
![Page 2: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/2.jpg)
Some background• Ancient Egyptian epigraphy
– Digital corpus of the so-called ‘Ptolemaic Geographical texts’
![Page 3: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/3.jpg)
Some background• Ancient Egyptian epigraphy
– Digital corpus of the so-called ‘Ptolemaic Geographical texts
– Karnak Cachette (http://www.ifao.egnet.net/bases/cachette/)
XEFEE – XML Editor for ancient Egyptian TextsJava Desktop application
![Page 4: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/4.jpg)
Some background• Ancient Egyptian epigraphy
– Digital corpus of the so-called ‘Ptolemaic Geographical texts
– Karnak Cachette (http://www.ifao.egnet.net/bases/cachette/)XEFEE – XML Editor for ancient Egyptian Texts (Java application)
– Thot Project: metadata for ancient Egyptian resources
![Page 5: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/5.jpg)
• Patrimonium ERC-StG 716375 – Is NOT an epigraphical project per se
– But a multidisciplinary socio-economic study of the properties of the Roman emperors from Octavian/Augustus to Diocletian
– Database will be made of both textual AND archaeological sources
– Ancient texts will be encoded and enriched with metadata (places, people, institutions, economic notions…)
– Use of TEI / EPIDOC
![Page 6: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/6.jpg)
• Patrimonium ERC-StG 716375 As it is NOT an epigraphical project per se…
… we needed a tool to make the encoding of texts easier
Notably when enriching text with metadata
![Page 7: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/7.jpg)
Patrimonium ›› Petrae Editor
• Web application for:• encoding• querying and browsing data• Curation of metadata is done via an integrated thesaurus manager
• Textual AND archaeological data are XML files• ALL in 1 SINGLE database
Application web
XML data, including TEI/EPIDOC files
XqueryXSLT
HTMLCSSJScript
![Page 8: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/8.jpg)
http://exist-db.org/
– A NoSQL (XML native) database & Application platform
– EPIDOC files can be directly created, stored and curated ‘as such’
– ‘library’ approach:• 1 app for you project
• Using a library that is installed beside
![Page 9: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/9.jpg)
http://exist-db.org/
– library contains:• Xquery functions
• JScript
• Css
• Other resources (images, fonts).
– App contains functions to build the HTML page and do things specific to the project• General layout
• CSS
– Data is stored outside the app
DB structure
db/|-apps/
|-ausohnum/| |-modules| | |-teiEditor| | | |-document-editor | | |-skosThesau|-ausohnum-library/|-ausohnumData/
|-concepts|-documents/
![Page 10: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/10.jpg)
A modular platform
EpidocEncoder
GeoModelizer
Prosopo
Biblio
Thesaurus
XML Editor for Epigraphy
Zotero integration
Ancient Space Manager (to create, link, and curate ancient Places)
Prosopographical Manager (to create, link, and curate ancient People)
Thesaurus mangement system
![Page 11: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/11.jpg)
A modular platform
EpidocEncoder
GeoModelizer
Prosopo
Biblio
Thesaurus
State of work
XML Editor for Epigraphy
Zotero integration
Ancient Space Manager (to create, link, and curate ancient Places)
Prosopographical Manager (to create, link, and curate ancient People)
Thesaurus mangement system
![Page 12: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/12.jpg)
Patrimonivm ›› Petrae Editor and the others
Rest of the community
Other projectsfrom Ausonius
PETRAE
• Ifao Workshop
• Epigraphy.info
• …
• Gymnasia
• Thesaurus Ausonius
• New version
![Page 13: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/13.jpg)
CORE PRINCIPLES
![Page 14: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/14.jpg)
Patrimonivm ›› Petrae EditorCore principles
• App writes and reads XML/TEI files
• Front-end interface can be customized to display specific elements of a TEI document
• Editing an element is done through user-friendlyinput fields, dropdown lists or other widgets
• App comes with tools dedicated to text encoding and metadata enrichment
![Page 15: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/15.jpg)
Web application interface
• Data spread over several tabs
![Page 16: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/16.jpg)
Web application interface
• Data spread over several tabs
/TEI/teiHeader/fileDesc/titleStmt/title
/TEI/teiHeader/fileDesc/editionStmt/edition
/TEI/teiHeader/profileDesc/textClass/keywords/term
<term ref="http://ausonius.huma-num.fr/concept/c19396">Marble trade</term>
![Page 17: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/17.jpg)
How elements are displayed?
• Elements are defined in an XML file and called within the editor itself
• Definitions can be cutomized to meet project’s needs
• An element is/can be defined with:
– Nickname
– XPath, i.e. place of the element in the TEI file (/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term/@ref)
– Content type (node only; node and attribute ; attribute)
– Cardinality
– Label
– link to the top-level concept from which concepts will be displayed (if thesaurus is required)
![Page 18: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/18.jpg)
<teiElement><nm>docKeywords</nm><xpath>/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term/@ref</xpath><contentType>textNodeAndAttribute</contentType><cardinality>x</cardinality><formLabel xml:lang="en">Keywords</formLabel><formLabel xml:lang="fr">Mots-clés</formLabel><taxoId/><fieldType>combobox</fieldType><thesauDb>internal</thesauDb><thesauTopConceptURI>http://ausonius.huma-num.fr/concept/c19365</thesauTopConceptURI><attributeValueType>uri</attributeValueType><xpath2ref/><comments/>
</teiElement>
Element details
Function’s call in ‘document-editor.xql’:
{ teiEditor:displayElement('docKeywords', (), (), ()) }
![Page 19: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/19.jpg)
Document-editor.xql
<div class="tab-pane fade in active" id="nav-metadata" role="tabpanel" aria-labelledby="nav-metadata-tab">
{teiEditor:displayElement('docTitle', (), (), ())}{teiEditor:displayElement('editionDesc', (), (), ())}{teiEditor:displayElement('docType', (), (), ())}{teiEditor:principalBibliography()}{teiEditor:displayElement("tmNumber", (), (), ())}
{teiEditor:displayElement("placeOfOrigin", (), (), ())}{teiEditor:displayElement("dateOfOriginNotBefore", (), (), ())}{teiEditor:displayElement("dateOfOriginNotAfter", (), (), ())}
{ teiEditor:displayElement('docKeywords', (), (), ()) }{ teiEditor:displayElement('docGeneralCommentary', (), (), ()) }
</div>
XQuery file in project Web Application- can be customized to meet project’s needs- produces HTML output
![Page 20: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/20.jpg)
INTERFACE
![Page 21: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/21.jpg)
Web application interface
• Data spread over several tabs
![Page 22: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/22.jpg)
Can search and addbibliographical referencesfrom project’s zotero library
/TEI/text/body/div[@type="bibliography"][@subtype="edition"]
![Page 23: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/23.jpg)
![Page 24: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/24.jpg)
![Page 25: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/25.jpg)
/TEI/text/body/div[@type=‘edition’]/div[@type=‘textpart’]
Toolbox for encoding "epigraphical" features (lacuna, restitutions…)
Toolbox for encoding "semantic" metadata (placenames, people, topic indexing…)
![Page 26: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/26.jpg)
![Page 27: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/27.jpg)
Editing data
Input field
Dropdown menu populated with concepts from internalSKOS thesaurus
![Page 28: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/28.jpg)
Editing data
JavaScript Ace Editor to edit text
‘standard’ text (e.g. from a Word file, a HTML page…)
is pasted in the top panel…
…and converted on the flyin TEI/XML/Epidoc
![Page 29: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/29.jpg)
Editing data
JavaScript Ace Editor to edit text HTML preview
Toolbox for encoding "epigraphical" features (lacuna, restitutions…)
Toolbox for encoding "semantic" metadata (placenames, people, topic indexing…)
![Page 30: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/30.jpg)
CREATION OF A DOCUMENT
![Page 31: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/31.jpg)
Creation from template
• Creation of a document is based on a template
• templates are TEI files with minimal TEI/Epidocelements
• Templates are customizable to meet a projectneeds
![Page 32: Patrimonivm ›› Petrae Editor: epidoc encoding made easier · • Patrimonium ERC-StG 716375 –Is NOT an epigraphical project per se –But a multidisciplinary socio-economic](https://reader030.vdocuments.us/reader030/viewer/2022041303/5e13975002da753c0155a614/html5/thumbnails/32.jpg)
Creation from external resource(beta)
• It is planned to make possible direct import from external resources, when XML/TEI files are available
• Implemented for EDH