A service that watches a directory for newly appearing RDF-dumps (.ttl or .nt) and imports those into the database. Uses sudo-headers and imports in batches, so it can be used through mu-authorization.
The service can be configured through the following environment variables:
GRAPH: graph to write to, by default http://mu.semte.ch/applicationBATCH_SIZE: Amount of triples imported in each insert statement. Particularly important when querying through mu-authorization. Defaults to 100.IMPORT_DIR: path to monitor, by default /data/importsMU_SPARQL_ENDPOINT): SPARQL endpoint to use (default provided by mu-javascript-template) ttl-import:
build: https://github.com/kanselarij-vlaanderen/ttl-import-service.git
volumes:
- "./data/my-import-folder:/data/imports"
environment:
GRAPH: "http://mu.semte.ch/graphs/staatsblad"
I want the files that are already present in the
IMPORT_DIRat startup to be imported. Can this service do that for me?
No. This service is scoped to monitoring for newly appearing files. A one-time import can easily be accomplished through the mu-migrations-service.
Other services that have inspired this one, or have a slightly different take on importing data are:
Content type
Image
Digest
sha256:d12e78211…
Size
75.3 MB
Last updated
about 12 hours ago
docker pull kanselarij/ttl-import-service:feature-node26