com.bigdata.rdf.rio.ntriples.BigdataNTriplesParserTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigdata-rdf-test Show documentation
Show all versions of bigdata-rdf-test Show documentation
Blazegraph(TM) RDF Test Suites
/*
* 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