Internalfunctions - SmartSlog KP Library
|
Contains functions for providing interface to kpi_low. More...
Macros | |
#define | _KPI_INTERFACE_C_ |
Functions | |
ss_triple_t * | individual_to_triples (individual_t *ind) |
Converts individual to triples. | |
ss_triple_t * | individual_to_triples_any (individual_t *ind) |
Converts individual to triples. | |
ss_triple_t * | individual_to_triples_by_pattern (individual_t *ind, pattern_t *pattern) |
Converts individual to triples. | |
ss_triple_t * | individual_to_triples_by_pattern_any (individual_t *ind, pattern_t *pattern) |
Converts individual to triples. | |
ss_triple_t * | class_to_triples (class_t *ont_class) |
Converts individual to triples. | |
ss_triple_t * | pattern_to_triples (pattern_t *pattern) |
Converts pattern to triples. | |
bool | is_in_individuals_list (char *uuid, list_t *inds_list) |
Checkes is there input item in list of individuals. | |
list_t * | triples_to_individuals (ss_triple_t *triples) |
Converts triples to individuals. | |
individual_t * | triples_to_individual_first (ss_triple_t *triples) |
Converts triples to individual. | |
ss_triple_t * | individual_to_triples_by_properties_any (individual_t *ind, list_t *properties) |
Convert individual to triplets using given list properties. |
Contains functions for providing interface to kpi_low.
Vanag Pavel vanag @cs. karel ia.r u
SmartSlog KP Library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
SmartSlog KP Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with SmartSlog KP Library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Contains functions for providing interface to kpi_low. This file is part of SmartSlog KP Library.
#define _KPI_INTERFACE_C_ |
ss_triple_t * class_to_triples | ( | class_t * | ont_class | ) |
Converts individual to triples.
Converts triples to individuals.
Converts class properties with values with classtype to triples. Function sets global SmartSlog KP Library's errno.
[in] | class_t | *ont_class. Pointer to the class struct. |
Converts properties without values and uuid with classtype to individual struct. Function sets global SmartSlog KP Library's errno.
[in] | ss_triple_t | *triples. Pointer to the list of triples. |
ss_triple_t * individual_to_triples | ( | individual_t * | ind | ) |
Converts individual to triples.
rdf:type.
Converts individual properties with values and uuid with classtype to triples. Subject is UUID of individual for all triples Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
Converts individual to triples.
Converts individual properties with values and uuid with classtype to triples. Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
ss_triple_t * individual_to_triples_any | ( | individual_t * | ind | ) |
Converts individual to triples.
Converts individual properties without values and uuid with classtype to triples. Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
ss_triple_t * individual_to_triples_by_pattern | ( | individual_t * | ind, |
pattern_t * | pattern | ||
) |
Converts individual to triples.
Converts individual properties by pattern with values and uuid with classtype to triples. Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
[in] | void | *pattern. Entity of pettern (class or individual). |
ss_triple_t * individual_to_triples_by_pattern_any | ( | individual_t * | ind, |
pattern_t * | pattern | ||
) |
Converts individual to triples.
Converts individual properties by pattern without values and uuid with classtype to triples. Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
[in] | void | *pattern. Entity of pettern (class or individual). |
ss_triple_t* individual_to_triples_by_properties_any | ( | individual_t * | ind, |
list_t * | properties | ||
) |
Convert individual to triplets using given list properties.
Checks properties, if they can be set for given individuals it convert it to triples, without set object (use SS_RDF_SIB_ANY - any value). It not convert object properties.
ind | individual. |
properties | list of properties. It can be NULL - all properties that be set for individual are converted to triplets. |
bool is_in_individuals_list | ( | char * | uuid, |
list_t * | inds_list | ||
) |
Checkes is there input item in list of individuals.
char | * uuid. |
list_head_t | * individuals list. |
ss_triple_t * pattern_to_triples | ( | pattern_t * | pattern | ) |
Converts pattern to triples.
Converts pattern structures to triples. If set UUID then Subject is UUID, SS_RDF_SIB_ANY otherwise. Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
[in] | void | *pattern. Entity of pettern (class or individual). |
Converts pattern structures to triples. Function sets global SmartSlog KP Library's errno.
[in] | individual_t | * individual. Pointer to the individual struct. |
[in] | void | *pattern. Entity of pettern (class or individual). |
individual_t * triples_to_individual_first | ( | ss_triple_t * | triples | ) |
Converts triples to individual.
Converts properties without values and uuid with classtype to individual struct. Function sets global SmartSlog KP Library's errno.
[in] | ss_triple_t | *triples. Pointer to the list of triples. |
ss_triple_t * triples_to_individuals | ( | ss_triple_t * | triples | ) |
Converts triples to individuals.
Converts properties without values and uuid with classtype to individual struct. Function sets global SmartSlog KP Library's errno.
[in] | ss_triple_t | *triples. Pointer to the list of triples. |