|
Soprano
2.9.2
|
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 |
Parser which converts N3 string representation of nodes into Node objects.
This class is NOT PUBLIC API and probably never will be.
Definition at line 45 of file n3nodeparser.h.
| Soprano::N3NodeParser::N3NodeParser | ( | ) |
Create a new N3 node parser
| Soprano::N3NodeParser::~N3NodeParser | ( | ) |
Destructor
| Soprano::Node Soprano::N3NodeParser::parseNode | ( | QTextStream & | s, |
| Node::N3ParserFlags | flags = Node::NoFlags |
||
| ) | const |
Parse a node from its N3 representation.
| s | The stream to read the node from. |
| flags | An optional set of flags which influence the behaviour of the parser. |
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.
1.8.5