Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

StepsDescription

a) Setup "applicationSetup.n3" for the use of TDB for data persistence.

For this step, just rename the file example.tdb.applicationSetup.n3 by applicationSetup.n3


Image Modified

b) Setup runtime.propeties for configuring the VIVO runtimes attributes

  1. For this step, just rename the file uqam-dev.runtime.properties by runtime.properties
  2. Adjusting the value of each property to your needs



Bloc de code
RDFService.languageFilter = true
languages.selectableLocales = fr_CA, en_CA, en_US

rootUser.emailAddress = vivo@uqam.ca
rootUser.passwordChangeRequired = false
rootUser.password = Vivo2435....


...

2.1 Select the Git perspective

2.2 Click on Clone Git repository

2.3 Provide the repository URI :

https://github.com/UQAM-VIVOSB/Vivo-installer-i18n.git

and click Next

2.4

Select both the master and feature/i18n_en_CA branches, and click Next
Avertissement
The feature/i18n_en_CA branch must be used for now, but will eventually be merged in master.

Image Removed

2.5 Make sure the proper path to the Git directory is provided (Ex.: if your UQAM_DEV variable equal C:\UQAM_DEV

2.6 Click Finish to add the repository to UQAM-DEV.

2.7 5 Repeat steps 2.1 through 2.6 4 using the following repositories URI:

https://github.com/vivo-project/Vitro.git

https://github.com/vivo-project/VIVO.git

https://github.com/vivo-project/Vitro-languages.git

https://github.com/vivo-project/VIVO-languages


Note: for developement purposes, you would have to clone VIVO repositories in your own GitHub account and clone those URI instead.


Avertissement

Make sure to select the appropriate branch !

For the current i18n initiative, the working branch is sprint-i18n.


2.8 6 When all the repositories are cloned, your Git perspective should look like this:

Image RemovedImage Added

...

3. Importing VIVO code into the UQAM-DEV workspace

3.1 In the menu File, select Import

3.2 Select Maven > Existing Maven Projects, and click next

Image Modified

3.3 Provide the path to the Git repository, and click Finish

Image RemovedImage Added

3.4 Selecting the Java perspective, this is how your Project Explorer should look after the importation

Image Modified

...

4. Setupping, Compiling

...

and Running VIVO

4.1 Setupping

StepsDescription

1) Editing appropriate setup xml files:

  • Choosing the Resource Perspective
  • Select the 'setting???xml' file specific to your environment
  • Assign the right value to the attributes: vivo-dir and tomcat-dir

Image Added

2) Configuring the runner

In A) In the Java perspective, scroll down the 'Run' menu and select 'Run Configurations...'.

In B), select the 'Maven Build' vivo-project-i18n-INSTALL. In the 'Goals' field, replace the file name 'settings???xml' by the name you have used in 1)

A)

Image Added

B)

Image Added



4.2 Compiling and Running VIVO

StepsDescription


Avertissement

Temporary steps pending merge of feature/i18n_en_CA in the master branch.

4.0.1 1-a) In the Git perspective, right-click on the repository Vivo-installer-i18n

4.0.2 1-b) In the contextual menu, select Switch to

4.0.3 1-c) Then select the feature/i18n_en_CA branch.


Avertissement

Temporary steps pending merge of feature/i18n_en_CA in the master branch.


4.0.4 2-a) In the Java perspective, right-click on vivo-installer-home-i18n

4.0.5 2-b) Select Maven

4.0.6 2-c) Select Update Project...


Avertissement

Temporary steps pending merge of feature/i18n_en_CA in the master branch.

4.0.7 Make sure vivo-installer-home-i18n is checked, then click OK.


Info
Steps 4.0. 1 through 4.0.7 ) through 3) must be performed prior to compiling whenever a Git repository was switched to a different branch.


4.1 ) In the Java perspective, select vivo-project-i18n INSTALL

4.2 5) The Console tab will display the Maven stack trace.

4.3 6) Once Maven has compiled the build with success, start Solr.

Image Removed

Image Added

7)

4.4

When first starting Solr, you might have to authorize its execution through the Firewall. Choose the parameters you deem adequate, and click Authorize.


Avertissement

Appears under Windows


4.5 8) Solr is running.

4.6 9) Then, start Tomcat.

Image Removed

Image Added

10) 4.7 Tomcat will launch from another window.

Upon success, the server will display the following message:

INFOS [main] org.apache.catalina.startup.Catalina.start Server startup in xxxxx ms

Avertissement

This new window has to stay open for Tomcat to run.

Closing the window is actually the method used to shut down the server.


4.8 VIVO will be available at http://localhost:8080/vivo/

It may take some time for the initial page to load, as VIVO will be building its database.


Avertissement
When first loading, VIVO will issue a FreemarkerEmailFactory$Setup warning. Ignore it and click on Continue.


4.9 

11)  Enter the following credentials to access VIVO in administrator mode:

  • UserName: vivo@uqam.ca
  • Password: rootPassword


Avertissement

Corresponds to the values entered in the runtime.properties file.



5. Loading a fr_CA sample dataset

...

5.1 Follow this link to download the dataset on your computer : sample-data-fr_localhost-vivo.ttl


5.2 In VIVO, log in as administrator (see point 3.9 above) and click on Site Admin.

5,3 Click on Add / Remove RDF data

5.4 Upload the dataset downloaded on step 4.1

5.5 Select Add mixed RDF

5.6 Select Turtle format

5.7 Check create classgroups automatically

5.8 Submit

5.9 VIVO might take some time to populate the triplestore.


Appendix