final FastBufferedInputStream in =
new FastBufferedInputStream(new FileInputStream (new File(inFile)));
GZWarcRecord record = new GZWarcRecord();
Filter<WarcRecord> filter = Filters.adaptFilterBURL2WarcRecord (new TrueFilter());
WarcFilteredIterator it = new WarcFilteredIterator(in, record, filter);
WarcHttpResponse response = new WarcHttpResponse();
Graph mdGraph = new org.openrdf.model.impl.GraphImpl();
String mdGraphURI = "http://challenge.semanticweb.org/2008/metadata";
ValueFactory vf = mdGraph.getValueFactory();
String dcNS = "http://purl.org/dc/elements/1.1/";
DatatypeFactory dtf = null;
try {
dtf = DatatypeFactory.newInstance();
} catch (DatatypeConfigurationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
GregorianCalendar c = new GregorianCalendar ();
try {
int cnt = 0;
// while (cnt < 10 && it.hasNext()) {
while (it.hasNext()) {
WarcRecord nextRecord = it.next();
//Get the HttpResponse
try {
response.fromWarcRecord (nextRecord);