Debian Codegraph @

FaCT++.JNI/Axioms.cpp

raw symbols SCIP
1 /* This file is part of the FaCT++ DL reasoner
2 Copyright (C) 2006-2015 Dmitry Tsarkov and The University of Manchester
3 Copyright (C) 2015-2017 Dmitry Tsarkov
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 // this file contains implementation of DL axiom-related methods of FaCT++ JNI interface
21
22 #include "uk_ac_manchester_cs_factplusplus_FaCTPlusPlus.h"
23 #include "Kernel.h"
24 #include "tJNICache.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 //-------------------------------------------------------------
31 // Concept/role/individual axioms (TELL language)
32 //-------------------------------------------------------------
33
34 #define PROCESS_QUERY(Action,Name) \
35 do { TRACE_JNI(Name); \
36 TJNICache* J = getJ(env,obj); \
37 try { return J->Axiom(Action); } \
38 catch ( const EFPPInconsistentKB& ) \
39 { ThrowICO(J->env); } \
40 catch ( const EFPPNonSimpleRole& nsr ) \
41 { ThrowNSR ( J->env, nsr.getRoleName() ); } \
42 catch ( const EFPPCycleInRIA& cir ) \
43 { ThrowRIC ( J->env, cir.getRoleName() ); } \
44 catch ( const EFaCTPlusPlus& fpp ) \
45 { Throw ( J->env, fpp.what() ); } \
46 catch ( const std::exception& ex ) \
47 { Throw ( J->env, ex.what() ); } \
48 return nullptr; } while (false)
49 // Throw ( env, "FaCT++ Kernel: error during " Name " processing" )
50
51 /*
52 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
53 * Method: tellClassDeclaration
54 * Signature: (Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
55 */
56 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellClassDeclaration
57 (JNIEnv * env, jobject obj, jobject arg)
58 {
59 PROCESS_QUERY ( J->K->declare(getConceptExpr(env,arg)), "tellClassDeclaration" );
60 }
61
62 /*
63 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
64 * Method: tellObjectPropertyDeclaration
65 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
66 */
67 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellObjectPropertyDeclaration
68 (JNIEnv * env, jobject obj, jobject arg)
69 {
70 PROCESS_QUERY ( getK(env,obj)->declare(getORoleExpr(env,arg)), "tellObjectPropertyDeclaration" );
71 }
72
73 /*
74 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
75 * Method: tellDataPropertyDeclaration
76 * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
77 */
78 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDataPropertyDeclaration
79 (JNIEnv * env, jobject obj, jobject arg)
80 {
81 PROCESS_QUERY ( getK(env,obj)->declare(getDRoleExpr(env,arg)), "tellDataPropertyDeclaration" );
82 }
83
84 /*
85 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
86 * Method: tellIndividualDeclaration
87 * Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
88 */
89 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellIndividualDeclaration
90 (JNIEnv * env, jobject obj, jobject arg)
91 {
92 PROCESS_QUERY ( getK(env,obj)->declare(getIndividualExpr(env,arg)), "tellIndividualDeclaration" );
93 }
94
95
96 /*
97 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
98 * Method: tellDatatypeDeclaration
99 * Signature: (Luk/ac/manchester/cs/factplusplus/DataTypePointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
100 */
101 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDatatypeDeclaration
102 (JNIEnv * env, jobject obj, jobject arg)
103 {
104 PROCESS_QUERY ( getK(env,obj)->declare(getDataTypeExpr(env,arg)), "tellDatatypeDeclaration" );
105 }
106
107 /*
108 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
109 * Method: tellSubClassOf
110 * Signature: (Luk/ac/manchester/cs/factplusplus/ClassPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
111 */
112 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellSubClassOf
113 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
114 {
115 PROCESS_QUERY ( getK(env,obj)->impliesConcepts ( getConceptExpr(env,arg1), getConceptExpr(env,arg2) ), "tellSubClassOf" );
116 }
117
118 /*
119 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
120 * Method: tellEquivalentClass
121 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
122 */
123 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellEquivalentClass
124 (JNIEnv * env, jobject obj)
125 {
126 PROCESS_QUERY ( getK(env,obj)->equalConcepts(), "tellEquivalentClasses" );
127 }
128
129 /*
130 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
131 * Method: tellDisjointClasses
132 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
133 */
134 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDisjointClasses
135 (JNIEnv * env, jobject obj)
136 {
137 PROCESS_QUERY ( getK(env,obj)->disjointConcepts(), "tellDisjointClasses" );
138 }
139
140 /*
141 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
142 * Method: tellDisjointUnion
143 * Signature: (Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
144 */
145 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDisjointUnion
146 (JNIEnv * env, jobject obj, jobject arg)
147 {
148 PROCESS_QUERY ( getK(env,obj)->disjointUnion(getConceptExpr(env,arg)), "tellDisjointUnion" );
149 }
150
151
152 /*
153 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
154 * Method: tellHasKey
155 * Signature: (Luk/ac/manchester/cs/factplusplus/ClassPointer;Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
156 */
157 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellHasKey
158 (JNIEnv * env, jobject obj ATTR_UNUSED, jobject, jobject, jobject)
159 {
160 TRACE_JNI("tellHasKey");
161 Throw ( env, "FaCT++ Kernel: unsupported operation 'tellHasKey'" );
162 return nullptr;
163 }
164
165
166 /*
167 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
168 * Method: tellSubObjectProperties
169 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
170 */
171 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellSubObjectProperties
172 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
173 {
174 PROCESS_QUERY ( getK(env,obj)->impliesORoles ( getORoleComplexExpr(env,arg1), getORoleExpr(env,arg2) ), "tellSubObjectProperties" );
175 }
176
177 /*
178 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
179 * Method: tellEquivalentObjectProperties
180 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
181 */
182 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellEquivalentObjectProperties
183 (JNIEnv * env, jobject obj)
184 {
185 PROCESS_QUERY ( getK(env,obj)->equalORoles(), "tellEquivalentObjectProperties" );
186 }
187
188 /*
189 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
190 * Method: tellInverseProperties
191 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
192 */
193 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellInverseProperties
194 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
195 {
196 PROCESS_QUERY ( getK(env,obj)->setInverseRoles ( getORoleExpr(env,arg1), getORoleExpr(env,arg2) ), "tellInverseProperties" );
197 }
198
199 /*
200 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
201 * Method: tellObjectPropertyRange
202 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
203 */
204 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellObjectPropertyRange
205 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
206 {
207 PROCESS_QUERY ( getK(env,obj)->setORange ( getORoleExpr(env,arg1), getConceptExpr(env,arg2) ), "tellObjectPropertyRange" );
208 }
209
210 /*
211 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
212 * Method: tellDataPropertyRange
213 * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataTypePointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
214 */
215 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDataPropertyRange
216 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
217 {
218 PROCESS_QUERY ( getK(env,obj)->setDRange ( getDRoleExpr(env,arg1), getDataExpr(env,arg2) ), "tellDataPropertyRange" );
219 }
220
221 /*
222 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
223 * Method: tellObjectPropertyDomain
224 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
225 */
226 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellObjectPropertyDomain
227 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
228 {
229 PROCESS_QUERY ( getK(env,obj)->setODomain ( getORoleExpr(env,arg1), getConceptExpr(env,arg2) ), "tellObjectPropertyDomain" );
230 }
231
232 /*
233 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
234 * Method: tellDataPropertyDomain
235 * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
236 */
237 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDataPropertyDomain
238 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
239 {
240 PROCESS_QUERY ( getK(env,obj)->setDDomain ( getDRoleExpr(env,arg1), getConceptExpr(env,arg2) ), "tellDataPropertyDomain" );
241 }
242
243 /*
244 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
245 * Method: tellDisjointObjectProperties
246 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
247 */
248 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDisjointObjectProperties
249 (JNIEnv * env, jobject obj)
250 {
251 PROCESS_QUERY ( getK(env,obj)->disjointORoles(), "tellDisjointObjectProperties" );
252 }
253
254 /*
255 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
256 * Method: tellFunctionalObjectProperty
257 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
258 */
259 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellFunctionalObjectProperty
260 (JNIEnv * env, jobject obj, jobject arg)
261 {
262 PROCESS_QUERY ( getK(env,obj)->setOFunctional(getORoleExpr(env,arg)), "tellFunctionalObjectProperty" );
263 }
264
265 /*
266 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
267 * Method: tellInverseFunctionalObjectProperty
268 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
269 */
270 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellInverseFunctionalObjectProperty
271 (JNIEnv * env, jobject obj, jobject arg)
272 {
273 PROCESS_QUERY ( getK(env,obj)->setInverseFunctional(getORoleExpr(env,arg)), "tellInverseFunctionalObjectProperty" );
274 }
275
276 /*
277 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
278 * Method: tellSymmetricObjectProperty
279 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
280 */
281 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellSymmetricObjectProperty
282 (JNIEnv * env, jobject obj, jobject arg)
283 {
284 PROCESS_QUERY ( getK(env,obj)->setSymmetric(getORoleExpr(env,arg)), "tellSymmetricObjectProperty" );
285 }
286
287 /*
288 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
289 * Method: tellAsymmetricObjectProperty
290 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
291 */
292 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellAsymmetricObjectProperty
293 (JNIEnv * env, jobject obj, jobject arg)
294 {
295 PROCESS_QUERY ( getK(env,obj)->setAsymmetric(getORoleExpr(env,arg)), "tellAsymmetricObjectProperty" );
296 }
297
298 /*
299 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
300 * Method: tellReflexiveObjectProperty
301 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
302 */
303 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellReflexiveObjectProperty
304 (JNIEnv * env, jobject obj, jobject arg)
305 {
306 PROCESS_QUERY ( getK(env,obj)->setReflexive(getORoleExpr(env,arg)), "tellReflexiveObjectProperty" );
307 }
308
309 /*
310 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
311 * Method: tellIrreflexiveObjectProperty
312 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
313 */
314 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellIrreflexiveObjectProperty
315 (JNIEnv * env, jobject obj, jobject arg)
316 {
317 PROCESS_QUERY ( getK(env,obj)->setIrreflexive(getORoleExpr(env,arg)), "tellIrreflexiveObjectProperty" );
318 }
319
320 /*
321 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
322 * Method: tellTransitiveObjectProperty
323 * Signature: (Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
324 */
325 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellTransitiveObjectProperty
326 (JNIEnv * env, jobject obj, jobject arg)
327 {
328 PROCESS_QUERY ( getK(env,obj)->setTransitive(getORoleExpr(env,arg)), "tellTransitiveObjectProperty" );
329 }
330
331 /*
332 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
333 * Method: tellSubDataProperties
334 * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
335 */
336 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellSubDataProperties
337 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
338 {
339 PROCESS_QUERY ( getK(env,obj)->impliesDRoles ( getDRoleExpr(env,arg1), getDRoleExpr(env,arg2) ), "tellSubDataProperties" );
340 }
341
342 /*
343 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
344 * Method: tellEquivalentDataProperties
345 * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
346 */
347 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellEquivalentDataProperties
348 (JNIEnv * env, jobject obj)
349 {
350 PROCESS_QUERY ( getK(env,obj)->equalDRoles(), "tellEquivalentDataProperties" );
351 }
352
353 /*
354 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
355 * Method: tellDisjointDataProperties
356 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
357 */
358 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDisjointDataProperties
359 (JNIEnv * env, jobject obj)
360 {
361 PROCESS_QUERY ( getK(env,obj)->disjointDRoles(), "tellDisjointDataProperties" );
362 }
363
364 /*
365 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
366 * Method: tellFunctionalDataProperty
367 * Signature: (Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
368 */
369 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellFunctionalDataProperty
370 (JNIEnv * env, jobject obj, jobject arg)
371 {
372 PROCESS_QUERY ( getK(env,obj)->setDFunctional(getDRoleExpr(env,arg)), "tellFunctionalDataProperty" );
373 }
374
375 /*
376 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
377 * Method: tellIndividualType
378 * Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;Luk/ac/manchester/cs/factplusplus/ClassPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
379 */
380 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellIndividualType
381 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2)
382 {
383 PROCESS_QUERY ( getK(env,obj)->instanceOf ( getIndividualExpr(env,arg1), getConceptExpr(env,arg2) ), "tellIndividualType" );
384 }
385
386 /*
387 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
388 * Method: tellRelatedIndividuals
389 * Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/IndividualPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
390 */
391 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellRelatedIndividuals
392 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
393 {
394 PROCESS_QUERY ( getK(env,obj)->relatedTo ( getIndividualExpr(env,arg1), getORoleExpr(env,arg2), getIndividualExpr(env,arg3) ), "tellRelatedIndividuals" );
395 }
396
397 /*
398 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
399 * Method: tellNotRelatedIndividuals
400 * Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;Luk/ac/manchester/cs/factplusplus/ObjectPropertyPointer;Luk/ac/manchester/cs/factplusplus/IndividualPointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
401 */
402 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellNotRelatedIndividuals
403 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
404 {
405 PROCESS_QUERY ( getK(env,obj)->relatedToNot ( getIndividualExpr(env,arg1), getORoleExpr(env,arg2), getIndividualExpr(env,arg3) ), "tellNotRelatedIndividuals" );
406 }
407
408 /*
409 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
410 * Method: tellRelatedIndividualValue
411 * Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
412 */
413 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellRelatedIndividualValue
414 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
415 {
416 PROCESS_QUERY ( getK(env,obj)->valueOf ( getIndividualExpr(env,arg1), getDRoleExpr(env,arg2), getDataValueExpr(env,arg3) ), "tellRelatedIndividualValue" );
417 }
418
419 /*
420 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
421 * Method: tellNotRelatedIndividualValue
422 * Signature: (Luk/ac/manchester/cs/factplusplus/IndividualPointer;Luk/ac/manchester/cs/factplusplus/DataPropertyPointer;Luk/ac/manchester/cs/factplusplus/DataValuePointer;)Luk/ac/manchester/cs/factplusplus/AxiomPointer;
423 */
424 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellNotRelatedIndividualValue
425 (JNIEnv * env, jobject obj, jobject arg1, jobject arg2, jobject arg3)
426 {
427 PROCESS_QUERY ( getK(env,obj)->valueOfNot ( getIndividualExpr(env,arg1), getDRoleExpr(env,arg2), getDataValueExpr(env,arg3) ), "tellNotRelatedIndividualValue" );
428 }
429
430 /*
431 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
432 * Method: tellSameIndividuals
433 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
434 */
435 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellSameIndividuals
436 (JNIEnv * env, jobject obj)
437 {
438 PROCESS_QUERY ( getK(env,obj)->processSame(), "tellSameIndividuals" );
439 }
440
441 /*
442 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
443 * Method: tellDifferentIndividuals
444 * Signature: ()Luk/ac/manchester/cs/factplusplus/AxiomPointer;
445 */
446 JNIEXPORT jobject JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_tellDifferentIndividuals
447 (JNIEnv * env, jobject obj)
448 {
449 PROCESS_QUERY ( getK(env,obj)->processDifferent(), "tellDifferentIndividuals" );
450 }
451
452 /*
453 * Class: uk_ac_manchester_cs_factplusplus_FaCTPlusPlus
454 * Method: retract
455 * Signature: (Luk/ac/manchester/cs/factplusplus/AxiomPointer;)V
456 */
457 JNIEXPORT void JNICALL Java_uk_ac_manchester_cs_factplusplus_FaCTPlusPlus_retract
458 (JNIEnv * env, jobject obj, jobject axiom)
459 {
460 TRACE_JNI("retract");
461 getK(env,obj)->retract(getAxiom(env,axiom));
462 }
463
464 #undef PROCESS_QUERY
465
466 #ifdef __cplusplus
467 }
468 #endif