swish/commit

Work around WordNet code xref issues.

authorJan Wielemaker
Thu May 3 14:13:45 2018 +0200
committerJan Wielemaker
Thu May 3 14:13:45 2018 +0200
commit843551187da612decdf6531f53c5acacfd1bef7f
tree4764d71812a77865efd9f41c6cdc5150cbdf916a
parent1880853342a2fc93a4d61f0d0564082eae1088cc
Diff style: patch stat
diff --git a/lib/swish/pack/wordnet/prolog/wn.pl b/lib/swish/pack/wordnet/prolog/wn.pl
index d3a83ef..4c3b88c 100644
--- a/lib/swish/pack/wordnet/prolog/wn.pl
+++ b/lib/swish/pack/wordnet/prolog/wn.pl
@@ -148,6 +148,35 @@ wn_op(sk(synset_id, w_num, sense_key)).
 wn_op(syntax(synset_id, w_num, syntax)).
 wn_op(vgp(synset_id, w_num, synset_id, w_num)).
 
+:- if(current_prolog_flag(xref, true)).
+
+% this  declaration  ensures  that  the  (ClioPatria)  cross  referencer
+% considers this predicates defined. We should not really define them as
+% handling these predicates is based on autoloading.
+
+:- dynamic
+    ant/4,
+    at/2,
+    cls/5,
+    cs/2,
+    der/4,
+    ent/2,
+    fr/3,
+    g/2,
+    hyp/2,
+    ins/2,
+    mm/2,
+    ms/2,
+    per/4,
+    ppl/4,
+    s/6,
+    sa/4,
+    sim/2,
+    sk/3,
+    syntax/3,
+    vgp/4.
+
+:- endif.
 
 		 /*******************************
 		 *    WORDNET BASIC RELATIONS   *