-
Notifications
You must be signed in to change notification settings - Fork 2
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.
- Prerequisites: You need to have maven and a JDK for Java 11 installed.
- Clone the repository to a local folder using
git clone https://github.com/vivo-community/generate2vivo.git
- Change into the folder where the repository has been cloned.
- 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. - 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
- A minimal swagger-ui will be available at
http://localhost:9000/swagger-ui/
.
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.