This content has been marked as final. Show 3 replies
The batch loader in sdordf.jar does not accept N3 format. You can try one of the following
- using Jena Adaptor (which accepts N3, NTRIPLE, RDF/XML), or
- convert N3 to NTriple format and re-try the batch loading.
Ryan,1 person found this helpful
you can use the jena library to load an oracle model directly from an N3 file:
GraphOracleSem oracleGraph = new GraphOracleSem(oracle, "myModel", true);
oracleModel = new ModelOracleSem(oracleGraph);
InputStream is = FileManager.get().open("xxx.n3");
// read file contents into oracleModel
oracleModel.read(is, "", "N3");
System.out.printf("Size of Oracle model is %d\n", oracleModel.size());
Edited by: reb57 on Mar 5, 2010 1:04 PM
Switching to the Jena API solved the problem. Thanks for the help!