Skip to content

Commit

Permalink
updated to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdmeest committed May 11, 2021
1 parent 7c35b2f commit f1dec75
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 RDF Mapping Language (RML)
Copyright (c) 2019-present RDF Mapping Language (RML)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ Generate RDF from YARRRML in one step.

To build a container named `yarrrmlmapper`:

```
```shell
docker build -t yarrrmlmapper docker
```

## Example
## Example

To run the advanced example from http://rml.io/yarrrml/matey/:

```
docker run --rm --name yarrrmlmappertest -v "$(pwd)/example":/home/rmluser/data yarrrmlmapper mappings.yarrrml.yml --serialization turtle
```shell
docker run --rm --name yarrrmlmapper -v "$(pwd)/example":/home/rmluser/data yarrrmlmapper mappings.yarrrml.yml --serialization turtle
```

## General run instructions

```
```shell
docker run --rm \
--name <container name> \
-v <directory of mapping file and optionally data files>:/home/rmluser/data \
Expand All @@ -31,3 +31,8 @@ docker run --rm \
* If an output file is specified for the RMLMapper (`--outputfile`), it will be written in the mounted directory given with the `-v` option.
* If the mapping file refers to input files, these input files need to be somewhere in the mounted directory.
Other directories are not accessible for the container.

## License

This code is copyrighted by [Ghent University – imec](http://idlab.ugent.be/)
and released under the [MIT license](http://opensource.org/licenses/MIT).
14 changes: 9 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# YARRRML + RMLMapper

FROM openjdk:8-jre-alpine
FROM adoptopenjdk:8-jre-hotspot-bionic

RUN apk --no-cache add python2 make g++ npm \
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
nodejs
# change group id to group that has permissions to read input and write result!
&& addgroup -S -g 1000 rmluser \
RUN groupadd --system -g 1000 rmluser \
# Change user id (-u) to user that has permissions to read input and write result!
&& adduser -S -s /bin/bash -G rmluser -u 1000 rmluser
&& useradd --system -s /bin/bash -g rmluser -u 1000 rmluser

USER rmluser:rmluser
WORKDIR /home/rmluser

RUN wget -O rmlmapper.jar https://github.com/RMLio/rmlmapper-java/releases/download/v4.3.3/rmlmapper-4.3.3-r92.jar \
RUN curl -L https://github.com/RMLio/rmlmapper-java/releases/download/v4.10.0/rmlmapper-4.10.0.jar > rmlmapper.jar \
&& npm install @rmlio/yarrrml-parser \
&& mkdir data

Expand Down

0 comments on commit f1dec75

Please sign in to comment.