Skip to content

Commit

Permalink
dealing with dynamic/1
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Jul 3, 2024
1 parent cae76e3 commit 0f062b6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.5.2
5.5.3
6 changes: 3 additions & 3 deletions retin3s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
export prolog=${prolog:=tpl}
export retina=$(dirname "$(readlink -f "$0")")/retina.pl
export PROLOG=${PROLOG:=tpl}
export RETINA=$(dirname "$(readlink -f "$0")")/retina.pl

if [ "$1" == "" ]; then
echo "usage: $0 file"
Expand All @@ -11,7 +11,7 @@ TMPDIR=$(mktemp -d)

eye --nope --quiet --no-bnode-relabeling --ignore-inference-fuse $1 --intermediate ${TMPDIR}/program.n3p

$prolog -g run $retina ${TMPDIR}/program.n3p > ${TMPDIR}/result.pl
${PROLOG} -g run ${RETINA} ${TMPDIR}/program.n3p > ${TMPDIR}/result.pl

eye --nope --quiet --pass --n3p ${TMPDIR}/result.pl 2> /dev/null

Expand Down
6 changes: 3 additions & 3 deletions retina
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
export prolog=${prolog:=tpl}
export retina=$(dirname "$(readlink -f "$0")")/retina.pl
export PROLOG=${PROLOG:=tpl}
export RETINA=$(dirname "$(readlink -f "$0")")/retina.pl

$prolog -g run $retina "$@"
${PROLOG} -g run ${RETINA} "$@"
3 changes: 1 addition & 2 deletions retina.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
:- dynamic(recursion/1).
:- dynamic(skolem/2).
:- dynamic(uuid/2).
:- dynamic('<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>'/2).
:- dynamic('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'/2).
:- dynamic('<http://www.w3.org/2000/10/swap/log#onNegativeComponentSurface>'/2).
:- dynamic('<http://www.w3.org/2000/10/swap/log#onNegativeAnswerSurface>'/2).

version_info('retina v5.5.2 (2024-07-02)').
version_info('retina v5.5.3 (2024-07-03)').

% run
run :-
Expand Down
4 changes: 2 additions & 2 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ echo -e "${YELLOW}Running retina/test${NORMAL}"
echo -e "${YELLOW}-------------------${NORMAL}"
echo ""

export prolog="${1:-tpl}"
export retina=`pwd`/retina.pl
export PROLOG="${1:-tpl}"
export RETINA=`pwd`/retina.pl

pad () {
[ "$#" -gt 1 ]
Expand Down

0 comments on commit 0f062b6

Please sign in to comment.