File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Concepts in motion playground
2
+
3
+ This repository contains some simple code to see whether we can get
4
+ reasoning to work with Thea. To use it:
5
+
6
+ - Get the development version of SWI-Prolog (for the tabling)
7
+ - Download:
8
+
9
+ ```
10
+ git clone [email protected] :conceptsinmotion/playground
11
+ git submodule update --init
12
+ ```
13
+ - Run
14
+ ```
15
+ swipl playground.pl
16
+ ?- initialize_reasoner.
17
+ ?- reasoner_ask(subClassOf(Sub,Super)).
18
+ ```
19
+
20
+ Test on Linux (Ubuntu 19.04). Should work on any platform where Prolog
21
+ and Java work. On some platform some environment setup may be needed to
22
+ get JPL (the Prolog <-> Java interface) to run.
Original file line number Diff line number Diff line change 27
27
! .
28
28
validate (X ) :-
29
29
format(user_error , 'Invalid: ~p~n' , [X ]).
30
+
31
+ %! initialize_reasoner
32
+ %
33
+ % Initialise the reasoner and send it our ontology. After this we can
34
+ % use e.g.
35
+ %
36
+ % ```
37
+ % ?- reasoner_ask(subClassOf(Sub,Super)).
38
+ % ?- reasoner_ask(unsatisfiable(Class)).
39
+ % ```
40
+
41
+ initialize_reasoner :-
42
+ % debug(owl2),
43
+ load ,
44
+ initialize_reasoner(pellet , _Reasoner ).
45
+
You can’t perform that action at this time.
0 commit comments