From 2a7eff2d6ecdeed30d0a797ec36926fd1a5eb4fc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Feb 2011 20:05:45 +0000 Subject: Sord::Resource => Sord::URI. Tidy up serialisation code. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2964 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Loader.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/engine/Loader.cpp b/src/engine/Loader.cpp index 2fe161c..5902b58 100644 --- a/src/engine/Loader.cpp +++ b/src/engine/Loader.cpp @@ -79,17 +79,17 @@ Loader::load(const Glib::ustring& uri) Sord::Node nil; - Sord::Resource rdf_type(_rdf_world, NS_RDF "type"); - Sord::Resource machina_SelectorNode(_rdf_world, NS_MACHINA "initialNode"); - Sord::Resource machina_node(_rdf_world, NS_MACHINA "node"); - Sord::Resource machina_initialNode(_rdf_world, NS_MACHINA "initialNode"); - Sord::Resource machina_duration(_rdf_world, NS_MACHINA "duration"); - Sord::Resource machina_edge(_rdf_world, NS_MACHINA "edge"); - Sord::Resource machina_tail(_rdf_world, NS_MACHINA "tail"); - Sord::Resource machina_head(_rdf_world, NS_MACHINA "head"); - Sord::Resource machina_probability(_rdf_world, NS_MACHINA "probability"); - - Sord::Node machine_node = Sord::Resource(_rdf_world, "."); + Sord::URI rdf_type(_rdf_world, NS_RDF "type"); + Sord::URI machina_SelectorNode(_rdf_world, NS_MACHINA "initialNode"); + Sord::URI machina_node(_rdf_world, NS_MACHINA "node"); + Sord::URI machina_initialNode(_rdf_world, NS_MACHINA "initialNode"); + Sord::URI machina_duration(_rdf_world, NS_MACHINA "duration"); + Sord::URI machina_edge(_rdf_world, NS_MACHINA "edge"); + Sord::URI machina_tail(_rdf_world, NS_MACHINA "tail"); + Sord::URI machina_head(_rdf_world, NS_MACHINA "head"); + Sord::URI machina_probability(_rdf_world, NS_MACHINA "probability"); + + Sord::Node machine_node = Sord::URI(_rdf_world, "."); /* Get initial nodes */ for (Sord::Iter i = model.find(machine_node, machina_initialNode, nil); -- cgit v1.2.1