diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/Engine.cpp | 6 | ||||
-rw-r--r-- | src/engine/HTTPClientSender.cpp | 6 | ||||
-rw-r--r-- | src/engine/events/CreatePatchEvent.cpp | 2 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 4d697b5e..120433fb 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -190,9 +190,9 @@ Engine::activate(size_t parallelism) if (!root_patch) { root_patch = new PatchImpl(*this, "", 1, NULL, _audio_driver->sample_rate(), _audio_driver->buffer_size(), 1); - root_patch->add_property("rdf:type", Raul::Atom(Raul::Atom::URI, "ingen:Patch")); - root_patch->add_property("rdf:type", Raul::Atom(Raul::Atom::URI, "ingen:Node")); - root_patch->set_property("ingen:polyphony", Raul::Atom(int32_t(1))); + root_patch->meta().set_property("rdf:type", Raul::Atom(Raul::Atom::URI, "ingen:Patch")); + root_patch->meta().set_property("ingen:polyphony", Raul::Atom(int32_t(1))); + root_patch->set_property("rdf:type", Raul::Atom(Raul::Atom::URI, "ingen:Node")); root_patch->activate(); _world->store->add(root_patch); root_patch->compiled_patch(root_patch->compile()); diff --git a/src/engine/HTTPClientSender.cpp b/src/engine/HTTPClientSender.cpp index fa6421b9..41f517cb 100644 --- a/src/engine/HTTPClientSender.cpp +++ b/src/engine/HTTPClientSender.cpp @@ -77,8 +77,7 @@ HTTPClientSender::connect(const Path& src_path, const Path& dst_path) { const string msg = string( "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" - "@prefix ingen: <http://drobilla.net/ns/ingen#> .\n" - "@prefix lv2var: <http://lv2plug.in/ns/ext/instance-var#> .\n\n<").append( + "@prefix ingen: <http://drobilla.net/ns/ingen#> .\n").append( "<> ingen:connection [\n" "\tingen:destination <").append(dst_path.str()).append("> ;\n" "\tingen:source <").append(src_path.str()).append(">\n] .\n"); @@ -100,8 +99,7 @@ HTTPClientSender::set_property(const URI& subject, const URI& key, const Atom& v const string msg = string( "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" "@prefix ingen: <http://drobilla.net/ns/ingen#> .\n" - "@prefix ingenuity: <http://drobilla.net/ns/ingenuity#> .\n" - "@prefix lv2var: <http://lv2plug.in/ns/ext/instance-var#> .\n\n<").append( + "@prefix ingenuity: <http://drobilla.net/ns/ingenuity#> .\n").append( subject.str()).append("> ingen:property [\n" "rdf:predicate ").append(key.str()).append(" ;\n" "rdf:value ").append(node.to_string()).append("\n] .\n"); diff --git a/src/engine/events/CreatePatchEvent.cpp b/src/engine/events/CreatePatchEvent.cpp index 16f749a3..ccb4f887 100644 --- a/src/engine/events/CreatePatchEvent.cpp +++ b/src/engine/events/CreatePatchEvent.cpp @@ -84,8 +84,8 @@ CreatePatchEvent::pre_process() _patch = new PatchImpl(_engine, path.name(), poly, _parent, _engine.audio_driver()->sample_rate(), _engine.audio_driver()->buffer_size(), _poly); _patch->meta().properties().insert(_properties.begin(), _properties.end()); + _patch->meta().set_property("rdf:type", Atom(Atom::URI, "ingen:Patch")); _patch->set_property("rdf:type", Atom(Atom::URI, "ingen:Node")); - _patch->set_property("rdf:instanceOf", Atom(Atom::URI, _patch->meta_uri().str())); if (_parent != NULL) { _parent->add_node(new PatchImpl::Nodes::Node(_patch)); |