comparison rdf/RDFFeatureWriter.cpp @ 739:51d3b8e816b8

Merge from branch "dataquay". Next release will require Dataquay v0.9
author Chris Cannam
date Fri, 25 May 2012 14:58:21 +0100
parents 31ab733841d0
children e802e550a1f2
comparison
equal deleted inserted replaced
735:66c3f4e060e9 739:51d3b8e816b8
172 172
173 if (m_startedStreamTransforms[stream].find(transform) == 173 if (m_startedStreamTransforms[stream].find(transform) ==
174 m_startedStreamTransforms[stream].end()) { 174 m_startedStreamTransforms[stream].end()) {
175 m_startedStreamTransforms[stream].insert(transform); 175 m_startedStreamTransforms[stream].insert(transform);
176 writeLocalFeatureTypes 176 writeLocalFeatureTypes
177 (stream, transform, output, m_rdfDescriptions[pluginId]); 177 (stream, transform, output, m_rdfDescriptions[pluginId],
178 summaryType);
178 } 179 }
179 180
180 if (m_singleFileName != "" || m_stdout) { 181 if (m_singleFileName != "" || m_stdout) {
181 if (m_startedTrackIds.find(trackId) == m_startedTrackIds.end()) { 182 if (m_startedTrackIds.find(trackId) == m_startedTrackIds.end()) {
182 writeSignalDescription(stream, trackId); 183 writeSignalDescription(stream, trackId);
388 stream << " mo:time [\n" 389 stream << " mo:time [\n"
389 << " a tl:Interval ;\n" 390 << " a tl:Interval ;\n"
390 << " tl:onTimeLine " 391 << " tl:onTimeLine "
391 << timelineURI << "\n ] .\n\n"; 392 << timelineURI << "\n ] .\n\n";
392 393
393 stream << timelineURI << " a tl:Timeline .\n"; 394 stream << timelineURI << " a tl:Timeline .\n\n";
394 } 395 }
395 396
396 void 397 void
397 RDFFeatureWriter::writeLocalFeatureTypes(QTextStream *sptr, 398 RDFFeatureWriter::writeLocalFeatureTypes(QTextStream *sptr,
398 const Transform &transform, 399 const Transform &transform,
399 const Plugin::OutputDescriptor &od, 400 const Plugin::OutputDescriptor &od,
400 PluginRDFDescription &desc) 401 PluginRDFDescription &desc,
402 std::string summaryType)
401 { 403 {
402 QString outputId = od.identifier.c_str(); 404 QString outputId = od.identifier.c_str();
403 QTextStream &stream = *sptr; 405 QTextStream &stream = *sptr;
404 406
405 // There is no "needFeatureType" for track-level outputs, because 407 // There is no "needFeatureType" for track-level outputs, because
410 bool needEventType = false; 412 bool needEventType = false;
411 bool needSignalType = false; 413 bool needSignalType = false;
412 414
413 //!!! bin names, extents and so on can be written out using e.g. vamp:bin_names ( "a" "b" "c" ) 415 //!!! bin names, extents and so on can be written out using e.g. vamp:bin_names ( "a" "b" "c" )
414 416
415 if (desc.getOutputDisposition(outputId) == 417 if (summaryType == "" &&
418 desc.getOutputDisposition(outputId) ==
416 PluginRDFDescription::OutputDense) { 419 PluginRDFDescription::OutputDense) {
417 420
418 // no feature events, so may need signal type but won't need 421 // no feature events, so may need signal type but won't need
419 // event type 422 // event type
420 423