summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/HTTPEngineSender.cpp2
-rw-r--r--src/serialisation/Parser.cpp16
-rw-r--r--src/serialisation/Serialiser.cpp4
-rw-r--r--src/server/HTTPClientSender.cpp2
-rw-r--r--wscript2
5 files changed, 13 insertions, 13 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp
index 96b6a6cf..392c7cf0 100644
--- a/src/client/HTTPEngineSender.cpp
+++ b/src/client/HTTPEngineSender.cpp
@@ -94,7 +94,7 @@ HTTPEngineSender::put(const URI& uri,
AtomRDF::atom_to_node(model, i->first),
AtomRDF::atom_to_node(model, i->second));
- const string str = model.write_to_string("turtle");
+ const string str = model.write_to_string(SERD_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/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index d2a37947..88b12d6c 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -115,8 +115,8 @@ Parser::find_patches(Ingen::Shared::World* world,
const Sord::URI rdfs_seeAlso(*world->rdf_world(), NS_RDFS "seeAlso");
Sord::Model model(*world->rdf_world(), manifest_uri);
- SerdEnv* env = serd_env_new();
- model.load_file(env, manifest_uri);
+ SerdEnv* env = serd_env_new(NULL);
+ model.load_file(env, SERD_TURTLE, manifest_uri);
serd_env_free(env);
std::list<PatchRecord> records;
@@ -169,8 +169,8 @@ Parser::parse_file(Ingen::Shared::World* world,
// Load patch file into model
Sord::Model model(*world->rdf_world(), file_uri);
- SerdEnv* env = serd_env_new();
- model.load_file(env, file_uri);
+ SerdEnv* env = serd_env_new(NULL);
+ model.load_file(env, SERD_TURTLE, file_uri);
serd_env_free(env);
LOG(info) << "Parsing " << file_uri << endl;
@@ -203,8 +203,8 @@ Parser::parse_string(Ingen::Shared::World* world,
{
// Load string into model
Sord::Model model(*world->rdf_world(), base_uri);
- SerdEnv* env = serd_env_new();
- model.load_string(env, str.c_str(), str.length(), base_uri);
+ SerdEnv* env = serd_env_new(NULL);
+ model.load_string(env, SERD_TURTLE, str.c_str(), str.length(), base_uri);
serd_env_free(env);
LOG(info) << "Parsing string";
@@ -512,8 +512,8 @@ Parser::parse_node(Ingen::Shared::World* world,
string((const char*)sub_uri.buf) + "/" + basename + ".ttl";
Sord::Model sub_model(*world->rdf_world(), sub_file);
- SerdEnv* env = serd_env_new();
- sub_model.load_file(env, sub_file);
+ SerdEnv* env = serd_env_new(NULL);
+ sub_model.load_file(env, SERD_TURTLE, sub_file);
serd_env_free(env);
Sord::URI sub_node(*world->rdf_world(), sub_file);
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index 8a1e90b5..7707129c 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -251,9 +251,9 @@ Serialiser::finish()
{
string ret = "";
if (_mode == TO_FILE) {
- _model->write_to_file(_base_uri, "turtle");
+ _model->write_to_file(_base_uri, SERD_TURTLE);
} else {
- ret = _model->write_to_string("turtle");
+ ret = _model->write_to_string(SERD_TURTLE);
}
delete _model;
diff --git a/src/server/HTTPClientSender.cpp b/src/server/HTTPClientSender.cpp
index 1334e6e7..f6078823 100644
--- a/src/server/HTTPClientSender.cpp
+++ b/src/server/HTTPClientSender.cpp
@@ -66,7 +66,7 @@ HTTPClientSender::put(const URI& uri,
AtomRDF::atom_to_node(model, i->first.str()),
AtomRDF::atom_to_node(model, i->second));
- const string str = model.write_to_string("turtle");
+ const string str = model.write_to_string(SERD_TURTLE);
send_chunk(str);
}
diff --git a/wscript b/wscript
index 23568166..95b2414c 100644
--- a/wscript
+++ b/wscript
@@ -55,7 +55,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'raul', uselib_store='RAUL',
atleast_version='0.8.0', mandatory=True)
autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',
- atleast_version='0.2.0', mandatory=False)
+ atleast_version='0.3.0', mandatory=False)
if not Options.options.no_gui:
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM',
atleast_version='2.11.12', mandatory=False)