|
Soprano
2.7.5
|
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 |
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.
Create a new N3 node parser
Destructor
| 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.
| 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.7.6.1