Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
mithun96 committed Jun 5, 2018
1 parent ba40396 commit fe733a5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 142,7 @@ public void parserText(String data) throws Exception {
}

public void filterBNodes() {
String bNode = "__bNode:";
String bNode = "bNode:"; // there are some objects that start with "_:bnode"
ArrayList<Triple> newTriples = new ArrayList<>();
for (int i = 0; i < triples.size(); i ) {
String subject = triples.get(i).getSubject().getName();
Expand All @@ -151,6 151,7 @@ public void filterBNodes() {
newTriples.add(triples.get(i));
}
}
triples = newTriples;
triples.clear();
this.setTriples(newTriples);
}
}

0 comments on commit fe733a5

Please sign in to comment.