23 #ifndef SOPRANO_NODE_H
24 #define SOPRANO_NODE_H
26 #include <QtCore/QUrl>
27 #include <QtCore/QSharedDataPointer>
28 #include <QtCore/QTextStream>
135 Node& operator=(
const Node& other );
140 Node& operator=(
const QUrl& resource );
151 bool operator==(
const Node& other )
const;
157 bool operator!=(
const Node& other )
const;
164 bool operator==(
const QUrl& uri )
const;
190 bool matches(
const Node& other )
const;
205 bool isEmpty()
const;
210 bool isValid()
const ;
215 bool isLiteral()
const;
220 bool isResource()
const;
225 bool isBlank()
const;
266 QUrl dataType()
const;
324 static Node createEmptyNode();
336 static Node createResourceNode(
const QUrl& uri );
401 static QString resourceToN3(
const QUrl& resource );
456 StrictLiteralTypes = 0x1,
470 Q_DECLARE_FLAGS( N3ParserFlags, N3ParserFlag )
484 static
Node fromN3( const
QString& n3, N3ParserFlags flags = NoFlags );
498 static
Node fromN3Stream(
QTextStream& stream, N3ParserFlags flags = NoFlags );
502 class ResourceNodeData;
504 class LiteralNodeData;
538 #if QT_VERSION < 0x040700
542 Q_DECLARE_OPERATORS_FOR_FLAGS( Soprano::Node::N3ParserFlags )
544 #endif // SOPRANO_NODE_H