 import Foundation
 import SPARQLSyntax
 import Kineo
+import Diomede
 
 /// Parse the supplied RDF files and load the resulting RDF triples into the database's
 /// QuadStore in the supplied named graph (or into a graph named with the corresponding

        #endif
        let graph   = defaultGraphTerm ?? Term(value: path, type: .iri)
        
        let parser = RDFParserCombined()
        var quads = [Quad]()
        if verbose {
            warn("Parsing RDF...")
        }
        count = try parser.parse(file: filename, defaultGraph: graph, base: graph.value) { (s, p, o, g) in
            let q = Quad(subject: s, predicate: p, object: o, graph: g)
            quads.append(q)
        }
        
        if verbose {
            print("Loading RDF...")
        }
        try store.load(version: version, quads: quads)
    }
    return count
}

    }
} catch let error {
    print("*** \(error)")
    exit(1)
}


