Skip to content

install & run

Sandra Mierz edited this page Nov 5, 2021 · 3 revisions

You may run generate2vivo directly on your machine, via docker or alternatively execute only the queries using the sparql-generate command line tool.

Installation

  1. Prerequisites: You need to have maven and a JDK for Java 11 installed.
  2. Clone the repository to a local folder using git clone https://github.com/vivo-community/generate2vivo.git
  3. Change into the folder where the repository has been cloned.
  4. Open src/main/resources/application.properties and change your VIVO details accordingly. If you don't provide a vivo.url, vivo.email or vivo.password, the application will not import the mapped data to VIVO but return the triples in format JSON-LD.
  5. Run the application:
  • You can run the application directly via mvn spring-boot:run.
  • Or alternatively you can run the application in Docker:
    mvn spring-boot:build-image
    docker run -p 9000:9000 generate2vivo:latest
  1. A minimal swagger-ui will be available at http://localhost:9000/swagger-ui/.

Run in Command Line

Alternatively you can run the queries from the command line using the sparql-generate executable JAR-file (see link below).
Each query is placed in a subfolder of src/main/resources/sparqlg and comes with a sparql-generate-conf.json. Its structure and use are explained in detail on the sparql-generate website.