Skip to content
This repository
Browse code

Correction not fail if there are no triples to remove during parsing

(From Thiago's test case)
  • Loading branch information...
commit fa2578c2085ca612a2085830436a7f7cb742483a 1 parent abebb82
Vangelis Vassiliadis authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 2 owl2_from_rdf.pl
  2. +1 1  testfiles/testcase_thiago.pl
4 owl2_from_rdf.pl
@@ -211,8 +211,8 @@
211 211
212 212 debug(owl_parser,'Replacing patterns [see table 5]',[]),
213 213 % remove triples based on pattern match (Table 5)
214   - forall((triple_remove(Pattern,Remove), test_use_owl(Pattern)),
215   - forall(member(owl(S,P,O),Remove),use_owl(S,P,O,removed))),
  214 + ( forall((triple_remove(Pattern,Remove), test_use_owl(Pattern)),
  215 + forall(member(owl(S,P,O),Remove),use_owl(S,P,O,removed))) -> true ; true),
216 216
217 217
218 218 % temporary fix to make up for bug in rdf parsing
2  testfiles/testcase_thiago.pl
... ... @@ -1,4 +1,4 @@
1   -:- assert(library_directory('C:/sw/development/pl')).
  1 +% :- assert(library_directory('C:/sw/development/pl')).
2 2 :- use_module(library(thea2/owl2_model)).
3 3 :- use_module(library(thea2/owl2_io)).
4 4

0 comments on commit fa2578c

Please sign in to comment.
Something went wrong with that request. Please try again.