diff options
Diffstat (limited to 'src/engine/Machine.cpp')
-rw-r--r-- | src/engine/Machine.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp index b61e8d0..3cb85c1 100644 --- a/src/engine/Machine.cpp +++ b/src/engine/Machine.cpp @@ -352,22 +352,20 @@ Machine::write_state(Sord::Model& model) { using namespace Raul; - model.world().add_prefix("machina", "http://drobilla.net/ns/machina#"); - model.add_statement(model.base_uri(), - Sord::Curie(model.world(), "rdf:type"), - Sord::Curie(model.world(), "machina:Machine")); + Sord::URI(model.world(), MACHINA_URI_RDF "type"), + Sord::URI(model.world(), MACHINA_NS_Machine)); for (Nodes::const_iterator n = _nodes.begin(); n != _nodes.end(); ++n) { (*n)->write_state(model); if ((*n)->is_initial()) { model.add_statement(model.base_uri(), - Sord::Curie(model.world(), "machina:initialNode"), + Sord::URI(model.world(), MACHINA_NS_start), (*n)->rdf_id(model.world())); } else { model.add_statement(model.base_uri(), - Sord::Curie(model.world(), "machina:node"), + Sord::URI(model.world(), MACHINA_NS_node), (*n)->rdf_id(model.world())); } } @@ -379,7 +377,7 @@ Machine::write_state(Sord::Model& model) (*e)->write_state(model); model.add_statement(model.base_uri(), - Sord::Curie(model.world(), "machina:edge"), + Sord::URI(model.world(), MACHINA_NS_arc), (*e)->rdf_id(model.world())); } |