summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/HTTPClientSender.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/HTTPClientSender.cpp b/src/http/HTTPClientSender.cpp
index ea983ca4..1dfc1da7 100644
--- a/src/http/HTTPClientSender.cpp
+++ b/src/http/HTTPClientSender.cpp
@@ -60,12 +60,13 @@ HTTPClientSender::put(const URI& uri,
: uri.str();
- Sord::Model model(*_engine.world()->rdf_world());
+ const Shared::World& world = _engine.world();
+ Sord::Model model(world.rdf_world());
for (Resource::Properties::const_iterator i = properties.begin();
i != properties.end(); ++i)
model.add_statement(
- Sord::URI(*_engine.world()->rdf_world(), request_uri),
- AtomRDF::atom_to_node(model, i->first.str()),
+ Sord::URI(world.rdf_world(), request_uri),
+ Sord::URI(world.rdf_world(), i->first),
AtomRDF::atom_to_node(model, i->second));
const string str = model.write_to_string("", SERD_TURTLE);