Soprano  2.9.3
Public Member Functions | List of all members
Soprano::N3NodeParser Class Reference

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

#include <n3nodeparser.h>

+ Inheritance diagram for Soprano::N3NodeParser:

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
 
- Public Member Functions inherited from Soprano::Error::ErrorCache
virtual ~ErrorCache ()
 
virtual Error lastError () const
 

Additional Inherited Members

- Protected Member Functions inherited from Soprano::Error::ErrorCache
 ErrorCache ()
 
void clearError () const
 
void setError (const Error &) const
 
void setError (const QString &errorMessage, int code=ErrorUnknown) 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

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
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: