Skip to content

Commit

Permalink
LSQ benchmark based SPARQL query generator
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBuehmann committed Jan 16, 2018
1 parent ff82d78 commit eb2c03e
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public static DirectedGraph<Node, LabeledEdge> asJGraphT(Query query) {

Set<Triple> tps = utils.extractTriplePattern(query);

DirectedGraph<Node, LabeledEdge> g = new DefaultDirectedGraph<Node, LabeledEdge>(LabeledEdge.class);
DirectedGraph<Node, LabeledEdge> g = new DefaultDirectedGraph<>(LabeledEdge.class);

tps.forEach(tp -> {
g.addVertex(tp.getSubject());
Expand Down Expand Up @@ -849,7 +849,7 @@ public ElementGroup getElementGroup(Triple triple){
return triple2Parent.get(triple);
}

static class LabeledEdge extends DefaultEdge {
public static class LabeledEdge extends DefaultEdge {
private final Node s;
private final Node t;
private final Node edge;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1952,8 +1952,8 @@ http://dbpedia.org/ontology/chaplain
http://dbpedia.org/ontology/chef
http://dbpedia.org/ontology/chiefEditor
http://dbpedia.org/ontology/chiefPlace
http://dbpedia.org/ontology/child
http://dbpedia.org/ontology/childOrganisation
#http://dbpedia.org/ontology/child
#http://dbpedia.org/ontology/childOrganisation
http://dbpedia.org/ontology/choreographer
http://dbpedia.org/ontology/cinematography
http://dbpedia.org/ontology/citizenship
Expand Down
Loading

0 comments on commit eb2c03e

Please sign in to comment.