aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-15 23:30:14 +0000
committerDavid Robillard <d@drobilla.net>2011-02-15 23:30:14 +0000
commitd1fc79afd2c670d95527145b59fb1be10070e02c (patch)
tree7a95b61346a4e4bbc253a127fe64616870a64bdc /src/engine
parentf4c1022dd9738b28fdef77eda131f73618bb3bc1 (diff)
downloadmachina-d1fc79afd2c670d95527145b59fb1be10070e02c.tar.gz
machina-d1fc79afd2c670d95527145b59fb1be10070e02c.tar.bz2
machina-d1fc79afd2c670d95527145b59fb1be10070e02c.zip
Remove fuzzy lack of distinction between URIs and CURIEs.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2954 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-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()));
}
}