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::BackendOptionHost
@ BackendOptionHost
Definition: sopranotypes.h:82
Soprano::SerializationTurtle
@ SerializationTurtle
Definition: sopranotypes.h:44
Soprano::BackendOptionPort
@ BackendOptionPort
Definition: sopranotypes.h:83
soprano_export.h
Soprano::BackendFeatureStorageMemory
@ BackendFeatureStorageMemory
Definition: sopranotypes.h:107
Soprano::BackendFeatureNone
@ BackendFeatureNone
Definition: sopranotypes.h:99
Soprano::SerializationRdfXml
@ SerializationRdfXml
Definition: sopranotypes.h:41
Soprano::BackendOptionStorageDir
@ BackendOptionStorageDir
Definition: sopranotypes.h:81
Soprano::SerializationUnknown
@ SerializationUnknown
Definition: sopranotypes.h:40
Soprano::SerializationNTriples
@ SerializationNTriples
Definition: sopranotypes.h:43
Soprano::BackendFeatureRemoveStatements
@ BackendFeatureRemoveStatements
Definition: sopranotypes.h:101
Soprano::SerializationTrig
@ SerializationTrig
Definition: sopranotypes.h:45
Soprano::Query::QueryLanguage
QueryLanguage
Definition: sopranotypes.h:129
Soprano::Query::QUERY_LANGUAGE_USER
@ QUERY_LANGUAGE_USER
Definition: sopranotypes.h:144
SOPRANO_EXPORT
#define SOPRANO_EXPORT
Definition: soprano_export.h:37
Soprano::BackendFeatureInferenceOptional
@ BackendFeatureInferenceOptional
Definition: sopranotypes.h:105
Soprano::BackendOptionPassword
@ BackendOptionPassword
Definition: sopranotypes.h:85
Soprano::BackendFeatureUser
@ BackendFeatureUser
Definition: sopranotypes.h:116
Soprano::SerializationUser
@ SerializationUser
Definition: sopranotypes.h:47
Soprano::Query::QueryLanguageSerql
@ QueryLanguageSerql
Definition: sopranotypes.h:133
Soprano::SerializationNQuads
@ SerializationNQuads
Definition: sopranotypes.h:46
Soprano::BackendFeatureAll
@ BackendFeatureAll
Definition: sopranotypes.h:108
Soprano::BackendOptionStorageMemory
@ BackendOptionStorageMemory
Definition: sopranotypes.h:79
Soprano::BackendFeatureQuery
@ BackendFeatureQuery
Definition: sopranotypes.h:103
Soprano::SerializationN3
@ SerializationN3
Definition: sopranotypes.h:42
Soprano::mimeTypeToSerialization
SOPRANO_EXPORT RdfSerialization mimeTypeToSerialization(const QString &mimetype)
Soprano::Query::QueryLanguageSparql
@ QueryLanguageSparql
Definition: sopranotypes.h:131
Soprano::Query::QUERY_LANGUAGE_SERQL
@ QUERY_LANGUAGE_SERQL
Definition: sopranotypes.h:143
Soprano::Query::QueryLanguageRdql
@ QueryLanguageRdql
Definition: sopranotypes.h:132
Soprano::BackendFeatureAddStatement
@ BackendFeatureAddStatement
Definition: sopranotypes.h:100
Soprano::BackendOptionUser
@ BackendOptionUser
Definition: sopranotypes.h:86
Soprano::Query::QueryLanguageNone
@ QueryLanguageNone
Definition: sopranotypes.h:130
Soprano::BackendFeatureContext
@ BackendFeatureContext
Definition: sopranotypes.h:106
Soprano::BackendFeatureListStatements
@ BackendFeatureListStatements
Definition: sopranotypes.h:102
Soprano::BackendOptionNone
@ BackendOptionNone
Definition: sopranotypes.h:78
Soprano::BackendOption
BackendOption
Definition: sopranotypes.h:77
Soprano::BackendOptionUsername
@ BackendOptionUsername
Definition: sopranotypes.h:84
Soprano::Query::QUERY_LANGUAGE_RDQL
@ QUERY_LANGUAGE_RDQL
Definition: sopranotypes.h:142
Soprano::Query::QueryLanguageSparqlNoInference
@ QueryLanguageSparqlNoInference
Definition: sopranotypes.h:134
Soprano
Definition: backend.h:36
Soprano::BackendOptionEnableInference
@ BackendOptionEnableInference
Definition: sopranotypes.h:80
Soprano::Query::QueryLanguageUser
@ QueryLanguageUser
Definition: sopranotypes.h:139
Soprano::Query::queryLanguageToString
SOPRANO_EXPORT QString queryLanguageToString(Soprano::Query::QueryLanguage lang, const QString &userQueryLanguage=QString())
Soprano::RdfSerialization
RdfSerialization
Definition: sopranotypes.h:39
Soprano::BackendFeature
BackendFeature
Definition: sopranotypes.h:98
Soprano::serializationMimeType
SOPRANO_EXPORT QString serializationMimeType(RdfSerialization serialization, const QString &userSerialization=QString())
QString
Soprano::BackendFeatureInference
@ BackendFeatureInference
Definition: sopranotypes.h:104
Soprano::Query::QUERY_LANGUAGE_NONE
@ QUERY_LANGUAGE_NONE
Definition: sopranotypes.h:140
Soprano::Query::queryLanguageFromString
SOPRANO_EXPORT QueryLanguage queryLanguageFromString(const QString &queryLanguage)
Soprano::Query::QUERY_LANGUAGE_SPARQL
@ QUERY_LANGUAGE_SPARQL
Definition: sopranotypes.h:141