Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 4.77 KB

README.md

File metadata and controls

73 lines (52 loc) · 4.77 KB

LdesMemberSeeder4J

Purpose of this application

As part of the development of the LdesServer4J by the VSDS team, we have to test our server from time to time by seeding it with (a lot of) LDES members. Therefore, this application has been developed, which makes the seeding simpler and more customizable.

How to run

Configuration properties

This application is very customizable via the following properties.

Note

All the properties are prefixed by member-seeder

Property Description Required Default Example Supported values
member-template File name or path to the template to use for seeding the members true NA example-member.ttl Relative and absolute file paths
boundaries.inclusive-start Inclusive start where the seeder can start, this will be used in the id or subject of a member. This property can come in handy when the application is ran multiple times after each other false 0 100 Integer value
boundaries.exclusive-end Exclusive end where the seeder must stop seeding members false 10000 2000 Integer value
ldes-server.host Host where the LDES server is running false http://localhost:8080 http://localhost:8080 HTTP and HTTPS URLs
ldes-server.collection Name of the event stream collection that is running on the LDES server true NA event-stream String
ldes-server.rdf-format Format in which the member must be sent to the LDES server false application/n-quads text/turtle Any type supported by Apache Jena
state-object-seeding.enabled Flag that indicates whether state objects or version object must be used false false true Boolean value
state-object-seeding.number-of-members Number of state members that will be sent in batch to the LDES server false 10 25 Integer value

Example config

member-seeder:
  member-template: examples/simple-state-object.nq
  ldes-server:
    collection: event-stream
  boundaries:
    inclusive-start: 0
    exclusive-end: 10000
  state-object-seeding:
    enabled: true
    number-of-members: 100

Docker

Currently, there is no Docker image available yet.

Run locally via Maven

Requirements:

  • Java 21

If the project is not pulled on your system yet: execute:

git clone https://github.com/jobulcke/LdesMemberSeeder4J.git
cd ./LdesMemberSeeder4J

To run the application: execute the following command

./mvnw spring-boot:run

Credits

A special thank-you goes here to Wouter Lefever, who wrote the very first version of this application, where most of this code is based on.