aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/engine/Loader.cpp4
-rw-r--r--src/gui/MachinaGUI.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/Loader.cpp b/src/engine/Loader.cpp
index a9d8fb2..b2c56e5 100644
--- a/src/engine/Loader.cpp
+++ b/src/engine/Loader.cpp
@@ -73,8 +73,8 @@ Loader::load(const Glib::ustring& uri)
Created created;
Sord::Model model(_rdf_world, document_uri);
- SerdEnv* env = serd_env_new();
- model.load_file(env, document_uri);
+ SerdEnv* env = serd_env_new(NULL);
+ model.load_file(env, SERD_TURTLE, document_uri);
serd_env_free(env);
Sord::Node nil;
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index 8565c59..d4c4841 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -435,7 +435,7 @@ MachinaGUI::menu_file_save()
Sord::Model model(_engine->rdf_world(), _save_uri);
_engine->machine()->write_state(model);
- model.write_to_file(_save_uri, "turtle");
+ model.write_to_file(_save_uri, SERD_TURTLE);
}
}
@@ -486,7 +486,7 @@ MachinaGUI::menu_file_save_as()
_save_uri = uri;
Sord::Model model(_engine->rdf_world(), _save_uri);
_engine->machine()->write_state(model);
- model.write_to_file(_save_uri, "turtle");
+ model.write_to_file(_save_uri, SERD_TURTLE);
}
}
}