2
* This file is part of Soprano Project
4
* Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
5
* Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; see the file COPYING.LIB. If not,
19
* write to the Free Software Foundation, Inc., 51 Franklin Street,
20
* Fifth Floor, Boston, MA 02110-1301, USA.
23
#ifndef SOPRANO_BACKEND_REDLAND_UTIL_H
24
#define SOPRANO_BACKEND_REDLAND_UTIL_H
40
Soprano::Node createNode( librdf_node *node );
42
librdf_node *createNode( const Node &node );
44
Soprano::Statement createStatement( librdf_statement *st );
46
librdf_statement *createStatement( const Statement &statement );
48
const char *queryType( const Query &query );
51
* Calls librdf_free_node if \a node is not null.
52
* The only reason for this method are the stupid asserts that clutter stderr.
54
void freeNode( librdf_node* node );
57
* Calls librdf_free_statement if \a statement is not null.
58
* The only reason for this method are the stupid asserts that clutter stderr.
60
void freeStatement( librdf_statement* statement );
66
#endif // SOPRANO_BACKEND_REDLAND_UTIL_H