I am creating a new database in stardog using java.
When I am creating the database and importing a RDF file in localhost its working.
But when I am creating db in remote server I am getting a file not found exception for the same RDF file.
Please take a look at my code
System.out.println("start updating db");
String myDBName = "myDB" ;
StardogDBMS dbms =
//StardogDBMS.toServer("snarl://localhost:5820/")
StardogDBMS.toServer("snarl://myRemoteServer:5820/")
.credentials("admin", "admin".toCharArray()).login();
File file = new File("src\\main\\webapp\\test.rdf"))
System.out.println("creating " + myDBName +" and loading the rdf file" );
dbms.disk(myDBName).create(file));
dbms.logout();
System.out.println("created " + myDBName +" and loaded the rdf file" );
please help. Is there any turnaround like passing a stream to database for importing RDF file. Here is the exception I am getting.
start updating db
creating myDB and loading the rdf file
File: xxx\xxxx\test.RDF Message: java.io.FileNotFoundException: xxx\xxxx\test.RDF (No such file or directory)
created myDB and loaded the rdf file