Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _SOPRANO_N3_NODE_PARSER_H_
00023 #define _SOPRANO_N3_NODE_PARSER_H_
00024
00025 #include <QtCore/QRegExp>
00026 #include <QtCore/QHash>
00027 #include <QtCore/QUrl>
00028 #include <QtCore/QFlags>
00029
00030 #include "error.h"
00031 #include "node.h"
00032
00033 namespace Soprano {
00034
00035 class Node;
00036
00045 class N3NodeParser : public Error::ErrorCache
00046 {
00047 public:
00051 N3NodeParser();
00052
00056 ~N3NodeParser();
00057
00058 void setNamespacePrefixes( const QHash<QString, QUrl>& bnames );
00059 void addNamespacePrefix( const QString& abbr, const QUrl& ns );
00060
00073 Soprano::Node parseNode( QTextStream& s, Node::N3ParserFlags flags = Node::NoFlags ) const;
00074
00075 private:
00076 class Private;
00077 Private* const d;
00078 };
00079 }
00080
00081 #endif