Mercurial > hg > classical
diff import/Import.cpp @ 2:ff067a1e7e3d classical-rdf
* work on conductors etc
author | Chris Cannam |
---|---|
date | Fri, 04 Dec 2009 17:24:22 +0000 |
parents | 29ca5974905d |
children | 62324586b8d0 |
line wrap: on
line diff
--- a/import/Import.cpp Thu Dec 03 15:42:10 2009 +0000 +++ b/import/Import.cpp Fri Dec 04 17:24:22 2009 +0000 @@ -426,7 +426,11 @@ { QString pfx = c->property("uri").toUrl().toString(); DEBUG << "pfx = " << pfx << endl; - if (!pfx.contains("composer/")) pfx = ""; + if (!pfx.contains("composer/")) pfx = ":work/"; + else { + pfx.replace("composer/", "work/"); + pfx += "/"; + } static QSet<QString> convSet; @@ -442,7 +446,7 @@ conv.replace(":", "_"); conv.replace(QRegExp("[^a-zA-Z0-9_-]"), ""); - if (pfx != "") conv = pfx + "/work/" + conv; + if (pfx != "") conv = pfx + conv; // I think actually for works we want to merge duplicates rather than // assign them separate URIs, _unless_ they lack a viable opus number @@ -770,7 +774,7 @@ DEBUG << "Stored, now saving" << endl; - outstore->save("test-out.ttl"); + outstore->save("imported.ttl"); DEBUG << "Saved" << endl;