MARMOTTA-556: fixed api
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/374d3811 Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/374d3811 Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/374d3811 Branch: refs/heads/MARMOTTA-556 Commit: 374d38116730db078187b4c076e979d226525be8 Parents: 4bcec93 Author: Sergio Fernández <[email protected]> Authored: Fri Oct 24 19:47:04 2014 +0200 Committer: Sergio Fernández <[email protected]> Committed: Fri Oct 24 19:47:04 2014 +0200 ---------------------------------------------------------------------- .../apache/marmotta/platform/ldf/api/LdfService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/374d3811/platform/marmotta-ldf/src/main/java/org/apache/marmotta/platform/ldf/api/LdfService.java ---------------------------------------------------------------------- diff --git a/platform/marmotta-ldf/src/main/java/org/apache/marmotta/platform/ldf/api/LdfService.java b/platform/marmotta-ldf/src/main/java/org/apache/marmotta/platform/ldf/api/LdfService.java index c0a9876..1652818 100644 --- a/platform/marmotta-ldf/src/main/java/org/apache/marmotta/platform/ldf/api/LdfService.java +++ b/platform/marmotta-ldf/src/main/java/org/apache/marmotta/platform/ldf/api/LdfService.java @@ -32,6 +32,8 @@ import java.io.OutputStream; */ public interface LdfService { + final static int PAGE_SIZE = 100; + /** * Writes a fragment matching the specified triple fragment pattern * specified (null values are wildcards). @@ -39,12 +41,11 @@ public interface LdfService { * @param subject fragment subject * @param predicate fragmnent predicate * @param object fragment object - * @param offset index at which to start the page - * @param limit maximum number of triples + * @param page number of page (starting with 1) * @param format RDF serialization * @param out output stream where write the fragment */ - void writeFragment(URI subject, URI predicate, Value object, int offset, int limit, RDFFormat format, OutputStream out) throws RepositoryException; + void writeFragment(URI subject, URI predicate, Value object, int page, RDFFormat format, OutputStream out) throws RepositoryException; /** * Writes a fragment matching the specified quad fragment pattern @@ -54,11 +55,10 @@ public interface LdfService { * @param predicate fragmnent predicate * @param object fragment object * @param context named graph - * @param offset index at which to start the page - * @param limit maximum number of triples + * @param page number of page (starting with 1) * @param format RDF serialization * @param out output stream where write the fragment */ - void writeFragment(URI subject, URI predicate, Value object, Resource context, int offset, int limit, RDFFormat format, OutputStream out) throws RepositoryException; + void writeFragment(URI subject, URI predicate, Value object, Resource context, int page, RDFFormat format, OutputStream out) throws RepositoryException; }
