summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/HTTPEngineSender.cpp2
-rw-r--r--src/engine/HTTPClientSender.cpp2
-rw-r--r--src/serialisation/Serialiser.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp
index c1261102..7f41dca0 100644
--- a/src/client/HTTPEngineSender.cpp
+++ b/src/client/HTTPEngineSender.cpp
@@ -128,7 +128,7 @@ HTTPEngineSender::put(const URI& uri,
i->first.str(),
AtomRDF::atom_to_node(model, i->second));
- const string str = model.serialise_to_string();
+ const string str = model.serialise_to_string("turtle");
SoupMessage* msg = soup_message_new(SOUP_METHOD_PUT, full_uri.c_str());
assert(msg);
soup_message_set_request(msg, "application/x-turtle", SOUP_MEMORY_COPY, str.c_str(), str.length());
diff --git a/src/engine/HTTPClientSender.cpp b/src/engine/HTTPClientSender.cpp
index 29f5e8a5..4f2a8ebd 100644
--- a/src/engine/HTTPClientSender.cpp
+++ b/src/engine/HTTPClientSender.cpp
@@ -66,7 +66,7 @@ HTTPClientSender::put(const URI& uri,
i->first.str(),
AtomRDF::atom_to_node(model, i->second));
- const string str = model.serialise_to_string();
+ const string str = model.serialise_to_string("turtle");
send_chunk(str);
}
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index a4ab5fa7..bc6b317a 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -226,9 +226,9 @@ Serialiser::finish()
{
string ret = "";
if (_mode == TO_FILE) {
- _model->serialise_to_file(_base_uri);
+ _model->serialise_to_file(_base_uri, "turtle");
} else {
- char* c_str = _model->serialise_to_string();
+ char* c_str = _model->serialise_to_string("turtle");
if (c_str != NULL) {
ret = c_str;
free(c_str);