Commit 8f90c123 authored by Volker Krause's avatar Volker Krause
Browse files

Create document nodes by default

We don't take the result from there yet (although it meanwhile passes the
full test suite as well), but this enables the migration of KItinerary
Workbench to the new API.
parent 3ffb681c
...@@ -520,8 +520,14 @@ void ExtractorEngine::setContextDate(const QDateTime &dt) ...@@ -520,8 +520,14 @@ void ExtractorEngine::setContextDate(const QDateTime &dt)
QJsonArray ExtractorEngine::extract() QJsonArray ExtractorEngine::extract()
{ {
d->m_rootNode.setParent(d->m_contextNode);
d->processNode(d->m_rootNode);
#if 0
return d->m_rootNode.result().jsonLdResult();
#else
d->extractDocument(); d->extractDocument();
return d->m_result; return d->m_result;
#endif
} }
void ExtractorEnginePrivate::extractRecursive(KMime::Content *content) void ExtractorEnginePrivate::extractRecursive(KMime::Content *content)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment