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_
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
);
46 * For now only stores the parentUrl property so it can be
49 void storeStrigiMiniOntology( ::Soprano::Model
* model
);