forked from conceptsinmotion/thea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
owl2_rl_rules.plt
57 lines (39 loc) · 980 Bytes
/
owl2_rl_rules.plt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* -*- Mode: Prolog -*- */
:- use_module(owl2_rl_rules).
:- use_module(owl2_io).
:- use_module(owl2_model).
show_all_entailments :-
debug(test,'getting entailments',[]),
get_tbox_entailments,
forall(is_entailed(Axiom,Expl),
format('Axiom: ~w [explanation: ~w]~n',[Axiom,Expl])).
% TEST ONTOLOGY
:- begin_tests(owl2_rl_rules_basic,
[setup(init_axioms),
cleanup(retract_all_axioms)]).
init_axioms :-
load_axioms('testfiles/rl_rules_test.pl').
test(query) :-
show_all_entailments.
:- end_tests(owl2_rl_rules_basic).
% WINE
:- begin_tests(owl2_rl_rules_wine,
[setup(init_axioms),
cleanup(retract_all_axioms)]).
init_axioms :-
load_axioms('testfiles/wine.owl').
test(query) :-
show_all_entailments.
:- end_tests(owl2_rl_rules_wine).
/** <module> tests for OWL2 rl_rules
---+ Synopsis
Command line:
==
swipl
?- [owl2_rl_rules].
?- load_test_files([]).
?- run_tests.
==
---+ Details
This is a test module for the module owl2_rl_rules
*/