Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
« Import-export de thesaurus dans ThesX » : différence entre les versions
Aucun résumé des modifications |
|||
| Ligne 15 : | Ligne 15 : | ||
<syntaxhighlight lang="bash">bash /home/ajlsm/production/exist-db-2.1/src/bin/startup.sh</syntaxhighlight> | <syntaxhighlight lang="bash">bash /home/ajlsm/production/exist-db-2.1/src/bin/startup.sh</syntaxhighlight> | ||
<ref>Exemple de réponse dans le prompt</ref> | <ref>Exemple de réponse dans le prompt</ref> | ||
==== Arrêt eXist ==== | |||
<syntaxhighlight lang="bash">bash /chemin/vers/exist/src/bin/shutdown.sh -u admin -p MOT-DE-PASSE -l xmldb:exist://localhost:[port]/exist/xmlrpc</syntaxhighlight> | |||
Par exemple : | |||
<syntaxhighlight lang="bash">bash /home/ajlsm/production/exist-db-2.1/src/bin/shutdown.sh -u admin -p MOT-DE-PASSE -l xmldb:exist://localhost:18004/exist/xmlrpc</syntaxhighlight> | |||
=== Commandes ThesX === | |||
==== Lister les thesaurus utilisés ==== | |||
<syntaxhighlight lang="bash">curl -sS -u admin:MOT-DE-PASSE -H "Accept: application/xml" -L -D - http://127.0.0.1:(port)/exist/rest/db/thesx</syntaxhighlight> | |||
Par exemple : | |||
<syntaxhighlight lang="bash">curl -sS -u admin:MOT-DE-PASSE -H "Accept: application/xml" -L -D - http://127.0.0.1:18004/exist/rest/db/thesx</syntaxhighlight> | |||
---- | |||
== Références == | == Références == | ||
Réponse dans le prompt : | Réponse dans le prompt : | ||
| Ligne 45 : | Ligne 57 : | ||
20 janv. 2026 14:38:13,737 [main] INFO (JettyStart.java [run]:234) - '/exist' | 20 janv. 2026 14:38:13,737 [main] INFO (JettyStart.java [run]:234) - '/exist' | ||
20 janv. 2026 14:38:13,737 [main] INFO (JettyStart.java [run]:272) - ----------------------------------------------------- </syntaxhighlight> <references/> | 20 janv. 2026 14:38:13,737 [main] INFO (JettyStart.java [run]:272) - ----------------------------------------------------- </syntaxhighlight> <references/> | ||
Version du 21 janvier 2026 à 07:53
Introduction
ThesX n'est plus accessible depuis son interface depuis longtemps car il n'a pas été mis à jour. Seule la page de login est accessible. Mais, une fois logué, l'interface de ThesX renvoie des erreurs et n'est pas utilisable. Il n'est donc plus possible de créer, d'éditer ou de modifier un thesaurus depuis l'interface WEB.
Cependant, après le démarrage de eXist et le paramétrage du pleade/module-thesaurus, l'intégration et l'utilisation de thesaurus dans les formulaires de recherche de Pleade fonctionnent toujours.
Enfin, il est possible de faire plusieurs opérations, comme exporter, supprimer ou importer un thesaurus dans thesX, sans passer par l'interface, uniquement en ligne de commande. Cette courte documentation décrit ces opérations.
Commandes utiles
Les commandes suivantes sont lancées sur le serveur où est installé eXist et suppose que le module-thesaurus est installé et paramétré.
Lancement/Arrêt de eXist
Habituellement, ces commandes sont lancées depuis un cron.
Démarrage eXist
bash /chemin/vers/exist/src/bin/startup.sh
Par exemple :
bash /home/ajlsm/production/exist-db-2.1/src/bin/startup.sh
<ref>Exemple de réponse dans le prompt</ref>
Arrêt eXist
bash /chemin/vers/exist/src/bin/shutdown.sh -u admin -p MOT-DE-PASSE -l xmldb:exist://localhost:[port]/exist/xmlrpc
Par exemple :
bash /home/ajlsm/production/exist-db-2.1/src/bin/shutdown.sh -u admin -p MOT-DE-PASSE -l xmldb:exist://localhost:18004/exist/xmlrpc
Commandes ThesX
Lister les thesaurus utilisés
curl -sS -u admin:MOT-DE-PASSE -H "Accept: application/xml" -L -D - http://127.0.0.1:(port)/exist/rest/db/thesx
Par exemple :
curl -sS -u admin:MOT-DE-PASSE -H "Accept: application/xml" -L -D - http://127.0.0.1:18004/exist/rest/db/thesx
Références
Réponse dans le prompt :
20 janv. 2026 14:38:10,904 [main] INFO (JettyStart.java [run]:117) - Configuring eXist from /home/ajlsm/production/exist-db-2.1/src/conf.xml
20 janv. 2026 14:38:10,905 [main] INFO (JettyStart.java [run]:119) - Running with Java 1.8.0_422 [Private Build (OpenJDK 64-Bit Server VM) in /usr/lib/jvm/java-8-openjdk-amd64/jre]
20 janv. 2026 14:38:10,905 [main] INFO (JettyStart.java [run]:125) - Running as user 'ajlsm'
20 janv. 2026 14:38:10,921 [main] INFO (JettyStart.java [run]:128) - [eXist Version : 2.1]
20 janv. 2026 14:38:10,922 [main] INFO (JettyStart.java [run]:130) - [eXist Build : 20130717]
20 janv. 2026 14:38:10,922 [main] INFO (JettyStart.java [run]:132) - [eXist Home : unknown]
20 janv. 2026 14:38:10,922 [main] INFO (JettyStart.java [run]:134) - [SVN Revision : 18721]
20 janv. 2026 14:38:10,922 [main] INFO (JettyStart.java [run]:137) - [Operating System : Linux 5.4.0-198-generic amd64]
20 janv. 2026 14:38:10,922 [main] INFO (JettyStart.java [run]:142) - [jetty.home : /home/ajlsm/production/exist-db-2.1/src/tools/jetty]
20 janv. 2026 14:38:10,922 [main] INFO (JettyStart.java [run]:144) - [log4j.configuration : file:/home/ajlsm/production/exist-db-2.1/src/log4j.xml]
janv. 20, 2026 2:38:11 PM org.expath.pkg.repo.util.Logger info
INFOS: Create a new repository with storage: File system storage in /home/ajlsm/production/exist-db-2.1/datadir/expathrepo
20 janv. 2026 14:38:12,368 [main] INFO (JettyStart.java [lifeCycleStarting]:404) - Jetty server starting...
20 janv. 2026 14:38:12,371 [main] INFO (Server.java [doStart]:270) - jetty-8.1.9.v20130131
Logging already initialized. Skipping...
20 janv. 2026 14:38:13,467 [main] INFO (NCSARequestLog.java [doStart]:649) - Opened /home/ajlsm/production/exist-db-2.1/src/tools/jetty/logs/2026_01_20.request.log
20 janv. 2026 14:38:13,473 [main] INFO (ScanningAppProvider.java [doStart]:113) - Deployment monitor /home/ajlsm/production/exist-db-2.1/src/tools/jetty/contexts at interval 10
20 janv. 2026 14:38:13,476 [main] INFO (ScanningAppProvider.java [doStart]:113) - Deployment monitor /home/ajlsm/production/exist-db-2.1/src/tools/jetty/webapps at interval 10
20 janv. 2026 14:38:13,479 [main] INFO (DeploymentManager.java [addApp]:132) - Deployable added: /home/ajlsm/production/exist-db-2.1/src/tools/jetty/webapps/homepage
20 janv. 2026 14:38:13,571 [main] INFO (DeploymentManager.java [addApp]:132) - Deployable added: /home/ajlsm/production/exist-db-2.1/src/tools/jetty/webapps/portal
20 janv. 2026 14:38:13,630 [main] INFO (AbstractConnector.java [doStart]:338) - Started SelectChannelConnector@0.0.0.0:18004
20 janv. 2026 14:38:13,734 [main] INFO (SslContextFactory.java [doStart]:300) - Enabled Protocols [TLSv1.3, TLSv1.2] of [TLSv1.3, TLSv1.2, TLSv1.1, TLSv1, SSLv3, SSLv2Hello]
20 janv. 2026 14:38:13,735 [main] INFO (AbstractConnector.java [doStart]:338) - Started SslSelectChannelConnector@0.0.0.0:18005
20 janv. 2026 14:38:13,735 [main] INFO (JettyStart.java [lifeCycleStarted]:410) - Jetty server started.
20 janv. 2026 14:38:13,736 [main] INFO (JettyStart.java [run]:224) - -----------------------------------------------------
20 janv. 2026 14:38:13,736 [main] INFO (JettyStart.java [run]:225) - Server has started on ports 18004 18005. Configured contexts:
20 janv. 2026 14:38:13,737 [main] INFO (JettyStart.java [run]:234) - '/exist'
20 janv. 2026 14:38:13,737 [main] INFO (JettyStart.java [run]:272) - -----------------------------------------------------
<references/>