package org.eclipse.rdf4j.rio.turtlestar;

import java.io.IOException;
import java.io.StringReader;

import org.eclipse.rdf4j.rio.RDFFormat;
import org.eclipse.rdf4j.rio.RDFHandlerException;
import org.eclipse.rdf4j.rio.RDFParseException;
import org.eclipse.rdf4j.rio.RDFParser;
import org.eclipse.rdf4j.rio.Rio;
import org.junit.Test;

public class TestGH3323StackoverflowRDFStar {

	@Test
	public void testUsingParser() throws RDFParseException, RDFHandlerException, IOException {
		String ntdata = "<urn:1> <urn:2> <urn:rdf4j:triple:[encoded data, 4420 characters]> .";
		RDFParser parser = Rio.createParser(RDFFormat.TURTLESTAR);
		parser.parse(new StringReader(ntdata));
	}
}
