changeset 592:18488253a3f4

* percent-encode plugin and plugin-output uris
author Chris Cannam
date Mon, 18 May 2009 10:24:36 +0000
parents 7065e921f122
children 4f3e3fb07e0b
files rdf/RDFTransformFactory.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rdf/RDFTransformFactory.cpp	Thu May 14 15:48:07 2009 +0000
+++ b/rdf/RDFTransformFactory.cpp	Mon May 18 10:24:36 2009 +0000
@@ -19,6 +19,7 @@
 #include <vector>
 
 #include <QTextStream>
+#include <QUrl>
 
 #include <iostream>
 #include <cmath>
@@ -395,7 +396,7 @@
 
     if (pluginUri != "") {
         s << uri << " a vamp:Transform ;" << endl;
-        s << "    vamp:plugin <" << pluginUri << "> ;" << endl;
+        s << "    vamp:plugin <" << QUrl(pluginUri).toEncoded().data() << "> ;" << endl;
     } else {
         std::cerr << "WARNING: RDFTransformFactory::writeTransformToRDF: No plugin URI available for plugin id \"" << pluginId.toStdString() << "\", writing synthetic plugin and library resources" << std::endl;
         QString type, soname, label;
@@ -455,7 +456,7 @@
     }
 
     if (outputUri != "") {
-        s << "    vamp:output <" << outputUri << "> ." << endl;
+        s << "    vamp:output <" << QUrl(outputUri).toEncoded().data() << "> ." << endl;
     } else if (outputId != "") {
         s << "    vamp:output [ vamp:identifier \"" << outputId << "\" ] ." << endl;
     } else {