File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
src/org/linkeddatafragments/datasource Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ package org .linkeddatafragments .datasource ;
2
+
3
+ import com .hp .hpl .jena .rdf .model .Model ;
4
+
5
+ /**
6
+ * Base implementation of a Basic Linked Data Fragment.
7
+ * @author Ruben Verborgh
8
+ */
9
+ public class BasicLinkedDataFragmentImpl implements BasicLinkedDataFragment {
10
+ private final Model triples ;
11
+ private final long totalSize ;
12
+
13
+ /**
14
+ * Create a new Basic Linked Data Fragment.
15
+ * @param triples the triples (possibly partial)
16
+ * @param totalSize the total size
17
+ */
18
+ public BasicLinkedDataFragmentImpl (Model triples , long totalSize ) {
19
+ this .triples = triples ;
20
+ this .totalSize = totalSize ;
21
+ }
22
+
23
+ @ Override
24
+ public Model getTriples () {
25
+ return triples ;
26
+ }
27
+
28
+ @ Override
29
+ public long getTotalSize () {
30
+ return totalSize ;
31
+ }
32
+ }
You can’t perform that action at this time.
0 commit comments