Soprano 2.9.4
sopranotypes.h
Go to the documentation of this file.
1/* This file is part of Soprano
2 *
3 * Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
4 * Copyright (C) 2007-2012 Sebastian Trueg <trueg@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 */
21
22#ifndef _SOPRANO_TYPES_H_
23#define _SOPRANO_TYPES_H_
24
25#include "soprano_export.h"
26
27#include <QtCore/QFlags>
28#include <QtCore/QString>
29
30namespace Soprano
31{
37 // FIXME: what about the used charsets? Should we and if so, how should we include them?
38 // FIXME: SerializationUnknown and SerializationUser should become the same, i.e. one should become deprecated
48 };
49 Q_DECLARE_FLAGS(RdfSerializations, RdfSerialization)
50
51
61 SOPRANO_EXPORT QString serializationMimeType( RdfSerialization serialization, const QString& userSerialization = QString() );
62
70
86 BackendOptionUser = 0x1000
87 };
88 Q_DECLARE_FLAGS( BackendOptions, BackendOption )
89
90
116 BackendFeatureUser = 0x1000
117 };
118 Q_DECLARE_FLAGS( BackendFeatures, BackendFeature )
119
120
121 namespace Query {
145 };
146 Q_DECLARE_FLAGS( QueryLanguages, QueryLanguage )
147
148
158 SOPRANO_EXPORT QString queryLanguageToString( Soprano::Query::QueryLanguage lang, const QString& userQueryLanguage = QString() );
159
168 }
169}
170
171Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::RdfSerializations)
172Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::BackendOptions)
173Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::BackendFeatures)
174Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::Query::QueryLanguages)
175
176#endif
SOPRANO_EXPORT QString queryLanguageToString(Soprano::Query::QueryLanguage lang, const QString &userQueryLanguage=QString())
@ QueryLanguageSparqlNoInference
SOPRANO_EXPORT QueryLanguage queryLanguageFromString(const QString &queryLanguage)
SOPRANO_EXPORT QString serializationMimeType(RdfSerialization serialization, const QString &userSerialization=QString())
@ BackendFeatureInferenceOptional
@ BackendFeatureNone
@ BackendFeatureUser
@ BackendFeatureInference
@ BackendFeatureQuery
@ BackendFeatureRemoveStatements
@ BackendFeatureAddStatement
@ BackendFeatureContext
@ BackendFeatureListStatements
@ BackendFeatureAll
@ BackendFeatureStorageMemory
@ SerializationRdfXml
@ SerializationUnknown
@ SerializationUser
@ SerializationN3
@ SerializationNQuads
@ SerializationNTriples
@ SerializationTurtle
@ SerializationTrig
SOPRANO_EXPORT RdfSerialization mimeTypeToSerialization(const QString &mimetype)
@ BackendOptionUsername
@ BackendOptionPort
@ BackendOptionEnableInference
@ BackendOptionNone
@ BackendOptionUser
@ BackendOptionStorageDir
@ BackendOptionStorageMemory
@ BackendOptionHost
@ BackendOptionPassword
#define SOPRANO_EXPORT