I have a NQuads file that I want to store it inside the tdb. Here is the
code:

String directory =
"/Users/adeebnoor/Documents/uploadDatasets/dataSetsTDB/new";

 Dataset dataset = TDBFactory.createDataset(directory);

Model tdb = dataset.getDefaultModel();

   String source =
"/Users/adeebnoor/Documents/uploadDatasets/dataSource/drugbank_target_ids.nq"
;

 FileManager.get().readModel(tdb, source);

  System.out.println("Done");
when I run the code above , I got this warning:

12:05:58 WARN  riot                      :: Only triples or default graph
data expected : named graph data ignored

and when I tried to query the tdb, the result is empty.

Am I doing something wrong here ? or is there another way to handle
the NQuads format.

thanks

-- 
Adeeb Noor
Ph.D. Candidate
Dept of Computer Science
University of Colorado at Boulder
Cell: 571-484-3303
Email: [email protected]

Reply via email to