Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Mar 22, 2024
1 parent 1c4500d commit 86d43d7
Show file tree
Hide file tree
Showing 7 changed files with 396 additions and 8 deletions.
5 changes: 4 additions & 1 deletion conversions/shacl2shex/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM sbtscala/scala-sbt:eclipse-temurin-17.0.4_1.7.1_3.2.0




RUN git clone --depth 1 --branch v0.2.2 https://github.com/weso/shaclex
WORKDIR /root/shaclex
COPY ./patch.scala ./modules/converter/src/main/scala/es/weso/shacl/converter/Shacl2ShEx.scala
RUN sbt compile
CMD [ "sbt", "run --schema /shape.ttl \
--schemaFormat Turtle \
Expand Down
2 changes: 1 addition & 1 deletion conversions/shacl2shex/convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ docker create --name shacl2shex shacl2shex
for file in ./shapes/*.ttl; do
filename=$(basename "$file")
filename="${filename%.*}"
docker run -v "$file":/"$filename".ttl shacl2shex > ./shapes/"$filename".shex
docker run -v "$file":/shape.ttl shacl2shex > ./shapes/"$filename".shex
sed -i '1,22d;$d' ./shapes/"$filename".shex
sed -i 's/^.\{7\}//' ./shapes/"$filename".shex
done
Expand Down
Loading

0 comments on commit 86d43d7

Please sign in to comment.