All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigdata.rdf.rio.ntriples.BigdataNTriplesParserTest Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
/*
 * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
 *
 * Licensed under the Aduna BSD-style license.
 */
package com.bigdata.rdf.rio.ntriples;

import org.openrdf.rio.RDFParser;

import com.bigdata.rdf.model.BigdataValueFactory;
import com.bigdata.rdf.model.BigdataValueFactoryImpl;

/**
 * JUnit test for the N-Triples parser.
 * 
 * @author Arjohn Kampman
 */
public class BigdataNTriplesParserTest extends BigdataNTriplesParserTestCase {

	private BigdataValueFactory valueFactory;
	
	protected void setUp() throws Exception {
		super.setUp();
		valueFactory = BigdataValueFactoryImpl.getInstance(getName());
	}

	protected void tearDown() throws Exception {
		if (valueFactory != null) {
			valueFactory.remove();
			valueFactory = null;
		}
		super.tearDown();
	}
	
	@Override
	protected RDFParser createRDFParser() {
		/*
		 * Note: Requires the BigdataValueFactory for SIDs support.
		 */
		return new BigdataNTriplesParser(valueFactory);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy