Try   HackMD

Insee Workshop - ExistDb Training - 23-24/03/2021

Day 1 : 23rd March

Morning : 10:00 to 12:00
Afternoon : 13:00 to 15:00

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Video
https://zoom.us/rec/share/CzZ-4lyJStE3hT8mp8Tpz07spDOqGcTnGyBUsqxeg_4KfNQttb9EKBdV2AOT4n5o.bp844Eu0ay1GROFm
Secret code : Bb5D%qV4


Day 2 : 24th March

Morning : 10:00 to 12:00
Afternoon : 13:00 to 15:00

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Video

https://zoom.us/rec/share/SNtz-xUGl288_z6457e3uyYV-MMRZ0TAuswpTDDsMxBpy1TSeq_014Jr7vwJWkon.xzWcw1G5vqrKgjJA
Secret code : 6x00j$HL


Questions

  • local installation / manipulations

    • difference between launcher.bat and startup.bat ? on Windows (used by developers)

      • launcher.bat recommended , proposes to install existDB as a service (Good pratice!)
    • how to restore a dump of an exist db to explore it on a local instance of existDb ?

  • procedure of installation of an eXist database

  • configuration files, important and default settings

  • recommendations/best practices for settings

  • how to query an eXist database

  • working with Visual Studio Code

    • add existdb plugin
    • XML (redhat) plugin

Workshop

My first xquery

xquery version '3.1';

declare namespace tei='http://www.tei-c.org/ns/1.0';

/tei:TEI/tei:text/tei:body/tei:div/tei:head,

count(/tei:TEI),


//tei:div/tei:sp[tei:speaker ='Hamlet'],

count(//tei:sp[tei:speaker ='Hamlet'])

doc('/db/apps/shakespeare/data/ham.xml')

collection('/db/apps/shakespeare/data')/tei:TEI

XQuery Exercices 1

xquery version "3.1";

declare namespace tei="http://www.tei-c.org/ns/1.0";

collection("/db/apps/shakespeare/data")

eXist-db vscode

Configuration file .existdb.json:

{
    "servers": {
        "localhost": {
            "server": "http://localhost:8080/exist",
            "user": "admin",
            "password": ""
        }
    },
    "sync": {
        "server": "localhost",
        "root": "/db/apps/insee-workshop",
        "active": true,
        "ignore": [
            ".existdb.json",
            ".git/**",
            "build/**",
            ".idea",
            ".vscode"
        ]
    }
}

XAR Files

eXistdb Configuration

Monitoring

Testing

Visual Studio Code Editor

Implementation Example