Search in sources :

Example 1 with RioSetting

use of org.eclipse.rdf4j.rio.RioSetting in project rdf4j by eclipse.

the class RDFParserHelperTest method setUp.

/**
 * @throws java.lang.Exception
 */
@Before
public void setUp() throws Exception {
    parserConfig = new ParserConfig();
    // By default we wipe out the SPI loaded datatype and language handlers
    parserConfig.set(BasicParserSettings.DATATYPE_HANDLERS, Collections.<DatatypeHandler>emptyList());
    parserConfig.set(BasicParserSettings.LANGUAGE_HANDLERS, Collections.<LanguageHandler>emptyList());
    // Ensure that the set of non-fatal errors is empty by default
    parserConfig.setNonFatalErrors(new HashSet<RioSetting<?>>());
    errListener = new ParseErrorCollector();
    valueFactory = SimpleValueFactory.getInstance();
}
Also used : RioSetting(org.eclipse.rdf4j.rio.RioSetting) ParseErrorCollector(org.eclipse.rdf4j.rio.helpers.ParseErrorCollector) ParserConfig(org.eclipse.rdf4j.rio.ParserConfig) Before(org.junit.Before)

Aggregations

ParserConfig (org.eclipse.rdf4j.rio.ParserConfig)1 RioSetting (org.eclipse.rdf4j.rio.RioSetting)1 ParseErrorCollector (org.eclipse.rdf4j.rio.helpers.ParseErrorCollector)1 Before (org.junit.Before)1