Skip to content

Commit

Permalink
[ issue #12 ] minor code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Dec 23, 2014
1 parent 4ee1ae2 commit 6272848
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public Iterator<Node> listGraphNodes() {

@Override
protected void _close() {
// factory.getDictionary().close();
// Nothing to be done here...
}

@Override
Expand All @@ -53,47 +53,44 @@ protected Graph _createDefaultGraph() {
}

@Override
protected boolean _containsGraph(Node graphNode) {
protected boolean _containsGraph(final Node graphNode) {
return false;
}

@Override
protected void addToDftGraph(Node s, Node p, Node o) {
protected void addToDftGraph(final Node s, final Node p, final Node o) {
getDefaultGraph().add(new Triple(s,p,o));
}

@Override
protected void addToNamedGraph(Node g, Node s, Node p, Node o) {
// TODO Auto-generated method stub

protected void addToNamedGraph(final Node g, final Node s, final Node p, final Node o) {
// Nothing to be done here...
}

@Override
protected void deleteFromDftGraph(Node s, Node p, Node o) {
protected void deleteFromDftGraph(final Node s, final Node p, final Node o) {
getDefaultGraph().delete(new Triple(s,p,o));

}

@Override
protected void deleteFromNamedGraph(Node g, Node s, Node p, Node o) {
// TODO Auto-generated method stub

protected void deleteFromNamedGraph(final Node g, final Node s, final Node p, final Node o) {
// Nothing to be done here...
}

@Override
protected Iterator<Quad> findInDftGraph(Node s, Node p, Node o) {
protected Iterator<Quad> findInDftGraph(final Node s, final Node p, final Node o) {
return triples2quads(Quad.tripleInQuad, getDefaultGraph().find(s, p, o));
}

@Override
protected Iterator<Quad> findInSpecificNamedGraph(Node g, Node s, Node p, Node o) {
// TODO Auto-generated method stub
protected Iterator<Quad> findInSpecificNamedGraph(final Node g, final Node s, final Node p, final Node o) {
// Nothing to be done here...
return null;
}

@Override
protected Iterator<Quad> findInAnyNamedGraphs(Node s, Node p, Node o) {
// TODO Auto-generated method stub
protected Iterator<Quad> findInAnyNamedGraphs(final Node s, final Node p, final Node o) {
// Nothing to be done here...
return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public float getValueForNormalization() throws IOException {

@Override
public Query getQuery() {
return null;
return SparqlQuery.this;
}

@Override
Expand Down

0 comments on commit 6272848

Please sign in to comment.