Wicri:PaulMeyerV1 : Différence entre versions

De Wicri Chanson de Roland
(Génération des FTP)
(Transfert vers la machine LorExplor)
Ligne 167 : Ligne 167 :
 
scp Data.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new
 
scp Data.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new
 
scp ImportMetadata.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new
 
scp ImportMetadata.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new
 +
</source>

Version du 23 novembre 2021 à 00:18

Cette page introduit les aspects techniques de la version PaulMeyerV1 du « Serveur d'exploration Paul Meyer ».

Voir aussi :

Mise en œuvre

Sur la machine de développement

Initialisations

Génération des pages wikis
source IstexGetCorpusSize -q ""Paul Meyer""
 IstexGenerAreaPages \
       -a PaulMeyerV1   \
       -m   \
       -g PaulMeyer   \
         -x1   \
       -p Europe/ChansonRoland   \
       -w wic-chan.rol.fr  \
       -W Europe/ChansonRoland   \
       -s PascalFrancis   \
       -s Hal   \
       -z France   \
       -z Allemagne   \
       -q '"Paul Meyer"'   \
       -t "Serveur d'exploration Paul Meyer"
Définition $EXPLOR_AREA
EXPLOR_AREA=$WICRI_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1
export EXPLOR_AREA
export LC_ALL='C'
Création des répertoires
mkdir $WICRI_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage
mkdir $EXPLOR_AREA
mkdir $EXPLOR_AREA/Import

Sur la machine Demo.Istex

newgrp wicri
source /applis/Dilib/init.sh
Définition $EXPLOR_AREA
EXPLOR_AREA=$WICRI_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1
export EXPLOR_AREA
export LC_ALL='C'
Création des répertoires
mkdir $WICRI_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage
cd $WICRI_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage
mkdir PaulMeyerV1.corpus
mkdir PaulMeyerV1.corpus/Import
mkdir PaulMeyerV1.20211122
ln -s PaulMeyerV1.20211122 PaulMeyerV1
ln -s PaulMeyerV1.20211122 PaulMeyerV1.new

Construction du Repository ISTEX

cd PaulMeyerV1.corpus/Import

En cas de reprise au niveau du téléchargement

rm -rf Import/IstexRepository.h*
IstexGetCorpus -q '"Paul Meyer"' -s 2000    -l          \
     | IstexGetCorpusById -A  \
     | SxmlUnIndent                           \
     | HfdBuild -bh   Import/IstexRepository

Vérification

HfdCat  Import/IstexRepository.hfd | wc

Préparation au transfert

tar -cvf Import.tar Import
gzip Import.tar

Retour vers la machine de développement

Transfert par scp

scp $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.corpus/Import.tar.gz .
gunzip Import.tar.gz
tar -xvf Import.tar

Construction des métadonnées ISTEX

ISTEX, création du HFD Corpus Biblio
En cas de reprise:
rm -rf $EXPLOR_AREA/Import/IstexMetadata.h*
Construction corpus biblio
HfdCat $EXPLOR_AREA/Import/IstexRepository.hfd   \
  | SgmlFast -c1                                 \
  | IstexToTei                                   \
  | IstexCleanFullText                           \
  | TeiPutRefToIdno -t wicri:Area/Istex/Corpus  -c ISTEX -s Corpus -S Istex \
  | HfdBuild -h $EXPLOR_AREA/Import/IstexMetadata

Téléchargement des autres corpus

PascalFrancis

Site :http://stan2.demo.inist.fr/fr/

Requête :

Télécharger avec les onglets : Serveur / SGML / SGML / LF

  • résultat dans $EXPLOR_AREA/Import
 mv $EXPLOR_AREA/Import/corpus.txt $EXPLOR_AREA/Import/inistServer.txt 

Télécharger avec les onglets : SGML / SGML / SGML / LF

  • résultat dans $EXPLOR_AREA/Import
 mv $EXPLOR_AREA/Import/corpus.txt $EXPLOR_AREA/Import/inistStandard.txt 
Hal

Sur : https://hal.archives-ouvertes.fr/

Génération de la plateforme

Importation des paramètres de génération
WicriGetPage -l wic-chan.rol.fr -p "Wicri:PaulMeyerV1/Paramètres, data"\
      > $EXPLOR_AREA/Import/WicriAreaParam.data.wiki

Si reprise

sh $EXPLOR_AREA/bin/AreaReset.sh
ExplorAreaDataCreate -d $EXPLOR_AREA
make -f $EXPLOR_AREA/bin/area.mk
Importation des paramètres de navigation
WicriGetPage -l wic-chan.rol.fr -p "Wicri:PaulMeyerV1/Paramètres, fr"\
      > $EXPLOR_AREA/Import/WicriAreaSiteParam.fr.wiki
Génération de l'interface 
sh $EXPLOR_AREA/bin/AreaCreateSite.fr.sh

Génération des FTP

cd $EXPLOR_AREA
rm Site.tar.gz 
tar -cvf Site.tar Site 
gzip Site.tar 
rm Data.tar.gz 
tar -cvf Data.tar Data 
gzip Data.tar 

rm ImportMetadata.tar.gz
tar -cvf ImportMetadata.tar Import/istexMetadata.hcs Import/istexMetadata.hfd
gzip ImportMetadata.tar

Transfert vers la machine LorExplor

scp Site.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new
scp Data.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new
scp ImportMetadata.tar.gz $ISTEX_SCP:$WICRI_TARGET_ROOT/Europe/ChansonRoland/explor/PaulMeyer.storage/PaulMeyerV1.new