Skip to content

Commit 11c52b4

Browse files
committed
fixed offset value
1 parent 294e936 commit 11c52b4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>es.upm.oeg</groupId>
1313
<artifactId>r4r</artifactId>
14-
<version>0.1</version>
14+
<version>0.4</version>
1515
<packaging>jar</packaging>
1616
<name>Restful_API-4-RDF</name>
1717
<description>Automatic creation of Restful APIs from RDF Queries</description>

src/main/java/es/upm/oeg/r4r/retriever/SparqlQuery.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ public ResultSet execute(HttpClient client, String endpoint, Map<String, String[
8787

8888
}
8989

90+
int offsetValue = maxSizeParam * offsetParam;
91+
9092
qs.append("\nLIMIT " + maxSizeParam + "\n");
91-
qs.append("\nOFFSET " + offsetParam+ "\n");
93+
qs.append("\nOFFSET " + offsetValue+ "\n");
9294

9395
Query q = qs.asQuery();
9496

src/test/java/es/upm/oeg/r4r/ApplicationTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package es.upm.oeg.r4r;
22

3+
import org.junit.Test;
4+
35
/**
46
* @author Badenes Olmedo, Carlos <[email protected]>
57
*/
@@ -8,4 +10,5 @@ public class ApplicationTest {
810
public static void main (String[] args){
911
Application.main(args);
1012
}
13+
1114
}

0 commit comments

Comments
 (0)