Skip to content

Commit

Permalink
fixing explanation output
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Sep 9, 2024
1 parent 5e33c1a commit f7b1cfc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.1
1.6.2
4 changes: 2 additions & 2 deletions cases/output-with-explanation/complement.trig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PREFIX skolem: <http://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#>
PREFIX var: <http://www.w3.org/2000/10/swap/var#>
PREFIX log: <http://www.w3.org/2000/10/swap/log#>
PREFIX var: <http://www.w3.org/2000/10/swap/var#>

skolem:bng_1 => false.
skolem:bng_1 log:implies false.

GRAPH _:bng_1 {
var:P log:complement var:C.
Expand Down
4 changes: 2 additions & 2 deletions cases/output-with-explanation/derived.trig
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ GRAPH _:bng_1 {
}

GRAPH _:bng_2 {
_:bng_5 => _:node_4_1.
_:bng_5 log:implies _:node_4_1.
}

GRAPH _:bng_3 {
:Minka a :Cat.
}

GRAPH _:bng_4 {
_:bng_6 => _:node_4_1.
_:bng_6 log:implies _:node_4_1.
}

GRAPH _:bng_5 {
Expand Down
4 changes: 2 additions & 2 deletions cases/output/complement.trig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PREFIX skolem: <http://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#>
PREFIX var: <http://www.w3.org/2000/10/swap/var#>
PREFIX log: <http://www.w3.org/2000/10/swap/log#>
PREFIX var: <http://www.w3.org/2000/10/swap/var#>

skolem:bng_1 => false.
skolem:bng_1 log:implies false.

GRAPH _:bng_1 {
var:P log:complement var:C.
Expand Down
10 changes: 7 additions & 3 deletions lingua.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
:- use_module(library(semweb/turtle)).
:- catch(use_module(library(http/http_open)), _, true).

version_info('lingua v1.6.1').
version_info('lingua v1.6.2').

help_info('Usage: lingua <options>* <data>*

Expand Down Expand Up @@ -1084,7 +1084,9 @@
)
; ( clause('<http://www.w3.org/2000/10/swap/log#implies>'(X, Y, _, _, _, _), true)
-> wg(X),
write(' => '),
write(' '),
wp('<http://www.w3.org/2000/10/swap/log#implies>'),
write(' '),
wg(Y)
; ( nb_getval(fdepth, 0)
-> assertz(ncllit)
Expand All @@ -1105,7 +1107,9 @@
-> retract(ncllit)
; true
),
write(' => '),
write(' '),
wp('<http://www.w3.org/2000/10/swap/log#implies>'),
write(' '),
( \+atom(Y)
-> nb_getval(cdepth, CD),
CD1 is CD+1,
Expand Down

0 comments on commit f7b1cfc

Please sign in to comment.