add more spacing
[personal-kdebase.git] / runtime / nepomuk / strigibackend / util.h
blobb7f8605cbc916ad7edb58e0881a358f7659d843f
1 /*
2 Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this library; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef _STRIGI_SOPRNOA_UTIL_H_
21 #define _STRIGI_SOPRNOA_UTIL_H_
23 #include <string>
24 #include "tstring.h"
26 class QUrl;
27 namespace Soprano {
28 class Model;
29 class Node;
32 namespace Strigi {
34 class Variant;
36 namespace Soprano {
37 namespace Util {
38 QUrl fieldUri( const std::string& s );
39 QUrl fileUrl( const std::string& filename );
40 std::string fieldName( const QUrl& uri );
41 TString convertSearchField( const std::string& field );
42 QUrl uniqueUri( const QString& ns, ::Soprano::Model* model );
43 Strigi::Variant nodeToVariant( const ::Soprano::Node& node );
45 /**
46 * For now only stores the parentUrl property so it can be
47 * searched.
49 void storeStrigiMiniOntology( ::Soprano::Model* model );
53 namespace Ontology {
54 QUrl indexGraphFor();
58 #endif