Soprano  2.8.0
Public Member Functions
Soprano::N3NodeParser Class Reference

Parser which converts N3 string representation of nodes into Node objects. More...

#include <n3nodeparser.h>

+ Inheritance diagram for Soprano::N3NodeParser:

List of all members.

Public Member Functions

 N3NodeParser ()
 ~N3NodeParser ()
void setNamespacePrefixes (const QHash< QString, QUrl > &bnames)
void addNamespacePrefix (const QString &abbr, const QUrl &ns)
Soprano::Node parseNode (QTextStream &s, Node::N3ParserFlags flags=Node::NoFlags) const

Detailed Description

Parser which converts N3 string representation of nodes into Node objects.

This class is NOT PUBLIC API and probably never will be.

Author:
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org

Definition at line 45 of file n3nodeparser.h.


Constructor & Destructor Documentation

Create a new N3 node parser

Destructor


Member Function Documentation

void Soprano::N3NodeParser::addNamespacePrefix ( const QString abbr,
const QUrl ns 
)
Soprano::Node Soprano::N3NodeParser::parseNode ( QTextStream s,
Node::N3ParserFlags  flags = Node::NoFlags 
) const

Parse a node from its N3 representation.

Parameters:
sThe stream to read the node from.
flagsAn optional set of flags which influence the behaviour of the parser.
Returns:
The parsed node if it could be successfully parsed or an invalid node otherwise. In the latter case Error::lastError() provides more details on the parsing error. Be aware that the empty string will be treated as an empty node and seen as a successful parse.

The documentation for this class was generated from the following file: