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 
30 namespace 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
47  SerializationUser = 0x0
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 {
139  QueryLanguageUser = 0x1000,
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 
171 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::RdfSerializations)
172 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::BackendOptions)
173 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::BackendFeatures)
174 Q_DECLARE_OPERATORS_FOR_FLAGS(Soprano::Query::QueryLanguages)
175 
176 #endif
SOPRANO_EXPORT QString queryLanguageToString(Soprano::Query::QueryLanguage lang, const QString &userQueryLanguage=QString())
@ QueryLanguageSparqlNoInference
Definition: sopranotypes.h:134
SOPRANO_EXPORT QueryLanguage queryLanguageFromString(const QString &queryLanguage)
SOPRANO_EXPORT QString serializationMimeType(RdfSerialization serialization, const QString &userSerialization=QString())
@ BackendFeatureInferenceOptional
Definition: sopranotypes.h:105
@ BackendFeatureNone
Definition: sopranotypes.h:99
@ BackendFeatureUser
Definition: sopranotypes.h:116
@ BackendFeatureInference
Definition: sopranotypes.h:104
@ BackendFeatureQuery
Definition: sopranotypes.h:103
@ BackendFeatureRemoveStatements
Definition: sopranotypes.h:101
@ BackendFeatureAddStatement
Definition: sopranotypes.h:100
@ BackendFeatureContext
Definition: sopranotypes.h:106
@ BackendFeatureListStatements
Definition: sopranotypes.h:102
@ BackendFeatureAll
Definition: sopranotypes.h:108
@ BackendFeatureStorageMemory
Definition: sopranotypes.h:107
RdfSerialization
Definition: sopranotypes.h:39
@ SerializationRdfXml
Definition: sopranotypes.h:41
@ SerializationUnknown
Definition: sopranotypes.h:40
@ SerializationUser
Definition: sopranotypes.h:47
@ SerializationN3
Definition: sopranotypes.h:42
@ SerializationNQuads
Definition: sopranotypes.h:46
@ SerializationNTriples
Definition: sopranotypes.h:43
@ SerializationTurtle
Definition: sopranotypes.h:44
@ SerializationTrig
Definition: sopranotypes.h:45
SOPRANO_EXPORT RdfSerialization mimeTypeToSerialization(const QString &mimetype)
@ BackendOptionUsername
Definition: sopranotypes.h:84
@ BackendOptionPort
Definition: sopranotypes.h:83
@ BackendOptionEnableInference
Definition: sopranotypes.h:80
@ BackendOptionNone
Definition: sopranotypes.h:78
@ BackendOptionUser
Definition: sopranotypes.h:86
@ BackendOptionStorageDir
Definition: sopranotypes.h:81
@ BackendOptionStorageMemory
Definition: sopranotypes.h:79
@ BackendOptionHost
Definition: sopranotypes.h:82
@ BackendOptionPassword
Definition: sopranotypes.h:85
#define SOPRANO_EXPORT