aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine/Edge.cpp8
-rw-r--r--src/engine/Node.cpp10
2 files changed, 9 insertions, 9 deletions
diff --git a/src/engine/Edge.cpp b/src/engine/Edge.cpp
index 5389e69..6af315c 100644
--- a/src/engine/Edge.cpp
+++ b/src/engine/Edge.cpp
@@ -41,7 +41,7 @@ Edge::write_state(Redland::Model& model)
model.add_statement(
rdf_id,
- "rdf:type",
+ Redland::Curie(model.world(), "rdf:type"),
Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:Edge"));
SharedPtr<Node> tail = _tail.lock();
@@ -54,16 +54,16 @@ Edge::write_state(Redland::Model& model)
&& head->rdf_id(model.world()).is_valid());
model.add_statement(rdf_id,
- "machina:tail",
+ Redland::Curie(model.world(), "machina:tail"),
tail->rdf_id(model.world()));
model.add_statement(rdf_id,
- "machina:head",
+ Redland::Curie(model.world(), "machina:head"),
head->rdf_id(model.world()));
model.add_statement(
rdf_id,
- "machina:probability",
+ Redland::Curie(model.world(), "machina:probability"),
AtomRDF::atom_to_node(model, Atom(_probability.get())));
}
diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp
index b7eaf66..52b3604 100644
--- a/src/engine/Node.cpp
+++ b/src/engine/Node.cpp
@@ -227,24 +227,24 @@ Node::write_state(Redland::Model& model)
if (_is_selector)
model.add_statement(
rdf_id,
- "rdf:type",
+ Redland::Curie(model.world(), "rdf:type"),
Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:SelectorNode"));
else
model.add_statement(
rdf_id,
- "rdf:type",
+ Redland::Curie(model.world(), "rdf:type"),
Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:Node"));
model.add_statement(
rdf_id,
- "machina:duration",
+ Redland::Curie(model.world(), "machina:duration"),
AtomRDF::atom_to_node(model, Atom((float)_duration.to_double())));
if (_enter_action) {
_enter_action->write_state(model);
model.add_statement(rdf_id,
- "machina:enterAction",
+ Redland::Curie(model.world(), "machina:enterAction"),
_enter_action->rdf_id(model.world()));
}
@@ -252,7 +252,7 @@ Node::write_state(Redland::Model& model)
_exit_action->write_state(model);
model.add_statement(rdf_id,
- "machina:exitAction",
+ Redland::Curie(model.world(), "machina:exitAction"),
_exit_action->rdf_id(model.world()));
}
}