Skip to content

Commit

Permalink
Merge changes from r196. Removed an unused import and dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
KMax committed Jun 28, 2014
1 parent e06579e commit 1e888f4
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 192 deletions.
12 changes: 1 addition & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-arq</artifactId>
<version>2.9.3</version>
</dependency>
<dependency>
<groupId>org.apache.jena</groupId>
<artifactId>jena-tdb</artifactId>
Expand All @@ -26,18 +21,13 @@
<dependency>
<groupId>com.sleepycat</groupId>
<artifactId>je</artifactId>
<version>5.0.73</version>
<version>4.1.10</version>
</dependency>
<dependency>
<groupId>com.espertech</groupId>
<artifactId>esper</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/deri/cqels/engine/CQELSEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ private String matchPattern(Quad quad) {

private EnQuad encode(Quad quad) {
return new EnQuad(encode(quad.getGraph()), encode(quad.getSubject()),
encode(quad.getSubject()), encode(quad.getObject()));
encode(quad.getPredicate()), encode(quad.getObject()));
}

private EnQuad encode(Node graph,Triple triple) {
return new EnQuad(encode(graph), encode(triple.getSubject()),
encode(triple.getSubject()), encode(triple.getObject()));
encode(triple.getPredicate()), encode(triple.getObject()));
}

public long encode(Node node) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.deri.cqels.data.Mapping;
import org.deri.cqels.engine.iterator.MappingIterator;
import org.deri.cqels.lang.cqels.OpStream;
import org.hamcrest.core.IsInstanceOf;

import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.sparql.algebra.op.OpTriple;
Expand Down
Loading

1 comment on commit 1e888f4

@KMax
Copy link
Owner Author

@KMax KMax commented on 1e888f4 Jun 28, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to CQELSEngine are from r196 ("fix the encode bug in CQELSEngine.java"): https://code.google.com/p/cqels/source/detail?r=196

Please sign in to comment.