...
| Action |
---|
start compilingBefore starting the compilation make sure you have correctly configured the settings_i18n_linux.xml file as described above. The -DskipTests option is optional.
Info |
---|
Make sure that the war file is installed in the appropriate tomcat directory. |
Observe lines 9, 21 and 30 which indicate that the new language is included in the installation process. |
Code Block |
---|
| cd $GIT_HOME/Vivo-installer-i18n
mvn -s settings_i18n_linux.xml -DskipTests=true clean install |
At the end you should see a compilation end looking like this:
Code Block |
---|
language | bash |
---|
title | Result |
---|
linenumbers | true |
---|
| [INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for VIVO Installer for i18n 1.11.2-SNAPSHOT:
[INFO]
[INFO] Vitro Home ......................................... SUCCESS [ 3.782 s]
[INFO] VIVO Home .......................................... SUCCESS [ 1.523 s]
[INFO] VIVO Languages for Home en_US ...................... SUCCESS [ 0.345 s]
[INFO] VIVO Languages for Home de_DE ...................... SUCCESS [ 0.042 s]
[INFO] VIVO Languages for Home es ......................... SUCCESS [ 0.025 s]
[INFO] VIVO Languages for Home fr_CA ...................... SUCCESS [ 0.020 s]
[INFO] VIVO Languages for Home pt_BR ...................... SUCCESS [ 0.025 s]
[INFO] VIVO Languages for Home en_CA ...................... SUCCESS [ 0.023 s]
[INFO] VIVO Languages for Home CORE ....................... SUCCESS [ 0.116 s]
[INFO] VIVO Installer for i18n ............................ SUCCESS [ 0.185 s]
[INFO] Vitro Install Home for i18n ........................ SUCCESS [ 1.921 s]
[INFO] Vitro Dependencies ................................. SUCCESS [ 0.553 s]
[INFO] Vitro API .......................................... SUCCESS [ 47.060 s]
[INFO] Vitro Web App ...................................... SUCCESS [ 1.268 s]
[INFO] Vitro Languages for Web App en_US .................. SUCCESS [ 0.369 s]
[INFO] Vitro Languages for Web App de_DE .................. SUCCESS [ 0.055 s]
[INFO] Vitro Languages for Web App es ..................... SUCCESS [ 0.055 s]
[INFO] Vitro Languages for Web App fr_CA .................. SUCCESS [ 0.040 s]
[INFO] Vitro Languages for Web App pt_BR .................. SUCCESS [ 0.048 s]
[INFO] Vitro Languages for Web App en_CA .................. SUCCESS [ 0.053 s]
[INFO] Vitro Languages for Web App CORE ................... SUCCESS [ 0.136 s]
[INFO] VIVO API ........................................... SUCCESS [ 16.578 s]
[INFO] VIVO Web App ....................................... SUCCESS [ 1.399 s]
[INFO] VIVO Languages for Web App en_US ................... SUCCESS [ 0.034 s]
[INFO] VIVO Languages for Web App de_DE ................... SUCCESS [ 0.058 s]
[INFO] VIVO Languages for Web App es ...................... SUCCESS [ 0.046 s]
[INFO] VIVO Languages for Web App fr_CA ................... SUCCESS [ 0.034 s]
[INFO] VIVO Languages for Web App pt_BR ................... SUCCESS [ 0.043 s]
[INFO] VIVO Languages for Web App en_CA ................... SUCCESS [ 0.038 s]
[INFO] VIVO Languages for Web App CORE .................... SUCCESS [ 0.096 s]
[INFO] VIVO WebApp Install dependencies for i18n .......... SUCCESS [ 0.004 s]
[INFO] VIVO Install Web App for i18n ...................... SUCCESS [ 4.458 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:21 min
[INFO] Finished at: 2020-10-30T06:44:16-07:00
[INFO] ------------------------------------------------------------------------ |
|
...
The value of the fields displayed in the different menus is stored in the file classgroups_LINGUISTIC_CONTEXT.ttl and propertygroups_LINGUISTIC_CONTEXT.ttl contained in the directory: VIVO-languages/LINGUISTIC_CONTEXT/home/src/main/resources/rdf/applicationMetadata/firsttime
Step | Action |
---|
Adding the file VIVO-languages/fr_CA/home/src/main/resources/rdf/applicationMetadata/firsttime/classgroups_fr_CA.ttl |
Code Block |
---|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
@prefix vivo: <http://vivoweb.org/ontology#> .
|
|
.vivo:vitroClassGroupactivities |
|
rdfs:label "Activités"@fr-CA .
vivo:vitroClassGroupcourses |
|
rdfs:label "Cours"@fr-CA .
vivo:vitroClassGroupequipment |
|
rdfs:label "Équipement"@fr-CA .
vivo:vitroClassGroupevents |
|
rdfs:label "Événements"@fr-CA .
vivo:vitroClassGrouplocations |
|
rdfs:label "Lieux"@fr-CA .
vivo:vitroClassGrouporganizations |
|
rdfs:label "Organisations"@fr-CA .
vivo:vitroClassGrouppeople |
|
rdfs:label "Personnes"@fr-CA .
vivo:vitroClassGrouppublications |
|
rdfs:label "Recherche"@fr-CA . |
|
Adding the file VIVO-languages/fr_CA/home/src/main/resources/rdf/applicationMetadata/firsttime/propertygroups_fr_CA.ttl |
Code Block |
---|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vivo: <http://vivoweb.org/ontology#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
vivo:vitroPropertyGroupaddress |
|
rdfs:label "Coordonnées"@fr-CA .
vivo:vitroPropertyGroupaffiliation |
|
rdfs:label "Affiliations"@fr-CA .
vivo:vitroPropertyGroupbibliographic |
|
rdfs:label "Publications"@fr-CA .
vivo:vitroPropertyGroupbibliographiconline |
|
rdfs:label "Documents associés"@fr-CA .
vivo:vitroPropertyGroupbibmapping |
|
rdfs:label "Mappage bibliographique"@fr-CA .
vivo:vitroPropertyGroupbibobscure |
|
rdfs:label "Infos supplémentaires sur le document"@fr-CA .
vivo:vitroPropertyGroupbiography |
|
rdfs:label "Expérience"@fr-CA .
vivo:vitroPropertyGroupidentifiers |
|
rdfs:label "Identifiants"@fr-CA .
vivo:vitroPropertyGrouplinks |
|
rdfs:label "Liens"@fr-CA .
vivo:vitroPropertyGrouplocation |
|
rdfs:label "Lieu"@fr-CA .
vivo:vitroPropertyGroupmapping |
|
rdfs:label "Mappage"@fr-CA .
vivo:vitroPropertyGroupoutreach |
|
rdfs:label "Services"@fr-CA .
vivo:vitroPropertyGroupoverview |
|
rdfs:label "Aperçu"@fr-CA .
vivo:vitroPropertyGroupresearch |
|
rdfs:label "Recherche"@fr-CA .
vivo:vitroPropertyGroupteaching |
|
rdfs:label "Enseignement"@fr-CA .
vivo:vitroPropertyGrouptime |
|
rdfs:label "Temps"@fr-CA . |
|
Step 5) If necessary reset the various VIVO's indexes and databases
The addition of ontologies for managing menus and menus brings profound changes to the core content of VIVO data. For the success of this iteration, it is necessary to reinitialize the content of the VIVO triplestore. To do this it is necessary to delete the directories rdf, tdbContentModels, tdbModels contained in vivo/home:
Step | Action |
---|
Stoping tomcat |
Code Block |
---|
${CATALINA_HOME}/bin/cmd.sh stop |
|
Removing directories |
Code Block |
---|
cd $VIVO_HOME
rm -r rdf
rm -r tdbContentModels
rm -r tdbModels |
|
Step 1) Compile and deploye a new/corrected instance of VIVO and start it
Step | Action |
---|
Compiling VIVO |
Code Block |
---|
| cd $GIT_HOME/Vivo-installer-i18n
mvn -s settings_i18n_linux.xml -DskipTests=true clean install |
|
Populating VIVO with Sample-Data and restart Tomcat |
Code Block |
---|
cp $GIT_HOME/sample-data/i18n/sample-data* $VIVO_HOME/rdf/abox/filegraph/
${CATALINA_HOME}/bin/cmd.sh start |
|
Step 2) Running VIVO for testing and/or finding an i18n problem
...