diff rdf/PluginRDFDescription.cpp @ 494:81963c51b488

* Add ability to export a transform structure as RDF -- for use when exporting data from runner, so as to refer back to the generating transform from the audio features rdf * some improvements to pane & layer management when importing rdf, but it's all still a big hack here
author Chris Cannam
date Tue, 25 Nov 2008 17:46:02 +0000
parents 82ab61fa9223
children 0944d13689b2
line wrap: on
line diff
--- a/rdf/PluginRDFDescription.cpp	Tue Nov 25 13:43:56 2008 +0000
+++ b/rdf/PluginRDFDescription.cpp	Tue Nov 25 17:46:02 2008 +0000
@@ -149,6 +149,15 @@
     return m_outputUnitMap.find(outputId)->second;
 }
 
+QString
+PluginRDFDescription::getOutputUri(QString outputId) const
+{
+    if (m_outputUriMap.find(outputId) == m_outputUriMap.end()) {
+        return "";
+    }
+    return m_outputUriMap.find(outputId)->second;
+}
+
 bool
 PluginRDFDescription::index() 
 {
@@ -314,6 +323,8 @@
         QString outputId = results[i]["output_id"].value;
         QString outputType = results[i]["output_type"].value;
 
+        m_outputUriMap[outputId] = outputUri;
+
         if (outputType.contains("DenseOutput")) {
             m_outputDispositions[outputId] = OutputDense;
         } else if (outputType.contains("SparseOutput")) {