コード例 #1
0
        public void ParsingChainedHandlerGraphAndNull()
        {
            EnsureTestData();

            Graph        g        = new Graph();
            GraphHandler handler1 = new GraphHandler(g);

            NullHandler handler2 = new NullHandler();

            ChainedHandler handler = new ChainedHandler(new IRdfHandler[] { handler1, handler2 });

            TurtleParser parser = new TurtleParser();

            parser.Load(handler, "temp.ttl");
        }
コード例 #2
0
        public void ParsingMultiHandlerGraphAndNull()
        {
            EnsureTestData();

            Graph        g        = new Graph();
            GraphHandler handler1 = new GraphHandler(g);

            NullHandler handler2 = new NullHandler();

            MultiHandler handler = new MultiHandler(new IRdfHandler[] { handler1, handler2 });

            TurtleParser parser = new TurtleParser();

            parser.Load(handler, "multi_handler_tests_temp.ttl");
        }
コード例 #3
0
        public void ParsingMultiHandlerGraphAndNull()
        {
            EnsureTestData();

            Graph g = new Graph();
            GraphHandler handler1 = new GraphHandler(g);

            NullHandler handler2 = new NullHandler();

            MultiHandler handler = new MultiHandler(new IRdfHandler[] { handler1, handler2 });

            TurtleParser parser = new TurtleParser();
            parser.Load(handler, "temp.ttl");
        }