summaryrefslogtreecommitdiffstats
path: root/src/progs/patch_loader
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/patch_loader')
-rw-r--r--src/progs/patch_loader/patch_loader.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/progs/patch_loader/patch_loader.cpp b/src/progs/patch_loader/patch_loader.cpp
index d25ac24f..f011d308 100644
--- a/src/progs/patch_loader/patch_loader.cpp
+++ b/src/progs/patch_loader/patch_loader.cpp
@@ -15,12 +15,13 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <iostream>
+#include <unistd.h>
+#include <raul/Path.h>
+#include <raul/RDFWorld.h>
#include "OSCModelEngineInterface.h"
#include "Loader.h"
#include "PatchModel.h"
-#include "raul/Path.h"
-#include <iostream>
-#include <unistd.h>
#include "cmdline.h" // generated by gengetopt
using std::cout; using std::endl;
@@ -51,9 +52,16 @@ int main(int argc, char** argv)
/* **** Mr. Spock.. Engage **** */
+ Raul::RDF::World rdf_world;
+ rdf_world.add_prefix("xsd", "http://www.w3.org/2001/XMLSchema#");
+ rdf_world.add_prefix("ingen", "http://drobilla.net/ns/ingen#");
+ rdf_world.add_prefix("ingenuity", "http://drobilla.net/ns/ingenuity#");
+ rdf_world.add_prefix("lv2", "http://lv2plug.in/ontology#");
+ rdf_world.add_prefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#");
+ rdf_world.add_prefix("doap", "http://usefulinc.com/ns/doap#");
SharedPtr<OSCModelEngineInterface> engine(new OSCModelEngineInterface(engine_url));
- Loader loader(engine);
+ Loader loader(engine, &rdf_world);
/* Connect to engine */
engine->attach(-1, client_port);
@@ -73,7 +81,7 @@ int main(int argc, char** argv)
for (uint i=0; i < args_info.inputs_num; ++i) {
cerr << "FIXME: load patch under root" << endl;
cerr << "Load " << args_info.inputs[i] << endl;
- loader.load(args_info.inputs[i], Path("/"), "");
+ loader.load(&rdf_world, string("file:") + args_info.inputs[i], Path("/"), "");
}
return 0;