00001 /* 00002 * kpi_interface.h - describe functions for providing interface to kpi_low. 00003 * This file is part of PetrSU KP library. 00004 * 00005 * Copyright (C) 2009 - Pavel Vanag. All rights reserved. 00006 * 00007 * PetrSU KP library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * PetrSU KP library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with <program name>; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, 00020 * Boston, MA 02110-1301 USA 00021 */ 00022 00023 #ifndef _KPI_INTERFACE_H 00024 #define _KPI_INTERFACE_H 00025 00026 #include "kpi_low.h" 00027 #include "utils/util_func.h" 00028 #include "utils/kp_debug.h" 00029 #include "utils/kp_bool.h" 00030 #include "ss_func.h" 00031 #include "classes.h" 00032 00033 00045 ss_triple_t *individual_to_triples (individual_t *ind); 00046 00058 ss_triple_t *individual_to_triples_any (individual_t *ind); 00059 00072 ss_triple_t *individual_to_triples_by_pattern (individual_t *ind, void *pattern); 00073 00086 ss_triple_t *individual_to_triples_by_pattern_any (individual_t *ind, void *pattern); 00087 00099 ss_triple_t *class_to_triples (class_t *class); 00100 00112 list_t *triples_to_individuals (ss_triple_t *triples); 00113 00125 individual_t *triples_to_individual_first (ss_triple_t *triples); 00126 00140 ss_triple_t* individual_to_triples_by_properties_any(individual_t *ind, 00141 list_t *properties); 00142 00143 #endif /* _KPI_INTERFACE_H */