From 2702958722392b6fa05d322380a279db25830f33 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 15 May 2012 17:44:24 +0000 Subject: Fix parsing of nested patches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4417 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Parser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/serialisation') diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index 2c56dc1e..8f00ae91 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -257,8 +257,11 @@ parse_node(Ingen::Shared::World* world, const std::string sub_file = string((const char*)sub_uri.buf) + "/" + basename + ".ttl"; + const SerdNode sub_base = serd_node_from_string( + SERD_URI, (const uint8_t*)sub_file.c_str()); + Sord::Model sub_model(*world->rdf_world(), sub_file); - SerdEnv* env = serd_env_new(NULL); + SerdEnv* env = serd_env_new(&sub_base); sub_model.load_file(env, SERD_TURTLE, sub_file); serd_env_free(env); -- cgit v1.2.1