Search in sources :

Example 16 with Tokenizer

use of org.apache.jena.riot.tokens.Tokenizer in project jena by apache.

the class TestLangNTuples method parseCheck.

protected final void parseCheck(String... strings) {
    String string = String.join("\n", strings);
    Tokenizer tokenizer = tokenizer(string);
    StreamRDFCounting sink = StreamRDFLib.count();
    LangRIOT x = RiotParsers.createParserNQuads(tokenizer, sink, parserProfile(new ErrorHandlerEx()));
    x.parse();
}
Also used : ErrorHandlerEx(org.apache.jena.riot.ErrorHandlerTestLib.ErrorHandlerEx) Tokenizer(org.apache.jena.riot.tokens.Tokenizer)

Aggregations

Tokenizer (org.apache.jena.riot.tokens.Tokenizer)16 BaseTest (org.apache.jena.atlas.junit.BaseTest)4 Token (org.apache.jena.riot.tokens.Token)4 Test (org.junit.Test)4 ByteArrayInputStream (java.io.ByteArrayInputStream)3 InputStream (java.io.InputStream)3 Node (org.apache.jena.graph.Node)3 Triple (org.apache.jena.graph.Triple)3 OutputStream (java.io.OutputStream)2 SerializationFactory (org.apache.jena.atlas.data.SerializationFactory)2 ErrorHandlerEx (org.apache.jena.riot.ErrorHandlerTestLib.ErrorHandlerEx)2 RiotException (org.apache.jena.riot.RiotException)2 Quad (org.apache.jena.sparql.core.Quad)2 BindingInputStream (org.apache.jena.sparql.engine.binding.BindingInputStream)2 BindingOutputStream (org.apache.jena.sparql.engine.binding.BindingOutputStream)2 Timer (org.apache.jena.atlas.lib.Timer)1 LabelToNode (org.apache.jena.riot.lang.LabelToNode)1 LangNQuads (org.apache.jena.riot.lang.LangNQuads)1 LangNTriples (org.apache.jena.riot.lang.LangNTriples)1 SinkQuadOutput (org.apache.jena.riot.out.SinkQuadOutput)1