Mercurial > hg > classical
comparison utilities/composer/composer.cpp @ 21:ea477e4cc75c classical-rdf
* update for newer dataquay
author | Chris Cannam |
---|---|
date | Thu, 25 Feb 2010 18:21:53 +0000 |
parents | c4cb65c436ef |
children | 9abc896958cf |
comparison
equal
deleted
inserted
replaced
20:c4cb65c436ef | 21:ea477e4cc75c |
---|---|
33 { | 33 { |
34 QUrl url = QUrl::fromLocalFile(fileName); | 34 QUrl url = QUrl::fromLocalFile(fileName); |
35 | 35 |
36 cerr << "Importing from URL " << url << " ..."; | 36 cerr << "Importing from URL " << url << " ..."; |
37 try { | 37 try { |
38 store->import(url, BasicStore::ImportIgnoreDuplicates, "ntriples"); | 38 store->import(url, BasicStore::ImportPermitDuplicates, "ntriples"); |
39 } catch (RDFException e) { | 39 } catch (RDFException e) { |
40 cerr << "failed" << endl; | 40 cerr << "failed" << endl; |
41 cerr << "Import failed: " << e.what() << endl; | 41 cerr << "Import failed: " << e.what() << endl; |
42 return false; | 42 return false; |
43 } | 43 } |