diff options
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Parser.cpp | 6 | ||||
-rw-r--r-- | src/serialisation/Serialiser.cpp | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index 92fe78d1..395014a6 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -138,8 +138,8 @@ Parser::parse_string( LOG(info) << "Parsing " << (data_path ? data_path->str() : "*") << " from string"; if (!base_uri.empty()) - LOG(info) << " (base " << base_uri << ")"; - LOG(info) << endl; + info << " (base " << base_uri << ")"; + info << endl; bool ret = parse(world, target, model, base_uri, data_path, parent, symbol, data); Redland::Resource subject(*world->rdf_world, base_uri); @@ -162,6 +162,8 @@ Parser::parse_update( { Redland::Model model(*world->rdf_world, str.c_str(), str.length(), base_uri); + std::cout << "PARSE UPDATE " << str << endl; + // Delete anything explicitly declared to not exist Glib::ustring query_str = Glib::ustring("SELECT DISTINCT ?o WHERE { ?o a owl:Nothing }"); Redland::Query query(*world->rdf_world, query_str); diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index f70c59bc..35d304f8 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -225,7 +225,9 @@ Serialiser::finish() } } + delete _model; _base_uri = ""; + return ret; } |