Soprano::N3NodeParser Class Reference

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

#include <n3nodeparser.h>

Inheritance diagram for Soprano::N3NodeParser:

Inheritance graph
[legend]

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@kde.org>

Definition at line 45 of file n3nodeparser.h.


Constructor & Destructor Documentation

Soprano::N3NodeParser::N3NodeParser (  ) 

Create a new N3 node parser

Soprano::N3NodeParser::~N3NodeParser (  ) 

Destructor


Member Function Documentation

void Soprano::N3NodeParser::setNamespacePrefixes ( const QHash< QString, QUrl > &  bnames  ) 

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:
s The stream to read the node from.
flags An 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:

Generated on Fri Dec 3 18:41:53 2010 for Soprano by  doxygen 1.5.6