diff options
Diffstat (limited to 'test/uk/ac/ox/cs/data/sample/Sampler.java')
| -rw-r--r-- | test/uk/ac/ox/cs/data/sample/Sampler.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/uk/ac/ox/cs/data/sample/Sampler.java b/test/uk/ac/ox/cs/data/sample/Sampler.java new file mode 100644 index 0000000..205b29b --- /dev/null +++ b/test/uk/ac/ox/cs/data/sample/Sampler.java | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | package uk.ac.ox.cs.data.sample; | ||
| 2 | |||
| 3 | import org.openrdf.rio.RDFHandlerException; | ||
| 4 | import org.openrdf.rio.turtle.TurtleWriter; | ||
| 5 | |||
| 6 | public abstract class Sampler { | ||
| 7 | |||
| 8 | protected RDFGraph m_graph; | ||
| 9 | protected TurtleWriter m_writer; | ||
| 10 | |||
| 11 | public Sampler(RDFGraph graph, TurtleWriter writer) { | ||
| 12 | m_graph = graph; | ||
| 13 | m_writer = writer; | ||
| 14 | } | ||
| 15 | |||
| 16 | public abstract void setLimit(int limit); | ||
| 17 | |||
| 18 | public abstract void sample() throws RDFHandlerException; | ||
| 19 | |||
| 20 | public abstract void dispose(); | ||
| 21 | |||
| 22 | |||
| 23 | } | ||
