Soprano 2.9.4
n3nodeparser.h
Go to the documentation of this file.
1/*
2 * This file is part of Soprano Project.
3 *
4 * Copyright (C) 2007-2010 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_N3_NODE_PARSER_H_
23#define _SOPRANO_N3_NODE_PARSER_H_
24
25#include <QtCore/QRegExp>
26#include <QtCore/QHash>
27#include <QtCore/QUrl>
28#include <QtCore/QFlags>
29
30#include "error.h"
31#include "node.h"
32
33namespace Soprano {
34
35 class Node;
36
46 {
47 public:
52
57
59 void addNamespacePrefix( const QString& abbr, const QUrl& ns );
60
73 Soprano::Node parseNode( QTextStream& s, Node::N3ParserFlags flags = Node::NoFlags ) const;
74
75 private:
76 class Private;
77 Private* const d;
78 };
79}
80
81#endif
Core class of Soprano's exception system.
Definition error.h:235
Parser which converts N3 string representation of nodes into Node objects.
void addNamespacePrefix(const QString &abbr, const QUrl &ns)
Soprano::Node parseNode(QTextStream &s, Node::N3ParserFlags flags=Node::NoFlags) const
void setNamespacePrefixes(const QHash< QString, QUrl > &bnames)
A Node represents one RDF resource.
Definition node.h:54