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
A Node represents one RDF resource.
SOPRANO_EXPORT QTextStream & operator>>(QTextStream &s, Soprano::Node &)
SOPRANO_EXPORT QDebug operator<<(QDebug s, const Soprano::Node &)
SOPRANO_EXPORT QUrl value()
SOPRANO_EXPORT QUrl language()
SOPRANO_EXPORT QUrl url()
SOPRANO_EXPORT uint qHash(const LanguageTag &node)
SOPRANO_EXPORT uint qHash(const Node &node)
#define SOPRANO_CONSTRUCTOR_DEPRECATED
SOPRANO_EXPORT QUrl identifier()
Represents a literal value of an RDF Node.
SOPRANO_EXPORT QUrl type()