diff options
author | David Robillard <d@drobilla.net> | 2007-01-12 18:35:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-01-12 18:35:03 +0000 |
commit | 0b5e45ec738086206b159e239a0801ea5bccb09f (patch) | |
tree | 0e0fe87c6d15f056dad68878ada5bbdae3b57104 /src/libs/client | |
parent | 09a4ea31dc9ce8ef4cd399a6c68054aafe31c325 (diff) | |
download | ingen-0b5e45ec738086206b159e239a0801ea5bccb09f.tar.gz ingen-0b5e45ec738086206b159e239a0801ea5bccb09f.tar.bz2 ingen-0b5e45ec738086206b159e239a0801ea5bccb09f.zip |
Fix RDF saving to use namespace prefixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@253 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/Loader.cpp | 1 | ||||
-rw-r--r-- | src/libs/client/Serializer.cpp | 8 | ||||
-rw-r--r-- | src/libs/client/Serializer.h | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/client/Loader.cpp b/src/libs/client/Loader.cpp index 9c6f7fb0..5120b97b 100644 --- a/src/libs/client/Loader.cpp +++ b/src/libs/client/Loader.cpp @@ -34,6 +34,7 @@ Loader::Loader(SharedPtr<ModelEngineInterface> engine, SharedPtr<Namespaces> nam // FIXME: hack _namespaces->add("ingen", "http://codeson.net/ns/ingen#"); _namespaces->add("ingenuity", "http://codeson.net/ns/ingenuity#"); + _namespaces->add("lv2", "http://lv2plug.in/ontology#>"); } diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp index 5ce2674a..ef19d94d 100644 --- a/src/libs/client/Serializer.cpp +++ b/src/libs/client/Serializer.cpp @@ -47,6 +47,14 @@ namespace Ingen { namespace Client { +Serializer::Serializer() +{ + _writer.add_prefix("ingen", "http://codeson.net/ns/ingen#"); + _writer.add_prefix("ingenuity", "http://codeson.net/ns/ingenuity#"); + _writer.add_prefix("lv2", "http://lv2plug.in/ontology#>"); +} + + /** Begin a serialization to a file. * * This must be called before any serializing methods. diff --git a/src/libs/client/Serializer.h b/src/libs/client/Serializer.h index 2b896290..5476002c 100644 --- a/src/libs/client/Serializer.h +++ b/src/libs/client/Serializer.h @@ -57,6 +57,8 @@ class ModelEngineInterface; class Serializer { public: + Serializer(); + //void path(const string& path) { _patch_search_path = path; } //const string& path() { return _patch_search_path; } |