changeset 2:ff067a1e7e3d classical-rdf

* work on conductors etc
author Chris Cannam
date Fri, 04 Dec 2009 17:24:22 +0000
parents 29ca5974905d
children 62324586b8d0
files import/Import.cpp import/import.pro
diffstat 2 files changed, 33 insertions(+), 3 deletions(-) [+]
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;
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/import/import.pro	Fri Dec 04 17:24:22 2009 +0000
@@ -0,0 +1,26 @@
+TEMPLATE = app
+TARGET = importer
+CONFIG += debug
+DEPENDPATH += .
+INCLUDEPATH += . ../common ../../turbot
+
+OBJECTS_DIR = o
+MOC_DIR = m
+
+PRE_TARGETDEPS += ../common/libcommon.a
+
+LIBS += ../common/libcommon.a ../../turbot/dataquay/libdataquay.a ../../turbot/ext/libext.a
+
+# Input
+HEADERS += Importer.h ImportClassicalComposersOrg.h ImportClassicalDotNet.h ImportHoboken.h ImportWikipediaComposers.h ImportWikipediaWorks.h ImportWikipediaWorksK.h ImportWikipediaWorksList.h
+SOURCES += Import.cpp ImportClassicalComposersOrg.cpp ImportClassicalDotNet.cpp ImportHoboken.cpp ImportWikipediaComposers.cpp ImportWikipediaWorks.cpp ImportWikipediaWorksK.cpp ImportWikipediaWorksList.cpp
+
+solaris* {
+	 
+	debug {
+              QMAKE_CXXFLAGS_DEBUG += -xprofile=tcov
+	      LIBS += -xprofile=tcov
+	}
+
+}
+