# HG changeset patch # User Chris Cannam # Date 1260294997 0 # Node ID 62324586b8d090ae3a52a4e95d19868efa6c50d7 # Parent ff067a1e7e3d66d0a0f3e30f15aa971e80791932 * commit current data set diff -r ff067a1e7e3d -r 62324586b8d0 import/Import.cpp --- a/import/Import.cpp Fri Dec 04 17:24:22 2009 +0000 +++ b/import/Import.cpp Tue Dec 08 17:56:37 2009 +0000 @@ -593,6 +593,8 @@ ObjectMapper outmapper(outstore); outmapper.setPropertyStorePolicy(ObjectMapper::StoreIfChanged); + outmapper.setObjectStorePolicy(ObjectMapper::StoreAllObjects); + outmapper.setBlankNodePolicy(ObjectMapper::NoBlankNodes); outmapper.setObjectTypePrefix("http://dbtune.org/classical/resource/"); outmapper.setPropertyPrefix("http://dbtune.org/classical/resource/vocab/"); @@ -608,9 +610,11 @@ outstore->addPrefix("dc", "http://purl.org/dc/elements/1.1/"); outstore->addPrefix("bio", "http://purl.org/vocab/bio/0.1/"); outstore->addPrefix("owl", "http://www.w3.org/2002/07/owl#"); - outstore->addPrefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); - outstore->addPrefix("db", "http://dbtune.org/musicbrainz/resource/"); - outstore->addPrefix("dbv", "http://dbtune.org/musicbrainz/resource/vocab/"); + outstore->addPrefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); + outstore->addPrefix("db", "http://dbtune.org/musicbrainz/resource/"); + outstore->addPrefix("dbv", "http://dbtune.org/musicbrainz/resource/vocab/"); + outstore->addPrefix("cmn", "http://purl.org/ontology/classicalmusicnav#"); + outstore->addPrefix("sim", "http://purl.org/ontology/similarity/"); outmapper.addTypeMapping("ClassicalData::Composer", "classical:Composer"); outmapper.addPropertyMapping("ClassicalData::Composer", "pages", "foaf:page");