Skip to content

Commit

Permalink
merge conflicts fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wonheep committed Jun 6, 2018
1 parent 6d9d60e commit d222a94
Show file tree
Hide file tree
Showing 3 changed files with 677 additions and 21 deletions.
34 changes: 13 additions & 21 deletions TripleDataProcessor/src/main/webapp/js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 77,21 @@ var simulation = d3.forceSimulation()
/* NOTE:
- Query for first set of triples in library for the search term
*/
d3.json("http://localhost:8080/TripleDataProcessor/webapi/myresource", function (error, json) {
d3.json("http://localhost:8080/TripleDataProcessor/webapi/myresource", function(error, json) {
if (error) throw error;
var count = JSON.stringify(json).length;

createGraph(json);
update();

setTimeout(function () { requery(); }, 3000);
if (count > 20) {
// document.getElementById("back").style.display="none";
// document.getElementById("main").style.display="none";
createGraph(json);
update();
setTimeout(function () { requery(); }, 3000);
}
else {
window.location.href = "./noresults";
// document.getElementById("column").style.display="none";
}
});

function search_page(){
Expand Down Expand Up @@ -353,22 361,6 @@ function libraryQuery(data) {
}
}

d3.json("http://localhost:8080/TripleDataProcessor/webapi/myresource", function(error, json) {
if (error) throw error;
var count = JSON.stringify(json).length;

if (count > 20) {
// document.getElementById("back").style.display="none";
// document.getElementById("main").style.display="none";
createGraph(json);
update();
}
else {
window.location.href = "./noresults";
// document.getElementById("column").style.display="none";
}
});

function update() {
var links = UniversalL;
var nodes = UniversalN;
Expand Down
Loading

0 comments on commit d222a94

Please sign in to comment.