diff --git a/distillery/resources/compose/barrel/Dockerfile b/distillery/resources/compose/barrel/Dockerfile index 91b5afe..b6b8216 100644 --- a/distillery/resources/compose/barrel/Dockerfile +++ b/distillery/resources/compose/barrel/Dockerfile @@ -70,6 +70,7 @@ RUN rm /etc/apache2/sites-available/*.conf && \ rm /etc/apache2/sites-enabled/*.conf ADD patch/easyrdf.patch /patch/easyrdf.patch +ADD patch/triples.patch /patch/triples.patch # Add wisski configuration ADD conf/ports.conf /etc/apache2/ports.conf diff --git a/distillery/resources/compose/barrel/patch/triples.patch b/distillery/resources/compose/barrel/patch/triples.patch new file mode 100644 index 0000000..25bf21d --- /dev/null +++ b/distillery/resources/compose/barrel/patch/triples.patch @@ -0,0 +1,8 @@ +100c100 +< if($result->o instanceof \EasyRdf_Resource) { +--- +> if($result->o instanceof \EasyRdf\Resource) { +118c118 +< $object_text = $result->o->getValue(); +--- +> $object_text = $result->o->dumpValue('string'); \ No newline at end of file diff --git a/distillery/utils/patch_triples.sh b/distillery/utils/patch_triples.sh new file mode 100644 index 0000000..f72765e --- /dev/null +++ b/distillery/utils/patch_triples.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# This script can be used to repatch EasyRDF when needed. +cd /var/www/data/project/web/modules/contrib/wisski/ || exit 1 +TRIPLESTABCONTROLLER="./wisski_adapter_sparql11_pb/src/Controller/Sparql11TriplesTabController.php" +patch -N "$TRIPLESTABCONTROLLER" < "/patch/triples.patch" \ No newline at end of file