-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Able to load data into neo4j in memory database and iterate over all …
…sparql query files
- Loading branch information
1 parent
45956e7
commit d501936
Showing
3 changed files
with
67 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
private static void write_to_file(String string, String output_file) throws IOException { | ||
BufferedWriter out = null; | ||
|
||
try { | ||
FileWriter fstream = new FileWriter(output_file, true); //true tells to append data. | ||
out = new BufferedWriter(fstream); | ||
out.write(string); | ||
} | ||
|
||
catch (IOException e) { | ||
System.err.println("Error: " + e.getMessage()); | ||
} | ||
|
||
finally { | ||
if(out != null) { | ||
out.close(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters