forked from vangelisv/thea
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathowl2_java_owlapi.plt
82 lines (54 loc) · 1.82 KB
/
owl2_java_owlapi.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* -*- Mode: Prolog -*- */
:- use_module(owl2_model).
:- use_module(owl2_io).
:- use_module(owl2_java_owlapi).
:- begin_tests(pellet,[setup(load)]).
load :-
load_axioms('testfiles/music_ontology.owl').
test(loaded) :-
\+ \+ ontology(_).
test(reasoner) :-
create_factory(Man,Fac),
build_ontology(Man,Fac,Ont),
writeln(classifying),
create_reasoner(Man,pellet,Reasoner),
reasoner_classify(Reasoner,Man,Ont),
writeln(classified),
forall(class(C),
( writeln(class=C),
forall(reasoner_subClassOf(Reasoner,Fac,C,P),
writeln(superclass=P)))).
:- end_tests(pellet).
:- begin_tests(teams,[setup(load)]).
% see http://owl.cs.manchester.ac.uk/2009/07/sssw/teams.html
load :-
load_axioms('testfiles/teams.owl').
test(loaded) :-
\+ \+ ontology(_).
test(reasoner) :-
create_factory(Man,Fac),
build_ontology(Man,Fac,Ont),
writeln(classifying),
create_reasoner(Man,pellet,Reasoner),
reasoner_classify(Reasoner,Man,Ont),
reasoner_subClassOf(Reasoner,Fac,'http://owl.cs.manchester.ac.uk/2009/07/sssw/teams#OntologyFC','http://owl.cs.manchester.ac.uk/2009/07/sssw/teams#MixedTeam'),
\+ reasoner_subClassOf(Reasoner,Fac,'http://owl.cs.manchester.ac.uk/2009/07/sssw/teams#OntologyFC','http://owl.cs.manchester.ac.uk/2009/07/sssw/teams#NonSingletonTeam').
:- end_tests(teams).
/** <module> tests for OWL2 RDF parser
---+ Synopsis
Command line:
==
swipl
?- [owl2_java_owlapi].
?- load_test_files([]).
?- run_tests.
==
JPL Required
Set your CLASSPATH to include owlapi-bin.jar, pellet.jar, ...
Or run from command line
==
bin/thea-run-tests-java owl2_java_owlapi
==
---+ Details
This is a test module for the module owl2_java_owlapi.pl
*/